/* =========================================================
   SmartMove – Valuation Page Styles
   Primary colour: #121ee4
   Layout: Form (left col) | Image + Info Panel (right col)
   ========================================================= */

:root {
    --smv-primary: #121ee4;
    --smv-primary-dark: #0c17b8;
    --smv-primary-light: rgba(18, 30, 228, 0.08);
    --smv-text: #1a1a2e;
    --smv-muted: #666;
    --smv-border: #e0dfe8;
    --smv-bg: #fafafa;
    --smv-card-bg: #fff;
    --smv-radius: 8px;
}

/* ---------- Page wrapper ---------- */
.smv-valuation-page.rh_section {
    padding-top: 50px !important;
    margin-bottom: 50px !important;
}

/* =========================================================
   TWO-COLUMN LAYOUT
   ========================================================= */
.smv-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* Form column */
.smv-form-col {
    background: var(--smv-card-bg);
    border-radius: 12px;
    padding: 44px 48px;
    box-shadow: 0 2px 24px rgba(18, 30, 228, 0.07);
    border: 1px solid var(--smv-border);
}

/* Sidebar column */
.smv-sidebar-col {
    position: sticky;
    top: 90px;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.smv-sidebar {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(18, 30, 228, 0.12);
}

.smv-sidebar-img-wrap {
    overflow: hidden;
    max-height: 240px;
}

.smv-sidebar-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.smv-sidebar:hover .smv-sidebar-img {
    transform: scale(1.04);
}

.smv-sidebar-card {
    background: var(--smv-primary);
    padding: 28px 24px 32px;
}

.smv-sidebar-heading {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.smv-sidebar-body {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    margin: 0 0 20px;
}

.smv-sidebar-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.smv-sidebar-bullets li {
    font-size: 13px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.smv-chk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.smv-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 36px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--smv-border);
}

.smv-section-header:first-of-type {
    margin-top: 0;
}

.smv-section-num {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fff;
    background: var(--smv-primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.smv-section-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--smv-text) !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.smv-section-header--toggle {
    cursor: pointer;
}

/* Optional toggle */
.smv-optional-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.smv-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--smv-primary-light);
    border: 1px solid rgba(18, 30, 228, 0.2);
    border-radius: 50px;
    padding: 4px 10px 4px 12px;
}

.smv-toggle-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--smv-primary);
}

.smv-toggle-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--smv-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.25s;
}

.smv-optional-toggle.smv-open .smv-toggle-icon-wrap {
    background: var(--smv-text);
}

/* =========================================================
   GRID ROWS
   ========================================================= */
.smv-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.smv-row.smv-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.smv-row.smv-row-1 {
    grid-template-columns: 1fr;
}

/* =========================================================
   FORM FIELDS
   ========================================================= */
.smv-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.smv-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--smv-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.smv-required {
    color: #e74c3c;
}

.smv-optional-tag {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #bbb;
    background: #f2f2f2;
    border-radius: 3px;
    padding: 2px 5px;
}

/* Inputs / selects / textarea */
.smv-field input[type="text"],
.smv-field input[type="email"],
.smv-field select,
.smv-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--smv-border);
    border-radius: var(--smv-radius);
    font-size: 14px;
    color: var(--smv-text);
    background: var(--smv-bg);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.smv-field input[type="text"]:focus,
.smv-field input[type="email"]:focus,
.smv-field select:focus,
.smv-field textarea:focus {
    border-color: var(--smv-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(18, 30, 228, 0.1);
}

.smv-field input.smv-error,
.smv-field select.smv-error,
.smv-field textarea.smv-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Select chevron */
.smv-select-wrap {
    position: relative;
}

.smv-select-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #999;
    pointer-events: none;
}

.smv-field select {
    padding-right: 34px;
    cursor: pointer;
}

/* Textarea */
.smv-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Error text */
.smv-field-error {
    font-size: 11px;
    color: #e74c3c;
    font-weight: 600;
    display: none;
    margin-top: 2px;
}

/* =========================================================
   OPTIONAL SECTION (COLLAPSIBLE)
   ========================================================= */
.smv-optional-section {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease;
}

.smv-optional-section.smv-open {
    max-height: 4000px;
}

/* =========================================================
   FORM FOOTER
   ========================================================= */
.smv-form-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--smv-border);
}

.smv-privacy-note {
    font-size: 13px;
    color: #888;
    margin: 0 0 18px;
    line-height: 1.6;
}

.smv-privacy-note a {
    color: var(--smv-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.smv-recaptcha {
    margin-bottom: 18px;
}

.smv-submit-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.smv-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--smv-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--smv-radius);
    padding: 14px 36px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(18, 30, 228, 0.3);
}

.smv-submit-btn:hover {
    background: var(--smv-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(18, 30, 228, 0.4);
}

.smv-submit-btn:active {
    transform: translateY(0);
}

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

.smv-btn-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: smv-spin 0.7s linear infinite;
}

.smv-submit-btn.smv-loading .smv-btn-spinner {
    display: inline-block;
}

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

.smv-required-note {
    font-size: 12px;
    color: #aaa;
    margin: 0;
}

/* Result messages */
.smv-result {
    padding: 14px 18px;
    border-radius: var(--smv-radius);
    font-size: 14px;
    margin-top: 18px;
    display: none;
    line-height: 1.5;
    font-weight: 500;
}

.smv-result.smv-success {
    background: #eef2ff;
    border: 1px solid var(--smv-primary);
    color: var(--smv-primary-dark);
}

.smv-result.smv-error-msg {
    background: #fdedec;
    border: 1px solid #e74c3c;
    color: #922b21;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
    .smv-layout {
        grid-template-columns: 1fr;
    }

    /* Move sidebar above form on mobile */
    .smv-sidebar-col {
        order: -1;
        position: static;
    }

    .smv-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-radius: 12px;
    }

    .smv-sidebar-img-wrap {
        max-height: none;
    }

    .smv-sidebar-img {
        height: 100%;
    }

    .smv-form-col {
        padding: 30px 24px;
    }
}

@media (max-width: 640px) {
    .smv-sidebar {
        grid-template-columns: 1fr;
    }

    .smv-sidebar-img {
        height: 220px;
    }

    .smv-row,
    .smv-row.smv-row-3 {
        grid-template-columns: 1fr;
    }

    .smv-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .smv-submit-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}