/* ==========================================
   Path to Result Section
   ========================================== */

.path-section {
    background: var(--color-white);
    padding: 120px 24px;
}

.path-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

/* --- Left column --- */

.path-left {
    flex: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.path-title {
    font-family: var(--font-neo);
    font-weight: 400;
    font-size: 60px;
    line-height: 72px;
    letter-spacing: -2px;
    color: var(--color-bg-dark);
    margin: 0 0 24px;
}

.path-subtitle {
    font-family: var(--font-inter);
    font-size: 24px;
    line-height: 34px;
    color: var(--color-text-muted);
    margin: 0;
}

/* --- Steps --- */

.path-steps {
    display: flex;
    flex-direction: column;
}

.path-step {
    display: flex;
    gap: 42px;
    align-items: flex-start;
}

.path-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    align-self: stretch;
}

.path-step-number {
    width: 64px;
    height: 64px;
    background: var(--color-bg-light);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-neo);
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    color: var(--color-bg-dark);
}

.path-step-line {
    flex: 1;
    width: 1px;
    background: var(--color-divider);
    min-height: 1px;
}

.path-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 44px;
}

.path-step:last-child .path-step-content {
    padding-bottom: 0;
}

.path-step-title {
    font-family: var(--font-neo);
    font-weight: 400;
    font-size: 36px;
    line-height: 42px;
    letter-spacing: -1px;
    color: var(--color-bg-dark);
    height: 64px;
    display: flex;
    align-items: center;
    margin: 0;
}

.path-step-desc {
    font-family: var(--font-inter);
    font-size: 19px;
    line-height: 30px;
    color: var(--color-text-muted);
    margin: 0;
}

/* --- Right column: form card --- */

.path-form-card {
    background: var(--color-bg-light);
    padding: 64px;
    flex-shrink: 0;
    width: 600px;
    display: flex;
    flex-direction: column;
    gap: 44px;
    overflow: hidden;
}

.path-form-title {
    font-family: var(--font-neo);
    font-weight: 400;
    font-size: 36px;
    line-height: 42px;
    letter-spacing: -1px;
    color: var(--color-bg-dark);
    margin: 0;
}

/* --- Form --- */

.path-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.path-form-field {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.path-form-label {
    font-family: var(--font-inter);
    font-size: 17px;
    line-height: 23px;
    color: var(--color-bg-dark);
    font-weight: 400;
}

.path-form-required {
    color: var(--color-error);
}

.path-form-input,
.path-form-select {
    height: 56px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0 12px;
    font-family: var(--font-inter);
    font-size: 17px;
    line-height: 23px;
    color: var(--color-bg-dark);
    background: var(--color-white);
    width: 100%;
    box-sizing: border-box;
    font-weight: 400;
}

.path-form-input::placeholder {
    color: var(--color-border);
}

.path-form-input:focus,
.path-form-select:focus {
    outline: none;
    border-color: var(--color-text-muted);
}

.path-form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%239fa4a4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    color: var(--color-border);
    cursor: pointer;
}

.path-form-select option {
    color: var(--color-bg-dark);
}

.path-form-submit {
    width: 100%;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-family: var(--font-neo);
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.path-form-submit:hover {
    background: var(--color-accent);
}

/* Custom checkbox */

.path-form-checkbox {
    display: flex;
    gap: 20px;
    align-items: center;
    cursor: pointer;
}

.path-form-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.path-form-checkbox-custom {
    width: 28px;
    height: 28px;
    border: 2px solid var(--color-border);
    border-radius: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    box-sizing: border-box;
}

.path-form-checkbox input[type="checkbox"]:checked + .path-form-checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.path-form-checkbox-custom::after {
    content: '';
    display: block;
    width: 6px;
    height: 11px;
    border: 2px solid var(--color-white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0;
    transition: opacity 0.15s;
}

.path-form-checkbox input[type="checkbox"]:checked + .path-form-checkbox-custom::after {
    opacity: 1;
}

.path-form-checkbox-label {
    font-family: var(--font-neo);
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: var(--color-bg-dark);
}

.path-form-legal {
    font-family: var(--font-inter);
    font-size: 14px;
    line-height: 22px;
    color: var(--color-bg-dark);
    opacity: 0.7;
    margin: 0;
}

.path-form-legal a {
    color: var(--color-primary);
    text-decoration: none;
}

.path-form-legal a:hover {
    text-decoration: underline;
}

/* Actions group (button + checkbox + legal) */
.path-form-actions {
    display: contents;
}

/* Responsive text variants */
.path-submit-mobile {
    display: none;
}
.path-submit-desktop {
    display: inline;
}

/* ==========================================
   Responsive: Tablet (≤1170px)
   ========================================== */

@media (max-width: 1170px) {
    .path-section {
        padding: 80px 48px;
    }

    .path-form-card {
        width: 480px;
        padding: 48px;
    }

    .path-title {
        font-size: 48px;
        line-height: 58px;
    }

    .path-step-title {
        font-size: 28px;
    }
}

/* ==========================================
   Responsive: Stack (≤900px)
   ========================================== */

@media (max-width: 900px) {
    .path-inner {
        flex-direction: column;
        gap: 0;
    }

    .path-form-card {
        width: 100%;
        box-sizing: border-box;
        margin-top: 48px;
    }
}

/* ==========================================
   Responsive: Mobile (≤640px)
   ========================================== */

@media (max-width: 640px) {
    /* Section */
    .path-section {
        padding: 32px 0 0;
    }

    .path-inner {
        flex-direction: column;
        gap: 0;
    }

    /* Left: steps */
    .path-left {
        max-width: 100%;
        gap: 0;
        padding: 0 24px;
    }

    .path-intro {
        padding-bottom: 24px;
    }

    .path-title {
        font-size: 32px;
        line-height: 37px;
        letter-spacing: 0;
        margin-bottom: 24px;
    }

    .path-subtitle {
        font-size: 14px;
        line-height: 22px;
    }

    /* Steps */
    .path-step {
        gap: 16px;
    }

    .path-step-number {
        width: 44px;
        height: 44px;
        font-size: 19px;
        line-height: 1;
    }

    .path-step-content {
        gap: 12px;
        padding-bottom: 32px;
    }

    .path-step-title {
        font-size: 24px;
        line-height: 28px;
        height: 44px;
    }

    .path-step-desc {
        font-size: 14px;
        line-height: 22px;
    }

    /* Right: form card */
    .path-form-card {
        width: 100%;
        min-width: unset;
        padding: 32px 24px;
        gap: 32px;
        margin-top: 32px;
        margin-bottom: 0;
    }

    .path-form-title {
        font-size: 32px;
        line-height: 37px;
    }

    .path-form {
        gap: 16px;
    }

    .path-form-field {
        gap: 12px;
    }

    .path-form-label {
        font-size: 14px;
        line-height: 22px;
    }

    .path-form-input,
    .path-form-select {
        height: 44px;
        font-size: 14px;
        line-height: 22px;
    }

    /* Form actions group */
    .path-form-actions {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }

    /* Swap button/legal text */
    .path-submit-desktop {
        display: none;
    }
    .path-submit-mobile {
        display: inline;
    }

    /* Intro separator */
    .path-intro {
        padding-bottom: 24px;
        margin-bottom: 0;
    }

    .path-form-submit {
        height: 44px;
        font-size: 16px;
    }

    .path-form-checkbox {
        gap: 12px;
    }

    .path-form-checkbox-label {
        font-family: var(--font-inter);
        font-size: 12px;
        line-height: 15px;
    }

    .path-form-legal {
        font-size: 12px;
        line-height: 15px;
    }
}
