/* ========= HERO ========= */

.hero {
    position: relative;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    padding: 80px 0;
    z-index: 9;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.9;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    max-width: 624px;
}

.hero h1 {
    font-weight: 600;
    font-size: 56px;
    line-height: 120%;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

.hero-subtitle {
    font-weight: 500;
    font-size: 20px;
    line-height: 140%;
    letter-spacing: 0;
    margin-top: 16px;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.hero-list li {
    position: relative;
    padding-left: 28px;
    font-weight: 500;
    font-size: 20px;
    line-height: 140%;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.hero-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    background-color: #2491EB;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;

    border-radius: 50%;
}

/* Hero Form Card */
.form-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    padding: 48px 32px;;
    position: relative;
    min-height: 467px;
    z-index: 999;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container h2 {
    font-weight: 600;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    color: #000000;
    margin: 0;
    padding: 0;
}

.subtitle {
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0;
    text-align: center;
    color: #000000;
    margin-top: 5px;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    position: absolute;
    top: -8px;
    left: 12px;
    font-weight: 500;
    font-size: 12px;
    line-height: 140%;
    letter-spacing: 0;
    color: #000000;
    background: #FFFFFF;
}

.checkbox-label {
    position: static;
}

.radio-group label {
    position: static;
}

label .required {
    color: #e53e3e;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"]  {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f7fafc;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input.error {
    border-color: #e53e3e;
}

.radio-group input[type="radio"].error + label {
    color: #e53935;
}

input[type="checkbox"].error {
    outline-color: red;
    outline-style: auto;
}

.error-message {
    font-size: 14px;
    margin-top: 5px;
    display: none;
    color: #e53e3e;
}

.error-message.show {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

input[type="radio"] + label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

input[type="checkbox"]{
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: #667eea;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #031C40;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

.submit-btn:hover:not(:disabled) {
    background: #2491EB;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(15, 37, 87, 0.3);
}

.submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.loading {
    display: none;
    text-align: center;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading.show {
    display: flex;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-message {
    display: none;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.success-message p, .loading p {
    color: #000000;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #48bb78;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;

    svg {
        height: 24px;
        width: 24px;
    }
}

input::placeholder {
    color: #6C727F;
}

input[type="date"]::placeholder {
    color: red;
}

@media (max-width: 600px) {
    .form-container {
        padding: 32px 24px;
        z-index: 999;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 60px;
        overflow: unset;
    }
    .hero-inner {
        flex-direction: column;
    }

    .hero h1 {
        font-weight: 600;
        font-size: 40px;
    }

    .sm-2-cols {
        grid-template-columns: 1fr 1fr;
    }

    .form-container {
        margin-bottom: -368px;
        z-index: 999;
    }

    .hero-subtitle {
        font-weight: 500;
        font-size: 18px;
    }

    .hero-list {
        list-style: none;
        padding: 0;
        margin-top: 24px;
    }

    .hero-list li {
        font-weight: 500;
        font-size: 18px;
    }
}