/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Global Styles */
body {
    font-family: 'Noto Serif Devanagari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 40px;
}

header .logo {
    max-width: 200px;
    margin-bottom: 20px;
}

header h4 {
    color: #666;
    margin-bottom: 10px;
}

header h1 {
    color: #2e3192;
}

header a {
    color: inherit;
    text-decoration: none;
}

header a:hover {
    text-decoration: underline;
}

/* Main content styles */
main {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.required {
    color: #ff4444;
    margin-left: 4px;
}

input[type="text"],
input[type="date"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Noto Serif Devanagari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

textarea {
    height: 100px;
    resize: vertical;
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.photo-preview {
    margin-top: 10px;
    max-width: 200px;
}

.photo-preview img {
    width: 100%;
    border-radius: 5px;
}

/* Submit button styles */
.submit-btn {
    background-color: #2e3192;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #232578;
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Loading overlay styles */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2e3192;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    margin-top: 50px;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

footer p {
    margin: 0;
    line-height: 1.6;
}

footer .contact-info {
    margin-top: 10px;
}

footer .contact-info a {
    color: #ffcc00;
    text-decoration: none;
}

footer .contact-info a:hover {
    text-decoration: underline;
}

/* Mobile-Friendly Footer */
@media (max-width: 768px) {
    footer {
        font-size: 12px;
    }

    footer p {
        line-height: 1.4;
    }
}

/* Payment Modal Styles */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow-y: auto;
}

.payment-modal-content {
    position: relative;
    background-color: #fff;
    margin: 2rem auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.close-button {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #333;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-logo {
    max-width: 120px;
    margin-bottom: 1rem;
}

.modal-header h2 {
    color: #333;
    margin: 0;
    font-size: 1.5rem;
}

.payment-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    background-color: #007bff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

.payment-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #28a745;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin: 1rem auto;
    width: fit-content;
}

.payment-button:hover {
    background-color: #218838;
}

.payment-icon {
    font-style: normal;
    font-weight: bold;
}

.payment-verification {
    text-align: center;
    margin-top: 2rem;
}

.verify-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.verify-button:hover {
    background-color: #0056b3;
}

/* Additional styles for Hindi content */
.modal-header h3 {
    color: #666;
    margin: 0.5rem 0 0 0;
    font-size: 1.2rem;
}

.payment-instructions {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.instruction-text {
    margin-bottom: 1rem;
}

.fee-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #e8f4ff;
    border-radius: 8px;
    margin: 1rem 0;
}

.amount {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.fee-text {
    color: #666;
}

.hindi {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.english {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

.step p {
    margin: 0;
}

.payment-button {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hindi, .english {
        font-size: 1rem;
    }

    .amount {
        font-size: 1.75rem;
    }

    .fee-text {
        font-size: 0.9rem;
    }
}
