/* Pitch Page Styles */

/* HERO */
.pitch-hero {
    margin-top: 80px;
    background: #d4dde2;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    overflow: hidden;
    position: relative;
    padding: 60px 4%;
}

.pitch-hero .pitch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.pitch-hero .hero-left {
    flex: 1;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
    z-index: 3;
}

.pitch-hero .hero-content {
    max-width: 900px;
}

.pitch-hero h1 {
    color: #1c2b33;
    font-family: 'Forum', serif;
    font-size: clamp(3rem, 4.5vw, 4.2rem);
    font-weight: 400;
    margin: 0 0 15px 0;
    line-height: 1.1;
    white-space: nowrap;
}

.pitch-hero p {
    color: #4a5860;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.5;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-btn {
    background: #1c2b33;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-btn:hover {
    background: #111d23;
}

.pitch-hero .hero-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    max-width: 800px;
}

.pitch-hero .stat-card {
    background: #ffffff;
    padding: 24px 12px;
    border-radius: 16px;
    flex: 1;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.pitch-hero .stat-card h3 {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-weight: 700;
    color: #1c2b33;
    margin-bottom: 6px;
    margin-top: 0;
}

.pitch-hero .stat-card .stat-symbol {
    font-size: 0.65em;
    font-weight: 700;
}

.pitch-hero .stat-card p {
    font-size: 0.85rem;
    color: #6a7c88;
    margin: 0;
    font-weight: 500;
}

.pitch-hero .hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    position: relative;
    max-width: 760px;
    margin-right: -5%;
    height: 100%;
    z-index: 1;
}

.pitch-hero .handshake-img {
    width: 100%;
    margin-right: 5%;
    max-width: none;
    height: auto;
    object-fit: cover;
    mix-blend-mode: multiply;
    transform: scale(1.3) translateX(-8%) translateX(60px) translateY(40px);
    transform-origin: right center;
    pointer-events: none;
}

/* WHAT I LOOK FOR */
.pitch-focus {
    padding: 50px 5%;
    background: #ffffff;
    text-align: center;
}

.pitch-focus h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 30px;
    color: #21333e;
    text-align: center;
    font-family: 'Forum', serif;
    font-weight: 400;
}

.focus-grid {
    display: grid;
    margin-top: -50px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: auto;
}

.focus-card {
    background: #F4F6f8;
    padding: 70px 25px 40px;
    border-radius: 16px;
    border: 1px solid #dce2e8;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    text-align: center;
    margin-top: 45px;
}

/* Hover Effect */
.focus-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Creating the cut-out ring effect for the icon */
.focus-card .icon-wrapper {
    background: #e4ebf0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid #ffffff;
    box-shadow: none;
    transition: transform 0.4s ease;
}

.focus-card:hover .icon-wrapper {
    transform: translateX(-50%) translateY(-5px);
}

.focus-card .focus-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.focus-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    margin-bottom: 12px;
    color: #1a2a32;
    font-weight: 400;
    font-family: 'Forum', serif;
}

.focus-card p {
    font-size: clamp(0.9rem, 1.5vw, 0.95rem);
    color: #485E68;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* SUBMIT PITCH FORM */
.pitch-form-section {
    background: #d3d3d3f6;
    padding: 40px 20px;
    margin-bottom: 0px;
}

.pitch-form {
    max-width: 1000px;
    margin: auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    text-align: center;
}

.pitch-form h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    color: #000;
    text-align: center;
}

.form-field {
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
    justify-content: flex-start;
}

.form-field .iti {
    flex: 0 0 auto;
    width: 100%;
}

.pitch-phone-input-container {
    width: 100%;
    position: relative;
}

.pitch-phone-input-container .iti input.iti__tel-input {
    padding-left: 110px !important;
    height: 50px !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
}

.pitch-phone-input-container .iti__selected-country {
    background: #f8fbfe !important;
    border-right: 1px solid #dce2e8 !important;
    border-radius: 8px 0 0 8px !important;
}


.form-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

/* Let intl-tel-input handle its own padding */
.form-field .iti input.iti__tel-input {
    padding-left: 110px;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #21333e;
    box-shadow: 0 0 0 3px rgba(33, 51, 62, 0.2);
}

.pitch-summary-field {
    margin-top: 20px;
}

.file-upload-field {
    margin-top: 20px;
}

.upload-icon {
    width: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.submit-wrapper {
    margin-top: 30px;
}

.submit-disclaimer {
    margin-top: 15px;
    display: block;
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.pitch-form textarea {
    margin-top: 20px;
    resize: none;
    min-height: 120px;
}

.upload-box {
    margin: 25px 0;
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-box p {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.upload-box span {
    font-size: 0.85rem;
    color: #666;
}

/* Reset intl-tel-input button inside pitch form to prevent layout breaks */
.pitch-form .iti button {
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}


.pitch-form .form-submit-btn {
    width: 50%;
    height: 60px;
    background: #21333e;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.pitch-form .form-submit-btn:hover {
    transform: scale(1.03);
}

.pitch-form small {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #000000;
}

/* Required Asterisk */
.required {
    color: #e74c3c;
    margin-left: 2px;
}

/* INVESTMENT PROCESS (Timeline) */
.how-to-invest {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.inv-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

.how-to-invest h2 {
    font-family: 'Forum', serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #1a2a32;
    margin-bottom: 70px;
    font-weight: 400;
    text-align: center;
}

.timeline-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 1300px;
    margin: 40px auto 0;
    gap: 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-circle {
    width: 120px;
    height: 120px;
    background-color: #E2E8EC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #C4D1D6;
    margin-bottom: 0px;
    box-shadow: 0 10px 40px rgba(33, 51, 62, 0.05);
}

.step-circle::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    background-color: #F4F6f8;
    border-radius: 50%;
    z-index: 1;
    border: 1px solid #DDE4E8;
}

.step-circle span {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    color: #1a2a32;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.timeline-step h4 {
    font-family: 'Forum', serif;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    color: #1a1a1a;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 400;
    text-align: center;
    line-height: 1.3;
}

.timeline-step p {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: #4a5e68;
    line-height: 1.6;
    text-align: center;
    margin: 0 auto;
    max-width: 260px;
    font-weight: 400;
}

.timeline-line {
    flex: 1;
    height: 1.5px;
    background-color: #cdd5dc;
    margin: 60px -90px 0;
    position: relative;
    min-width: 40px;
    z-index: 1;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.timeline-line.visible {
    opacity: 1;
    transform: scaleX(1);
}

.timeline-line .arrow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 14px;
    height: 14px;
    border-right: 2px solid #cdd5dc;
    border-top: 2px solid #cdd5dc;
}

@media (max-width: 992px) {
    .timeline-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }

    .timeline-line {
        display: block;
        margin-top: 35px;
    }

    .timeline-line .arrow {
        width: 10px;
        height: 10px;
    }

    .timeline-step {
        width: auto;
        gap: 5px;
    }

    .step-circle {
        width: 70px;
        height: 70px;
    }

    .step-circle::after {
        width: 52px;
        height: 52px;
    }

    .step-circle span {
        font-size: 1.3rem;
    }

    .timeline-step h4 {
        margin-top: 10px;
        font-size: 0.85rem;
        width: 100px;
        margin-left: -15px;
        margin-right: -15px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .timeline-line {
        margin-top: 23px;
        min-width: 15px;
    }

    .timeline-line .arrow {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }

    .step-circle {
        width: 46px;
        height: 46px;
    }

    .step-circle::after {
        width: 34px;
        height: 34px;
    }

    .step-circle span {
        font-size: 0.95rem;
    }

    .timeline-step h4 {
        font-size: 0.65rem;
        margin-top: 6px;
        width: 70px;
        margin-left: -12px;
        margin-right: -12px;
    }
}

/* ── Form Message ── */
.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid #27ae60;
}

.form-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* ── Button Loading State ── */
.pitch-form .form-submit-btn {
    width: 100%;
    max-width: 300px;
    background: #21333e;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 20px auto 0;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pitch-form .form-submit-btn:hover {
    transform: scale(1.03);
}

.pitch-form .form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.form-field.error input,
.form-field.error textarea {
    border-color: #e74c3c !important;
    background: #fff5f5 !important;
}

.form-field.error .error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    padding-left: 4px;
}

.form-field.valid input,
.form-field.valid textarea {
    border-color: #27ae60 !important;
    background: #f0fff4 !important;
}

.form-field.valid .error-message {
    display: none;
}

/* Success Icon for valid fields */
/* Ensure phone input doesn't show icon over text */
.form-field.valid .pitch-phone-input-container::after {
    display: none;
}

/* Character Count Display */
.char-count {
    font-size: 0.8rem;
    color: #666;
    text-align: right;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.char-count.success {
    color: #27ae60;
}

.char-count.error {
    color: #e74c3c;
}



.upload-box>label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: block;
    text-align: left;
}

.upload-box:hover {
    border-color: #D4A643;
    background: rgba(212, 166, 67, 0.05);
}

.upload-box.dragover {
    border-color: #21333e;
    background: rgba(33, 51, 62, 0.05);
    transform: scale(1.02);
}

.upload-box.has-file {
    border-style: solid;
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.08);
}

.upload-box.error {
    border-color: #e74c3c;
}

.upload-box p {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.upload-box span {
    font-size: 0.85rem;
    color: #666;
}

.file-info {
    margin-top: 15px;
    padding: 10px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 8px;
}

.file-info .file-name {
    font-weight: 500;
    color: #27ae60;
    word-break: break-all;
}

.file-info .remove-file {
    display: inline-block;
    margin-left: 10px;
    color: #e74c3c;
    font-size: 1.2rem;
    cursor: pointer;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.file-info .remove-file:hover {
    transform: scale(1.2);
}

.upload-size-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
}

.upload-box.error .upload-size-error {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-field {
    position: relative;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #21333e;
    box-shadow: 0 0 0 3px rgba(33, 51, 62, 0.2);
}

/*  PITCH PAGE RESPONSIVE STYLES*/

/* Tablet (769px - 992px) */
@media (max-width: 992px) {
    .pitch-hero {
        height: auto;
        min-height: auto;
        padding: 100px 5% 60px;
        overflow: visible;
    }

    .pitch-hero h1 {
        white-space: normal;
    }

    .pitch-hero .pitch-container {
        flex-direction: column;
        gap: 40px;
    }

    .pitch-hero .hero-left {
        width: 100%;
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .pitch-hero .hero-stats {
        justify-content: center;
    }

    .pitch-hero .hero-right {
        width: 100%;
        max-width: 100%;
        display: block;
        text-align: center;
        margin-right: 0;
    }

    .pitch-hero .handshake-img {
        width: 100%;
        max-width: 500px;
        transform: none;
        margin: 20px auto 0;
        display: inline-block;
    }

    .pitch-form {
        padding: 35px;
    }

    .form-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .pitch-hero {
        margin-top: 70px;
        padding: 80px 5% 40px;
        height: auto;
        overflow: visible;
    }

    .pitch-hero h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        white-space: normal;
    }

    .pitch-hero .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 20px;
    }

    .pitch-hero .stat-card {
        padding: 15px 10px;
        border-radius: 12px;
    }

    .pitch-hero .stat-card h3 {
        font-size: 1.6rem;
        margin-bottom: 4px;
    }

    .pitch-hero .stat-card p {
        font-size: 0.75rem;
    }

    .pitch-hero .hero-right {
        max-width: 100%;
        justify-content: center;
        align-items: center;
        margin-right: 0;
    }

    .pitch-hero .handshake-img {
        width: 100%;
        max-width: 500px;
        transform: none;
        margin: 20px auto 0;
    }

    .pitch-focus {
        padding: 40px 5%;
    }

    .pitch-form {
        padding: 25px 20px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    }

    .pitch-form h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

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

    .form-field input,
    .form-field textarea {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .upload-box {
        padding: 30px 15px;
    }

    .pitch-form .form-submit-btn {
        height: 50px;
        font-size: 0.95rem;
    }

    .investment-process {
        padding: 60px 4%;
    }

    @media (max-width: 768px) {
        .investment-process {
            padding: 50px 5%;
        }

        .investment-process h2 {
            font-family: 'Forum', serif;
            font-size: 2.2rem;
            margin-bottom: 40px;
            text-align: center;
        }

        .timeline-wrapper {
            flex-direction: column;
            align-items: flex-start;
            /* Align steps to the left */
            gap: 40px;
            position: relative;
            padding-left: 20px;
            /* Space for the vertical line */
            max-width: 500px;
            margin: 0 auto;
        }

        /* Vertical line spanning the entire timeline */
        .timeline-wrapper::before {
            content: '';
            position: absolute;
            left: 45px;
            /* Centers with the 50px circles */
            top: 25px;
            /* Starts at the center of the first circle */
            bottom: 25px;
            /* Ends at the center of the last circle */
            width: 1.5px;
            background-color: #cdd5dc;
            z-index: 1;
        }

        /* Hide the individual timeline-line components on mobile */
        .timeline-line {
            display: none !important;
        }

        .timeline-step {
            flex-direction: row;
            /* Horizontal layout: Circle | Content */
            align-items: center;
            width: 100%;
            gap: 20px;
            text-align: left;
            /* Align text to the left */
            opacity: 1;
            /* Ensure visibility for mobile */
            transform: none;
        }

        .step-circle {
            width: 50px;
            height: 50px;
            flex-shrink: 0;
            margin-bottom: 0;
            z-index: 2;
            background-color: #E2E8EC;
            border: 1px solid #C4D1D6;
            box-shadow: 0 4px 15px rgba(33, 51, 62, 0.05);
        }

        .step-circle::after {
            width: 38px;
            height: 38px;
        }

        .step-circle span {
            font-size: 1.1rem;
        }

        .timeline-step-content {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .timeline-step h4 {
            margin: 0;
            font-size: 1.15rem;
            text-align: left;
            white-space: normal;
        }

        .timeline-step p {
            margin: 0;
            text-align: left;
            max-width: 100%;
            font-size: 0.9rem;
            line-height: 1.4;
        }
    }

    /* Small Mobile (up to 480px) */
    @media (max-width: 480px) {
        .pitch-hero {
            margin-top: 60px;
            padding: 70px 4% 30px;
            height: auto;
            overflow: visible;
        }

        .pitch-hero h1 {
            font-size: 1.6rem;
            white-space: normal;
        }

        .pitch-hero p {
            font-size: 0.9rem;
        }

        .pitch-focus {
            padding: 30px 4%;
        }

        .pitch-focus h2 {
            font-size: 1.3rem;
            margin-bottom: 25px;
        }

        .focus-card {
            padding: 60px 20px 25px;
        }

        .pitch-form {
            padding: 20px 15px;
        }

        .pitch-form h2 {
            font-size: 1.3rem;
        }

        .upload-box {
            padding: 25px 15px;
            margin: 20px 0;
        }

        .pitch-form button {
            width: 100%;
            max-width: 100%;
            height: 48px;
            font-size: 0.9rem;
        }

        .pitch-hero .hero-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }

        .pitch-hero .hero-right {
            max-width: 100%;
            justify-content: center;
            align-items: center;
            margin-right: 0;
        }

        .pitch-hero .handshake-img {
            width: 90%;
            max-width: 400px;
            transform: none;
            margin: 10px auto 0;
        }

        .timeline-wrapper {
            gap: 30px;
            padding-left: 10px;
        }

        .timeline-wrapper::before {
            left: 33px;
            /* Adjust for 46px circles */
            top: 23px;
            bottom: 23px;
        }

        .step-circle {
            width: 46px;
            height: 46px;
        }

        .step-circle::after {
            width: 34px;
            height: 34px;
        }

        .step-circle span {
            font-size: 1rem;
        }

        .timeline-step h4 {
            font-size: 1.05rem;
            margin: 0;
        }

        .timeline-step p {
            font-size: 0.85rem;
            line-height: 1.3;
        }
    }

    .pitch-phone-input-container .iti input.iti__tel-input {
        padding-left: 95px !important;
        height: 46px !important;
        font-size: 0.9rem !important;
    }
}