/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f5f5f5;
    color: #333541;
    line-height: 1.6;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* uitls */
.color-black {
    color: black;
}

/* Header Styles */
.header {
    background: white;
    border-bottom: 1px solid rgba(135, 135, 135, 0.25);
    width: 100%;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
}

.logo-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #e31837;
    letter-spacing: 1px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #333541;
}

.language-icon,
.dropdown-icon {
    width: 16px;
    height: 16px;
    color: #333541;
}

.calendar-icon {
    width: 20px;
    height: 20px;
    color: #333541;
}

.avatar {
    background: #333541;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
}

/* Main Content */
.main-content {
    width: 768px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.title-bar {
    width: 8px;
    height: 32px;
    background: #e31837;
}

.page-title h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 32px;
    color: black;
}

/* Form Card */
.form-card {
    background: white;
    border: 1px solid rgba(135, 135, 135, 0.25);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-banner {
    background: white;
    padding: 0;
}

.info-banner p {
    font-size: 18px;
    line-height: 24px;
    color: #666;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 24px;
    padding-bottom: 24px;
}

.form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: black;
}

.form-field input.error {
    border-color: #dc3545;
}

.form-field input,
.form-field select,
.form-field textarea {
    height: 48px;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid rgba(135, 135, 135, 0.25);
    border-radius: 4px;
    font-size: 16px;
    line-height: 28px;
    background: white;
    font-family: inherit;
}

.form-field textarea {
    height: auto;
    font-family: 'Open Sans', sans-serif;
    min-height: 160px;
    resize: vertical;
}

.form-field input:disabled {
    background: rgba(255, 255, 255, 0.5);
    color: #878787;
}

.form-field input::placeholder {
    color: #878787;
}

.select-field,
.date-field,
.phone-field {
    position: relative;
    display: flex;
    align-items: center;
}

.date-field input {
    text-transform: uppercase;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
}

.arrow-icon {
    position: absolute;
    right: 16px;
}

.select-field select {
    width: 100%;
    appearance: none;
    background: white;
}

.select-field .dropdown-icon,
.date-field .calendar-icon {
    position: absolute;
    right: 16px;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.phone-field {
    border: 1px solid rgba(135, 135, 135, 0.25);
    border-radius: 4px;
    background: white;
    height: 48px;
}

/* .country-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-right: 1px solid rgba(135, 135, 135, 0.25);
} */

input.error {
    border: 1px solid #dc3545;
}

small#error {
    font-size: 0.875rem;
}

.country-code .flag {
    width: 24px;
    height: 24px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-code span {
    font-size: 16px;
    color: black;
}

.phone-field input {
    border: none;
    flex: 1;
    height: 100%;
}

/* Divider */
.divider {
    height: 1px;
    background: white;
    width: 100%;
}

/* Terms Section */
.terms-section {
    background: #f5f5f5;
    border: 1px solid rgba(135, 135, 135, 0.25);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terms-section p {
    font-size: 14px;
    line-height: 24px;
    color: #333541;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.checkbox {
    width: 24px;
    height: 24px;
    border: 1.5px solid #b8b9ba;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #E21D38;
}


.checkbox-group label {
    font-size: 14px;
    line-height: 24px;
    color: #333541;
    cursor: pointer;
}

/* Form Controls */
.form-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.recaptcha {
    background: #f9f9f9;
    border: 1px solid #b2b2b2;
    border-radius: 5px;
    padding: 14px 15px;
    width: 236px;
    height: 63px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recaptcha input {
    width: 24px;
    height: 24px;
}

.recaptcha label {
    font-size: 14px;
    color: #333541;
    margin-left: 10px;
}

.recaptcha-logo {
    width: 60px;
    height: 32px;
    font-size: 10px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.btn-primary,
.btn-secondary {
    width: 300px;
    height: 40px;
    border-radius: 100px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #e31837;
    color: white;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #333541;
    border: 1px solid #878787;
}

/* Footer Logos */
.footer-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.partner-logos {
    display: flex;
    gap: 15px;
    align-items: center;
}

.partner-logo {
    height: 30px;
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #333541;
    display: flex;
    align-items: center;
}

.footer-logos p {
    font-size: 12px;
    line-height: 24px;
    color: #333541;
    text-align: center;
}

/* Site Footer */
.site-footer {
    width: 100%;
    background: #333541;
}

.footer-main {
    padding: 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 38px;
}

.footer-logo {
    width: 278px;
    height: 48px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: white;
    display: flex;
    align-items: center;
    letter-spacing: 2px;
}

.footer-content h2 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 32px;
    color: white;
    margin-bottom: 9px;
}

.social-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.social-icon {
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-contact {
    background: black;
    padding: 24px 48px;
    display: flex;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 200px;
    color: white;
}

.address p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 28px;
    margin: 0;
}

.contact-details h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 0;
}

.contact-details a {
    color: white;
    text-decoration: underline;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 28px;
    display: block;
}

.contact-details p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 28px;
    margin: 0;
}

.footer-bottom {
    background: black;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 48px;
}

.footer-bottom p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 28px;
    color: white;
    text-align: center;
}

.footer-links {
    background: black;
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 0 48px;
    height: 40px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: white;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links span {
    color: white;
}

.mb-24 {
    margin-bottom: 24px;
}

.clr-red {
    color: #E21D38;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        width: 100%;
        padding: 0 24px;
    }

    .header {
        padding: 16px 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
        padding-bottom: 16px;
    }

    .form-controls {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .recaptcha {
        width: 100%;
    }

    .contact-info {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 15px;
        height: auto;
        align-items: center;
        justify-content: center;
    }

    .checkbox-group {
        gap: 16px;
    }

    .partner-logos img {
        width: 200px;
    }

    .footer-contact,
    .footer-bottom {
        padding: 24px;
    }

    .footer-logo {
        width: auto;
    }

    .footer-logo img {
        width: 150px;
    }

    .footer-main {
        padding: 24px;
        gap: 24px;
    }
}

.sub-heading {
    font-size: 20px;
}

.mb-12 {
    margin-bottom: 12px;
}

.btn--loading__icon {
    animation: spin 1s linear infinite;
}

.btn--loading__icon {
    display: none
}

.btn--loading .btn--loading__icon {
    display: block
}

.btn--loading,
.btn-primary:active {
    display: flex;
    cursor: not-allowed;
    align-items: center;
    justify-content: center
}

.btn--loading__icon {
    margin-left: -.25rem;
    margin-right: .75rem;
    height: 1.25rem;
    width: 1.25rem
}

.opacity-25 {
    opacity: .25;
}

/* Popup background overlay */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    /* Dim background */
    transition: opacity 0.3s ease;
    padding: 16px;
    max-width: 100%;
}

/* Modal content box */
.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 20px 30px;
    border-radius: 12px;
    width: 600px;
    max-width: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

/* Close button (X) */
.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

/* Open button styling */
#openModalBtn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

#openModalBtn:hover {
    background: #0056b3;
}

/* Animation */
@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(1turn)
    }
}