/* ============================================================
   PayoutJet — Repair Shop Partner Landing Page
   Inherits design tokens from modern-homepage.css (:root vars)
   ============================================================ */

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

.rsp-hero {
    background: #ffffff;
    padding: 80px 0 88px;
    overflow: hidden;
}

.rsp-hero-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 56px;
    align-items: center;
}

.rsp-hero-copy {
    text-align: left;
}

.rsp-hero-copy h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    color: #1e293b;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.rsp-hero-copy .lead {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 540px;
}

.rsp-hero-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.rsp-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rsp-hero-img-wrap {
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rsp-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ===== HOW IT WORKS ===== */

.rsp-how-section {
    background: #f1f5f9;
    padding: 80px 0 96px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.rsp-steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 56px;
}

.rsp-step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 0 24px;
}

.rsp-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 0.875rem;
    font-weight: 800;
    color: #059669;
}

.rsp-step h3 {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}

.rsp-step p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
}

.rsp-step-arrow {
    display: flex;
    align-items: center;
    padding-top: 10px;
    color: #cbd5e1;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ===== CUSTOMER ANGLE ===== */

.rsp-customer-section {
    background: #f8fafc;
    padding: 80px 0 88px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* ===== REVENUE CALCULATOR ===== */

.rsp-calc-section {
    background: #ffffff;
    padding: 80px 0 96px;
}

/* Open two-column layout: slider left, numbers right */
.rsp-calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 860px;
    margin: 52px auto 0;
}

.rsp-calc-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.rsp-calc-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Custom slider */
.rsp-calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    /* Filled track via CSS custom property */
    background: linear-gradient(
        to right,
        #059669 0%,
        #059669 var(--fill-pct, 20%),
        #e2e8f0 var(--fill-pct, 20%),
        #e2e8f0 100%
    );
}

.rsp-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #059669;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.40);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rsp-calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.50);
}

.rsp-calc-slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #059669;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.40);
}

.rsp-calc-slider-track-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
    padding: 0 2px;
}

.rsp-calc-volume-display {
    margin-top: 20px;
    font-size: 1.9rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.rsp-calc-volume-display span {
    color: #059669;
}

/* Results column */
.rsp-calc-results-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid #e2e8f0;
    padding-left: 48px;
}

.rsp-calc-result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.rsp-calc-result-item:last-child {
    border-bottom: none;
}

.rsp-calc-result-item--featured {
    padding: 24px 0;
}

.rsp-calc-result-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rsp-calc-result-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    transition: opacity 0.12s ease;
}

.rsp-calc-result-num--green {
    font-size: 2.8rem;
    color: #059669;
}

.rsp-calc-footnote {
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    margin: 40px auto 0;
    max-width: 480px;
}

/* ===== FORM SECTION ===== */

.rsp-form-section {
    background: #ffffff;
    padding: 80px 0 96px;
    border-top: 1px solid #e2e8f0;
}

.rsp-form-wrap {
    max-width: 680px;
    margin: 0 auto;
}

.rsp-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 48px;
    margin-top: 40px;
}

.rsp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.rsp-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rsp-form-group--full {
    margin-bottom: 24px;
}

.rsp-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.rsp-required {
    color: #b3282d;
}

.rsp-required-opt {
    color: #94a3b8;
    font-weight: 400;
}

.rsp-form-group input,
.rsp-form-group select {
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.rsp-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #ffffff;
    padding-right: 36px;
    cursor: pointer;
}

.rsp-form-group input:focus,
.rsp-form-group select:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.rsp-form-group input::placeholder {
    color: #cbd5e1;
}

.rsp-form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.rsp-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.rsp-form-privacy {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
    text-align: center;
}

/* Form success / error */

.rsp-form-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 40px;
}

.rsp-form-success i {
    font-size: 1.75rem;
    color: #059669;
    flex-shrink: 0;
    margin-top: 2px;
}

.rsp-form-success strong {
    display: block;
    font-size: 1.05rem;
    color: #065f46;
    margin-bottom: 6px;
}

.rsp-form-success p {
    font-size: 0.9rem;
    color: #047857;
    margin: 0;
    line-height: 1.6;
}

.rsp-form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.875rem;
    color: #991b1b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.rsp-form-error i {
    color: #dc2626;
    flex-shrink: 0;
    margin-top: 2px;
}

.rsp-form-error a {
    color: #b91c1c;
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .rsp-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .rsp-hero-visual {
        order: -1;
    }

    .rsp-hero-img-wrap {
        max-width: 300px;
        margin: 0 auto;
    }

    .rsp-hero-copy {
        text-align: center;
    }

    .rsp-hero-copy .lead {
        max-width: 100%;
    }

    .rsp-hero-actions {
        justify-content: center;
    }

    .rsp-calc-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Tighten section paddings */
    .rsp-hero {
        padding: 48px 0 56px;
    }

    .rsp-how-section,
    .rsp-customer-section,
    .rsp-calc-section,
    .rsp-form-section {
        padding: 56px 0 64px;
    }

    /* Steps vertical timeline */
    .rsp-steps-row {
        flex-direction: column;
        align-items: stretch;
        gap: 36px;
        margin-top: 40px;
        position: relative;
    }

    .rsp-step-arrow {
        display: none;
    }

    .rsp-step {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        max-width: 100%;
        text-align: left;
        padding: 0;
        position: relative;
    }

    .rsp-step-num {
        margin: 0;
        flex-shrink: 0;
        z-index: 2;
    }

    /* Vertical line connecting step numbers */
    .rsp-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 20px;
        top: 40px;
        bottom: -38px;
        width: 2px;
        background: #059669;
        opacity: 0.3;
        z-index: 1;
    }

    .rsp-step h3 {
        margin: 4px 0 6px;
    }

    /* Slider Centering */
    .rsp-calc-label {
        text-align: center;
    }

    .rsp-calc-volume-display {
        text-align: center;
    }

    /* Metric Cards for Calculator — Compact 3-Column Grid */
    .rsp-calc-results-col {
        border-left: none;
        padding-left: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }

    .rsp-calc-result-item {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 12px 6px;
        text-align: center;
        align-items: center;
        justify-content: center;
        width: 100%;
        border-bottom: none;
        display: flex;
        flex-direction: column;
        min-height: 84px;
    }

    .rsp-calc-result-item--featured {
        background: #f0fdf4;
        border: 1.5px solid #bbf7d0;
        box-shadow: 0 4px 12px rgba(5, 150, 105, 0.04);
        padding: 12px 6px;
    }

    .rsp-calc-result-label {
        font-size: 0.58rem;
        font-weight: 700;
        line-height: 1.25;
        margin-bottom: 4px;
        letter-spacing: 0.02em;
    }

    .rsp-calc-result-num {
        font-size: 1.15rem;
        font-weight: 800;
    }

    .rsp-calc-result-num--green {
        font-size: 1.3rem;
    }

    .rsp-calc-result-item:last-child {
        border-bottom: none;
    }

    /* Form and layout tweaks */
    .rsp-form {
        padding: 32px 24px;
    }

    .rsp-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .party-layout {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .party-copy {
        text-align: center;
        align-items: center;
    }
}
