/* ═══════════════════════════════════════════════════
   FIND OPPORTUNITIES PAGE STYLES
═══════════════════════════════════════════════════ */

.find-opp-page {
    background-color: #ebeff5;
    padding-top: 120px;
    padding-bottom: 0;
    /* Form flows directly down */
}

/* Initial state (before Step 01 is completed) */
.find-opp-page.fo-initial-state {
    padding-bottom: 120px;
    /* Add bottom padding back since surface is hidden */
}

.find-opp-page.fo-initial-state .fo-large-surface-section {
    display: none;
}

.find-opp-page.fo-initial-state .fo-hero-form-wrapper {
    border-radius: 24px;
}

.find-opp-page.fo-initial-state~footer {
    display: none;
}

/* ── HERO SECTION ── */
.fo-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px 0;
    /* No bottom padding because it connects to surface */
}

.fo-hero-container {
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 64px;
    margin-bottom: 0;
    /* No margin, it touches the surface below */
}

.fo-hero-content {
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding-bottom: 40px;
}

.fo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-peach);
    border: 1px solid var(--color-peach-border);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 32px;
}

.fo-eyebrow-icon {
    width: 24px;
    height: 24px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fo-eyebrow-icon svg {
    width: 12px;
    height: 12px;
    stroke-width: 2px;
}

.fo-hero-title {
    font-size: 72px;
    line-height: 1.1;
    font-weight: var(--text-title-weight);
    letter-spacing: var(--text-title-spacing);
    color: var(--text-title-color);
    margin: 0 0 24px 0;
    max-width: 500px;
}

.fo-hero-desc {
    font-size: 18px;
    line-height: 1.6;
    font-weight: var(--text-desc-weight);
    color: var(--text-desc-color);
    margin: 0 0 64px 0;
    max-width: 480px;
}

/* ── HERO RIGHT FORM CARD (STEP 01) ── */
.fo-hero-form-wrapper {
    background-color: #343647;
    border-radius: 24px 24px 0 0;
    /* Flat at the bottom to connect to surface */
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.fo-step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.fo-step-header-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    gap: 24px;
}

.fo-step-actions-top {
    display: flex;
    gap: 12px;
    align-items: center;
}

.fo-step-actions-top .fo-btn {
    padding: 10px 20px;
    font-size: 14px;
    min-height: 40px;
    border-radius: 8px;
}

.fo-step-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.fo-step-title {
    font-size: 28px;
    color: #fff;
    margin: 0;
    font-weight: var(--text-title-weight);
    letter-spacing: var(--text-title-spacing);
}

.fo-step-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0 0;
    line-height: 1.5;
    font-weight: var(--text-desc-weight);
}

.fo-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fo-step-indicator {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Base form fields */
.fo-form-fields {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.fo-field-group {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    transition: all 0.2s ease;
}

.fo-field-group:focus-within {
    background: transparent;
    border-color: transparent;
    border-bottom-color: var(--color-dark, #13141f);
    box-shadow: none;
}

.fo-field-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
    box-shadow: none;
}

.fo-field-icon svg {
    width: 18px;
    height: 18px;
}

.fo-field-input-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.fo-field-input-wrapper label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark, #13141f);
}

.fo-field-input-wrapper input {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-dark, #13141f);
    outline: none;
    width: 100%;
}

.fo-field-input-wrapper input::placeholder {
    color: rgba(147, 145, 184, 0.6);
}

/* Button Base */
.fo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
}

.fo-btn-primary {
    background: #464858;
    color: #fff;
    font-size: 17px;
    padding: 18px 24px;
}

.fo-btn-primary:hover {
    background: #54576a;
}

.fo-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 17px;
    padding: 18px 24px;
}

.fo-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.fo-btn-icon {
    width: 24px;
    height: 24px;
    background: rgb(219, 74, 43);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fo-btn-icon svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

.fo-btn-secondary .fo-btn-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* ── LARGE FORM SURFACE ── */
.fo-large-surface-section {
    width: 100%;
    padding: 0 24px 80px;
    background-color: #ebeff5;
    position: relative;
}

.fo-large-surface {
    max-width: 1352px;
    /* 1400 - 48px padding */
    margin: 0 auto;
    background-color: #343647;
    border-radius: 24px 0 24px 24px;
    padding: 48px;
    position: relative;
    min-height: 500px;
}

/* Architectural Curve Overlay (Inner Radius) */
.fo-curved-connector {
    position: absolute;
    top: -40px;
    /* size of curve */
    right: 560px;
    /* 600px card - 40px padding diff or exactly grid width? Wait, max-width 1352. Grid is 1fr 600px. Gap 64. */
    /* I'll use JS to perfectly align this if needed, or simple CSS. */
    /* Let's set it based on the exact structure. */
    /* Actually, a safer way to do this without exact pixel math is wrapping the hero right card and large surface in a shared container, but we have them separate. */
    /* For now: */
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at top left, transparent 39.5px, #343647 40px);
    pointer-events: none;
}

/* Let's refine the curve position using calc */
@media (min-width: 1101px) {
    .fo-curved-connector {
        right: 600px;
        /* Width of the hero right column */
    }

    .fo-large-surface {
        border-radius: 24px 0 24px 24px;
    }
}


/* Progress Nav */
.fo-progress-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 32px;
}

.fo-progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.fo-progress-step.active {
    opacity: 1;
}

.fo-progress-step.completed {
    opacity: 0.8;
}

.fo-progress-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.fo-progress-step.active .fo-progress-circle {
    border-color: rgb(219, 74, 43);
    background: rgb(219, 74, 43);
}

.fo-progress-step.completed .fo-progress-circle {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.fo-progress-label {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.fo-progress-line {
    height: 1px;
    width: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Step Content Styles */
.fo-form-container {
    width: min(100%, 1000px);
    margin: 0 auto;
}

.fo-step-content {
    animation: fadeIn 0.4s ease forwards;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* General form fields */
.fo-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.fo-form-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.fo-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fo-form-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark, #13141f);
}

.fo-optional {
    color: #6b7280;
    font-size: 12px;
}

.fo-input-wrapper,
.fo-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    padding: 12px 0;
    transition: all 0.2s ease;
}

.fo-input-wrapper:hover,
.fo-select-wrapper:hover,
.fo-form-field textarea:hover {
    border-bottom-color: rgba(0, 0, 0, 0.2);
}

.fo-input-wrapper:focus-within,
.fo-select-wrapper:focus-within {
    background: transparent;
    border-bottom-color: var(--color-dark, #13141f);
    box-shadow: none;
}

.fo-input-wrapper .fo-field-icon,
.fo-select-wrapper .fo-field-icon {
    width: 20px;
    height: 20px;
    background: transparent;
    box-shadow: none;
    color: #6b7280;
    margin-right: 12px;
}

.fo-input-wrapper input,
.fo-select-wrapper select,
.fo-form-field textarea {
    border: none;
    background: transparent;
    color: var(--color-dark, #13141f);
    font-size: 15px;
    width: 100%;
    outline: none;
    font-family: inherit;
    font-weight: 400;
    padding: 0;
}

.fo-input-wrapper input::placeholder,
.fo-form-field textarea::placeholder {
    color: rgba(147, 145, 184, 0.6);
}

.fo-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.fo-select-wrapper select option {
    background: #fff;
    color: #1f2937;
}

.fo-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
}

.fo-select-arrow svg {
    width: 16px;
    height: 16px;
}

.fo-form-field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    padding: 12px 0;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
}

.fo-form-field textarea:focus {
    background: transparent;
    border-bottom-color: var(--color-dark, #13141f);
    box-shadow: none;
    outline: none;
}

/* Chips Input */
.fo-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fo-chips-input-container {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    padding: 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    min-height: 56px;
    transition: all 0.2s ease;
}

.fo-chips-input-container:focus-within {
    border-bottom-color: var(--color-dark, #13141f);
}

.fo-chip {
    background: #e5e7eb;
    border: 1px solid transparent;
    color: #374151;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.fo-chip-remove {
    cursor: pointer;
    opacity: 0.6;
}

.fo-chip-remove:hover {
    opacity: 1;
}

.fo-chip-input {
    border: none;
    background: transparent;
    color: var(--color-dark, #13141f);
    font-size: 15px;
    flex: 1;
    min-width: 150px;
    outline: none;
    font-weight: 400;
}

.fo-chip-input::placeholder {
    color: rgba(147, 145, 184, 0.6);
}

/* File Upload */
.fo-file-upload {
    border: 2px dashed rgba(0, 0, 0, 0.15);
    background: #f8f9fb;
    border-radius: 16px;
    padding: 56px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fo-file-upload:hover {
    border-color: #e8622a;
    background: #fff;
}

.fo-upload-icon {
    width: 48px;
    height: 48px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    margin-bottom: 20px;
}

.fo-upload-icon svg {
    width: 24px;
    height: 24px;
}

.fo-upload-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.fo-upload-sub {
    font-size: 14px;
    color: #6b7280;
}

.fo-upload-sub-action {
    color: #e8622a !important;
    font-weight: 500;
}

/* Step Actions */
.fo-step-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.fo-step-actions .fo-btn {
    width: auto;
    flex: 1;
}

/* Success State */
.fo-success-state {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.fo-success-icon {
    width: 64px;
    height: 64px;
    background: #e8622a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

.fo-success-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.fo-success-title {
    font-size: 32px;
    color: #fff;
    margin: 0 0 16px;
    font-weight: var(--text-title-weight);
    letter-spacing: var(--text-title-spacing);
}

.fo-success-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 48px;
    font-weight: var(--text-desc-weight);
}

.fo-success-stages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.fo-success-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fo-stage-num {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
}

.fo-stage-label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.fo-stage-arrow {
    color: rgba(255, 255, 255, 0.2);
    margin-top: 16px;
}

.fo-stage-arrow svg {
    width: 16px;
    height: 16px;
}


/* Responsive */
@media (max-width: 1100px) {
    .fo-hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .fo-hero-content {
        align-items: center;
        text-align: center;
    }

    .fo-hero-title,
    .fo-hero-desc {
        text-align: center;
    }

    .find-opp-page:not(.fo-initial-state) .fo-hero-form-wrapper {
        border-radius: 24px 24px 0 0;
        margin-bottom: 0;
    }

    .find-opp-page:not(.fo-initial-state) .fo-large-surface {
        border-radius: 0 0 24px 24px;
        margin-top: 0;
    }

    .find-opp-page.fo-initial-state .fo-hero-form-wrapper {
        border-radius: 24px;
    }

    .fo-curved-connector {
        display: none;
        /* Curve doesn't work when stacked */
    }

    .fo-hero-form-wrapper {
        padding: 32px 24px;
    }

    .fo-large-surface {
        border-radius: 24px;
        padding: 32px 24px;
    }

    .fo-progress-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 12px;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
        scrollbar-width: none;
    }

    .fo-progress-nav::before,
    .fo-progress-nav::after {
        content: "";
        display: block;
        flex-shrink: 0;
        min-width: 40vw;
        /* Allows first and last items to reach the center */
    }

    .fo-progress-nav::-webkit-scrollbar {
        display: none;
    }

    .fo-progress-step {
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .fo-progress-line {
        display: block;
        flex-shrink: 0;
    }
}

@media (max-width: 767px) {
    .fo-hero-title {
        font-size: 40px;
    }

    .fo-hero-desc {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .fo-form-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fo-step-actions {
        flex-direction: column-reverse;
    }

    .fo-step-header-block {
        flex-direction: column;
        gap: 16px;
    }

    .fo-step-actions-top {
        width: 100%;
        justify-content: flex-start;
    }
}