* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-blue: #1E3A8A;
    --light-blue: #EFF6FF;
    --dark-gray: #1e293b;
    --border-gray: #d1d5db;
    --error-red: #dc3545;
    --text-gray: #4b5563;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    /* fallback color */
    background-image: url('../img/Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 70px;
    /* For fixed navbar */
}

/* Navbar Styles */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #1E3A8A;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-custom.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 0.5rem 0;
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-title {
    margin-left: 0.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}
.navbar-toggler {
    background-color: #ffffff;
}

.nav-link-custom {
    position: relative;
    color: white;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link-custom:hover {
    color: #BFDBFE;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link-custom:hover::after {
    transform: scaleX(1);
}

.nav-link-custom:hover .nav-chevron {
    opacity: 1;
}

.nav-chevron {
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 0.25rem;
}

.btn-login {
    background-color: white;
    color: #1E3A8A;
    font-weight: 500;
    margin-left: 1rem;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
}

.btn-login:hover {
    background-color: #EFF6FF;
    text-decoration: none !important;
}

.btn-login a {
    color: inherit;
    text-decoration: none !important;
    display: block;
    width: 100%;
    height: 100%;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.mobile-nav-link:hover {
    background-color: #3B82F6;
    text-decoration: none;
}

/* Registration Container */
.registration-container {
    min-height: calc(100vh - 70px - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.registration-card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    background: #fff;
}

.card-body {
    padding: 2rem;
}

.registration-header {
    text-align: center;
    padding: 1rem 0 1.5rem;
    margin-bottom: 0.5rem;
}

.registration-header img {
    height: 70px;
    margin-bottom: 0.75rem;
}

.registration-header h1 {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-note {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.required-field::after {
    content: " *";
    color: var(--error-red);
}

/* Section Title */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-blue);
}

/* Form Group (Improved Floating Labels) */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    height: auto;
    color: var(--dark-gray);
    background: #fff;
    transition: all 0.2s ease;
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
    outline: none;
}

.form-label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8125rem;
    color: var(--primary-blue);
    background: #fff;
    padding: 0 0.3rem;
    z-index: 1;
    transition: all 0.2s ease;
    font-weight: 500;
}

/* Radio Button Groups */
.form-check-group {
    margin-top: 0.5rem;
}

.form-check-group-horizontal {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    font-size: 0.9375rem;
    color: var(--dark-gray);
}

/* Name Input Group */
.name-input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .name-input-group {
        grid-template-columns: 1fr;
    }
}

/* File Upload */
.file-upload-container {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    border: 2px dashed var(--border-gray);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.file-upload-container:hover {
    border-color: var(--primary-blue);
    background-color: rgba(239, 246, 255, 0.3);
}

.file-upload-label {
    display: block;
    cursor: pointer;
}

.file-upload-label strong {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9375rem;
}

.file-upload-label img {
    margin: 0.5rem 0;
    width: 36px;
    opacity: 0.8;
}

.file-info {
    background-color: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.image-preview-container {
    margin-top: 0.75rem;
}

.preview-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-primary,
.btn-danger {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #162c6a;
}

.btn-danger {
    background-color: var(--error-red);
    border-color: var(--error-red);
}

.btn-danger:hover {
    background-color: #c82333;
}

.d-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Error Messages */
.invalid-feedback {
    color: var(--error-red);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    padding-left: 0.5rem;
    display: none;
}

.form-control.is-invalid {
    border-color: var(--error-red);
}

.form-control.is-invalid~.invalid-feedback {
    display: block;
}

/* Form Links */
.form-links {
    text-align: center;
    margin: 1.5rem 0;
}

.form-links p {
    margin: 0;
    font-size: 0.9375rem;
}

.form-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.form-links a:hover {
    color: var(--error-red);
    text-decoration: underline;
}

/* Alert */
.alert {
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    border-radius: 6px;
}

/* Modal Styles */
.modal-content {
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

.modal-header {
    background-color: var(--primary-blue);
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
}

.modal-footer .btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.modal-footer .btn-primary:hover {
    background-color: #162c6a;
}

.modal-footer .btn-danger {
    background-color: var(--error-red);
    border-color: var(--error-red);
}

.modal-footer .btn-danger:hover {
    background-color: #c82333;
}

/* Footer Styles */
.footer {
    background-color: #1e293b;
    color: white;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-map {
    height: 12rem;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #334155;
    margin-bottom: 1rem;
    transition: height 0.3s ease;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-contact-item,
.footer-hours-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-icon {
    color: #60a5fa;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #60a5fa;
}

.footer-quick-links {
    list-style: none;
    padding-left: 0;
}

.footer-quick-links li {
    margin-bottom: 0.5rem;
}

.footer-quick-links a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-quick-links a:hover {
    color: #60a5fa;
}

.footer-quick-links a::before {
    content: "›";
    color: #60a5fa;
    margin-right: 0.5rem;
    transition: margin-right 0.2s ease;
}

.footer-quick-links a:hover::before {
    margin-right: 0.7rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-link {
    background-color: #1e40af;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #1e3a8a;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-divider {
    height: 1px;
    background-color: #334155;
    margin: 2rem 0;
    transition: margin 0.3s ease;
}

.footer-copyright {
    color: #94a3b8;
    text-align: center;
    transition: font-size 0.3s ease;
}

.footer-logo-container {
    margin-top: 2rem;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo-img {
    height: auto;
    max-height: 120px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@media (min-width: 1200px) {
    .footer-logo-container {
        position: absolute;
        right: 1rem;
        top: 1rem;
        width: auto;
        margin-top: 0;
    }

    .footer-logos {
        justify-content: flex-end;
    }

    .footer-logo-img {
        max-height: 150px;
        max-width: 150px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .footer-logo-container {
        position: static;
        margin: 2rem auto 0;
        max-width: 300px;
    }

    .footer-logos {
        justify-content: center;
    }

    .footer-logo-img {
        max-height: 110px;
        max-width: 110px;
    }

    .footer-map {
        height: 10rem;
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .footer-logo-img {
        max-height: 100px;
        max-width: 100px;
    }

    .footer-map {
        height: 9rem;
    }

    .footer-divider {
        margin: 1.5rem 0;
    }
}

@media (max-width: 767.98px) {
    .footer-logo-img {
        max-height: 90px;
        max-width: 90px;
    }

    .footer-map {
        height: 8rem;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .footer-copyright {
        font-size: 0.9rem;
    }

    .footer-divider {
        margin: 1rem 0;
    }
}

@media (max-width: 399.98px) {
    .footer-logos {
        gap: 1rem;
    }

    .footer-logo-img {
        max-height: 80px;
        max-width: 80px;
    }
}

/* Privacy Policy Modal */

#privacyModal .modal-dialog {
    max-width: 600px;
}
#privacyModal .modal-content {
    border-radius: 10px;
}
#privacyModal .modal-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}
#privacyModal .modal-footer {
    border-top: none;
    padding: 15px 20px;
}
#privacyModal .btn-agree {
    background-color: #004d40;
    color: white;
    border: none;
}
#privacyModal .btn-agree:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
#privacyModal .form-check-label {
    margin-left: 10px;
    font-size: 14px;
}


/* Data Privacy Modal Styles */
#privacyModal .modal-dialog {
    max-width: 600px; /* Slightly wider for better readability */
    margin: 1.75rem auto;
}

#privacyModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: #fff;
    font-family: 'Metrophobic', sans-serif;
}

#privacyModal .modal-header {
    background: linear-gradient(90deg, #003366, #0056b3); /* Gradient matching navbar */
    color: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 1.5rem;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#privacyModal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

#privacyModal .modal-body {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

#privacyModal .modal-body h6 {
    font-size: 1.2rem;
    color: #003366;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

#privacyModal .modal-body p,
#privacyModal .modal-body ul {
    margin-bottom: 1rem;
}

#privacyModal .modal-body ul {
    padding-left: 1.5rem;
}

#privacyModal .modal-footer {
    background: #f5f5f5; /* Light background for footer */
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #ddd;
}

#privacyModal .form-check {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

#privacyModal .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    border: 2px solid #003366;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#privacyModal .form-check-input:checked {
    background-color: #003366;
    border-color: #003366;
}

#privacyModal .form-check-label {
    font-size: 1rem;
    color: #333;
    cursor: pointer;
}

#privacyModal .btn-agree {
    background-color: #003366;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    width: 100%;
    max-width: 200px;
}

#privacyModal .btn-agree:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#privacyModal .btn-agree:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

#privacyModal #privacy-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
}

#privacyModal #scroll-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 576px) {
    #privacyModal .modal-dialog {
        margin: 1rem;
    }

    #privacyModal .modal-title {
        font-size: 1.25rem;
    }

    #privacyModal .modal-body {
        padding: 1.5rem;
        font-size: 0.9rem;
    }

    #privacyModal .btn-agree {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        max-width: 180px;
    }
}
