/* 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);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    main {
        padding: 20px;
    }

    .logo {
        max-width: 150px;
    }
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    margin-top: 50px; /* Adds space above footer */
}

footer a {
    color: #ffcc00; /* Link color (YouTube-like yellow) */
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    color: #fff; /* Change link color on hover */
    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;
    }
}
