/* ==========================================================================
   RS Motors — Sell or trade in
   Hero visual, process steps, valuation form and trade-in FAQs.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.trade-hero {
    padding-bottom: clamp(52px, 7vw, 88px);
    background:
        radial-gradient(820px 500px at 88% 8%, rgba(var(--rs-accent-rgb), 0.1), transparent 62%),
        radial-gradient(620px 380px at 0% 100%, rgba(var(--rs-gold-rgb), 0.1), transparent 66%);
}

.trade-hero h1 {
    max-width: 15ch;
}

.trade-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 26px 0 28px;
    padding-top: 20px;
    border-top: 1px solid var(--rs-line);
}

.trade-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--rs-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.trade-points i {
    color: var(--rs-success);
    font-size: 0.9rem;
}

.trade-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
    padding: clamp(24px, 3.4vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--rs-radius-lg);
    background:
        radial-gradient(460px 320px at 86% 4%, rgba(var(--rs-accent-rgb), 0.34), transparent 62%),
        linear-gradient(150deg, var(--rs-primary) 0%, var(--rs-dark) 100%);
    color: #fff;
    box-shadow: var(--rs-shadow-lg);
}

.trade-visual > i {
    position: absolute;
    right: -4%;
    bottom: 6%;
    color: rgba(255, 255, 255, 0.08);
    font-size: clamp(8rem, 17vw, 13rem);
    line-height: 1;
    transform: scaleX(-1);
    pointer-events: none;
}

.trade-orb {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.trade-orb-one {
    top: -34%;
    right: -18%;
    width: 300px;
    height: 300px;
}

.trade-orb-two {
    bottom: -42%;
    left: -14%;
    width: 260px;
    height: 260px;
    border-color: rgba(var(--rs-accent-rgb), 0.32);
}

.trade-visual-copy {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.trade-visual-copy strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-family: var(--rs-font-display);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 600;
    letter-spacing: var(--rs-tracking-tight);
    line-height: 1.12;
}

.trade-visual-copy span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.8rem;
    font-weight: 600;
}

.trade-visual::before {
    content: "VALUATION";
    position: absolute;
    top: 24px;
    left: 26px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.22em;
}

/* --------------------------------------------------------------------------
   2. Process cards
   -------------------------------------------------------------------------- */
.trade-process {
    background: var(--rs-bg-soft);
}

.process-card {
    position: relative;
    padding: 28px 24px 24px;
    overflow: hidden;
    border-radius: var(--rs-radius-md);
    transition: transform var(--rs-speed) var(--rs-ease), box-shadow var(--rs-speed) var(--rs-ease),
        border-color var(--rs-speed) var(--rs-ease);
}

.process-card:hover {
    border-color: rgba(var(--rs-accent-rgb), 0.24);
    transform: translateY(-4px);
    box-shadow: var(--rs-shadow-md);
}

.process-step {
    position: absolute;
    top: 16px;
    right: 20px;
    color: var(--rs-line-strong);
    font-family: var(--rs-font-display);
    font-size: 2.3rem;
    font-style: italic;
    line-height: 1;
}

.process-card > i {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 15px;
    background: rgba(var(--rs-accent-rgb), 0.09);
    color: var(--rs-accent);
    font-size: 1.2rem;
    transition: background-color var(--rs-speed) var(--rs-ease), color var(--rs-speed) var(--rs-ease);
}

.process-card:hover > i {
    background: var(--rs-accent);
    color: #fff;
}

.process-card h3 {
    margin-bottom: 0.4em;
    font-family: var(--rs-font-body);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.process-card p {
    margin: 0;
    color: var(--rs-muted);
    font-size: 0.85rem;
    line-height: 1.72;
}

/* --------------------------------------------------------------------------
   3. Valuation form
   -------------------------------------------------------------------------- */
.trade-form-section {
    scroll-margin-top: calc(var(--rs-header-height) + 20px);
}

.trade-form-intro {
    position: sticky;
    top: calc(var(--rs-header-height) + 20px);
}

.trade-form-intro h2 {
    margin-bottom: 0.45em;
}

.trade-form-intro > p {
    color: var(--rs-muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.contact-mini {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    padding: 16px 18px;
    border-radius: var(--rs-radius-md);
}

.contact-mini > i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(var(--rs-whatsapp-rgb), 0.1);
    color: var(--rs-whatsapp);
    font-size: 1.1rem;
}

.contact-mini > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
}

.contact-mini strong {
    color: var(--rs-ink);
    font-size: 0.84rem;
    font-weight: 800;
}

.contact-mini span {
    color: var(--rs-muted);
    font-size: 0.72rem;
}

.contact-mini > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    color: var(--rs-whatsapp);
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.trade-form {
    padding: clamp(24px, 3.4vw, 38px);
    border-radius: var(--rs-radius-lg);
}

.form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rs-line);
}

.form-step {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--rs-ink);
    color: var(--rs-inverse);
    font-size: 0.74rem;
    font-weight: 800;
}

.form-section-head h3 {
    margin: 0 0 1px;
    font-family: var(--rs-font-body);
    font-size: 0.94rem;
    font-weight: 800;
}

.form-section-head p {
    margin: 0;
    color: var(--rs-muted);
    font-size: 0.74rem;
}

.trade-form .form-label {
    font-size: 0.68rem;
}

.trade-form .form-control,
.trade-form .form-select {
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
}

.trade-form .form-control[type="file"] {
    min-height: 48px;
}

.trade-form .btn-lg {
    margin-top: 4px;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--rs-line);
    border-radius: var(--rs-radius-sm);
    background: var(--rs-surface-2);
}

.file-preview img {
    width: 72px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: cover;
}

.file-preview-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.4;
}

.file-preview-info strong {
    overflow: hidden;
    color: var(--rs-ink);
    font-size: 0.78rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-info span {
    color: var(--rs-muted);
    font-size: 0.7rem;
}

.file-preview-remove {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--rs-line);
    border-radius: 50%;
    background: var(--rs-surface);
    color: var(--rs-muted);
    font-size: 0.72rem;
    cursor: pointer;
    transition: background-color var(--rs-speed) var(--rs-ease), color var(--rs-speed) var(--rs-ease);
}

.file-preview-remove:hover {
    background: var(--rs-danger);
    color: #fff;
}

.file-preview.is-invalid {
    border-color: rgba(var(--rs-danger-rgb), 0.45);
    background: rgba(var(--rs-danger-rgb), 0.05);
}

.file-preview.is-invalid .file-preview-info span {
    color: var(--rs-danger);
}

/* --------------------------------------------------------------------------
   4. FAQs
   -------------------------------------------------------------------------- */
.trade-faq {
    border-top: 1px solid var(--rs-line);
    background: var(--rs-bg-soft);
}

/* --------------------------------------------------------------------------
   5. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .trade-form-intro {
        position: static;
    }

    .trade-visual {
        min-height: 280px;
    }
}

@media (max-width: 767.98px) {
    .trade-points {
        gap: 8px 16px;
    }

    .trade-visual {
        min-height: 240px;
    }

    .trade-visual > i {
        font-size: 9rem;
    }

    .trade-form {
        padding: 20px 16px;
    }

    .contact-mini > a {
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    .form-section-head {
        gap: 10px;
    }

    .trade-form .btn-lg {
        font-size: 0.9rem;
    }
}
