/* ── ReadyFill Search Plugin v2 ──────────────────────────────────────────── */

:root {
    --rf-primary:    #FF6900;
    --rf-primary-dk: #e05c00;
    --rf-text:       #ffffff;
    --rf-muted:      #e8d8ce;
    --rf-border:     #7a5c48;
    --rf-bg:         #5C3F2A;
    --rf-white:      #4C3222;
    --rf-input-bg:   #ffffff;
    --rf-input-text: #4C3222;
    --rf-radius:     12px;
    --rf-shadow:     0 4px 24px rgba(0,0,0,0.22);
}

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
#rf-search-wrapper {
    max-width: 560px;
    margin: 40px auto;
    padding: 0 16px 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    color: var(--rf-text);
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.rf-card {
    background: var(--rf-white);
    border-radius: var(--rf-radius);
    box-shadow: var(--rf-shadow);
    padding: 36px 32px;
}
@media (max-width: 480px) { .rf-card { padding: 24px 18px; } }

/* ── Typography ──────────────────────────────────────────────────────────── */
.rf-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--rf-text);
}
.rf-subtitle {
    font-size: 14px;
    color: var(--rf-muted);
    margin: 0 0 28px;
    line-height: 1.5;
}
.rf-optional {
    font-size: 12px;
    font-weight: 400;
    color: var(--rf-muted);
}

/* ── Form Groups ──────────────────────────────────────────────────────────── */
.rf-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}
.rf-form-group > label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rf-text);
    margin-bottom: 8px;
}
.rf-form-group input[type="text"],
.rf-form-group input[type="tel"],
.rf-form-group input[type="email"],
.rf-form-group input[type="number"],
.rf-form-group select {
    border: 1.5px solid var(--rf-border);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 15px;
    color: var(--rf-input-text);
    background: var(--rf-input-bg);
    outline: none;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    transition: border-color 0.2s;
}
.rf-form-group input:focus,
.rf-form-group select:focus { border-color: var(--rf-primary); }
.rf-form-group input::placeholder { color: #b0907a; }

.rf-form-row {
    display: flex;
    gap: 12px;
}

/* ── Phone wrap ───────────────────────────────────────────────────────────── */
.rf-phone-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--rf-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--rf-input-bg);
    transition: border-color 0.2s;
}
.rf-phone-wrap:focus-within { border-color: var(--rf-primary); }
.rf-phone-prefix {
    background: #f0e4db;
    padding: 11px 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--rf-input-text);
    border-right: 1.5px solid var(--rf-border);
    white-space: nowrap;
}
.rf-phone-wrap input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
}

/* ── Chip / pill buttons ─────────────────────────────────────────────────── */
.rf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rf-chip {
    border: 1.5px solid var(--rf-border);
    border-radius: 8px;
    background: var(--rf-bg);
    color: var(--rf-text);
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
    user-select: none;
}
.rf-chip:hover {
    border-color: var(--rf-primary);
    color: var(--rf-primary);
}
.rf-chip.rf-chip-active,
.rf-chip:focus.rf-chip-active {
    background: var(--rf-primary);
    border-color: var(--rf-primary);
    color: #fff;
}
/* Full-width chip (e.g. ASAP) */
.rf-chip-full {
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

/* ── Budget row ──────────────────────────────────────────────────────────── */
.rf-budget-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.rf-budget-input {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--rf-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--rf-input-bg);
    width: 110px;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.rf-budget-input:focus-within { border-color: var(--rf-primary); }
.rf-currency {
    padding: 0 8px 0 12px;
    font-size: 15px;
    color: var(--rf-input-text);
}
.rf-budget-input input {
    border: none !important;
    border-radius: 0 !important;
    padding: 11px 8px 11px 0;
    width: 70px;
}

/* ── When? row ───────────────────────────────────────────────────────────── */
.rf-when-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rf-date-input {
    border: 1.5px solid var(--rf-border);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 15px;
    color: var(--rf-input-text);
    background: var(--rf-input-bg);
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.rf-date-input:focus { border-color: var(--rf-primary); }
.rf-form-group textarea {
    width: 100%;
    border: 1.5px solid var(--rf-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--rf-text);
    background: #fff;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.rf-form-group textarea:focus { outline: none; border-color: var(--rf-primary); }
.rf-form-group textarea::placeholder { color: #b0907a; }

/* ── Error text ──────────────────────────────────────────────────────────── */
.rf-error {
    color: #ff8a80;
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 18px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.rf-btn-primary {
    background: var(--rf-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.rf-btn-primary:hover    { background: var(--rf-primary-dk); }
.rf-btn-primary:active   { transform: scale(0.98); }
.rf-btn-primary:disabled { background: #7a5c48; cursor: not-allowed; }
.rf-btn-secondary {
    background: transparent;
    color: var(--rf-primary);
    border: 1.5px solid var(--rf-primary);
    border-radius: 8px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.rf-btn-secondary:hover { background: rgba(255,105,0,0.10); }
.rf-full-width   { width: 100%; }
.rf-btn-row { display: flex; gap: 12px; justify-content: space-between; }
.rf-btn-row .rf-btn-primary { flex: 1; }

/* ── Step footer links ───────────────────────────────────────────────────── */
.rf-step-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--rf-muted);
}
.rf-step-footer a           { color: var(--rf-primary); text-decoration: none; font-weight: 600; }
.rf-step-footer a:hover     { text-decoration: underline; }
.rf-divider                 { margin: 0 8px; color: var(--rf-border); }

/* ── OTP inputs ──────────────────────────────────────────────────────────── */
.rf-otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
}
.rf-otp-box {
    width: 60px;
    height: 64px;
    border: 2px solid var(--rf-border);
    border-radius: 10px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--rf-input-text);
    background: var(--rf-input-bg);
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}
.rf-otp-box::-webkit-inner-spin-button,
.rf-otp-box::-webkit-outer-spin-button { -webkit-appearance: none; }
.rf-otp-box:focus { border-color: var(--rf-primary); }

/* ── Search type grid (Step 3) ───────────────────────────────────────────── */
.rf-type-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rf-muted);
    margin: 14px 0 6px;
}
.rf-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}
@media (max-width: 360px) { .rf-type-grid { grid-template-columns: 1fr; } }
.rf-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    border: 2px solid var(--rf-border);
    border-radius: 12px;
    background: var(--rf-bg);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.1s;
    gap: 8px;
}
.rf-type-btn:hover  { border-color: var(--rf-primary); background: rgba(255,105,0,0.12); }
.rf-type-btn:active { transform: scale(0.97); }
.rf-type-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.rf-type-img-equip { filter: brightness(2.5); }
.rf-type-img-truck { filter: invert(1) brightness(1.8); width: 70px; height: 70px; }
.rf-type-img-need  { filter: brightness(0) invert(1); }
.rf-type-img-have  { filter: brightness(0) invert(1); }
.rf-type-icon  { font-size: 30px; line-height: 1; }
.rf-type-label { font-size: 14px; font-weight: 700; color: var(--rf-text); }
.rf-type-desc  { font-size: 11px; color: var(--rf-muted); text-align: center; line-height: 1.3; }

/* ── Address autocomplete ────────────────────────────────────────────────── */
.rf-autocomplete-wrap { position: relative; }
.rf-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
    list-style: none;
    margin: 0; padding: 0;
}
.rf-autocomplete-list li {
    padding: 10px 14px;
    font-size: 13px;
    color: #1a1a1a;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
}
.rf-autocomplete-list li:last-child { border-bottom: none; }
.rf-autocomplete-list li:hover { background: rgba(255,105,0,0.08); }

/* ── View Number button ──────────────────────────────────────────────────── */
.rf-reveal-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--rf-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.rf-reveal-btn:hover { background: var(--rf-primary-dk); }
.rf-revealed-phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #2e7d32;
    color: #fff;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.rf-revealed-phone:hover { background: #1b5e20; color: #fff; }

/* ── Hidden ──────────────────────────────────────────────────────────────── */
.rf-hidden { display: none !important; }

/* ── Loading overlay ─────────────────────────────────────────────────────── */
.rf-loading {
    position: absolute;
    inset: 0;
    background: rgba(76,50,34,0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--rf-radius);
    z-index: 10;
    gap: 14px;
}
.rf-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--rf-border);
    border-top-color: var(--rf-primary);
    border-radius: 50%;
    animation: rf-spin 0.7s linear infinite;
}
@keyframes rf-spin { to { transform: rotate(360deg); } }
.rf-loading-text { font-size: 14px; color: var(--rf-muted); margin: 0; }

/* ── Results ─────────────────────────────────────────────────────────────── */
.rf-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.rf-results-header .rf-title { margin: 0; }
#rf-results-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.rf-result-card {
    background: var(--rf-white);
    border-radius: var(--rf-radius);
    box-shadow: var(--rf-shadow);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}
.rf-result-name  { font-size: 16px; font-weight: 700; margin: 0; color: var(--rf-text); }
.rf-result-meta  { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-start; margin-top: 2px; }
.rf-tag {
    background: var(--rf-bg);
    color: var(--rf-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.rf-tag-primary      { background: rgba(255,105,0,0.15); color: var(--rf-primary); }
.rf-tag-attach       { background: rgba(25,118,210,0.10); color: #1565C0; }
.rf-tag-attach-match  { background: rgba(56,142,60,0.12);  color: #2E7D32; }
.rf-tag-match        { background: rgba(56,142,60,0.12);  color: #2E7D32; font-weight: 600; }
.rf-tag-nomatch      { background: rgba(211,47,47,0.10);  color: #C62828; font-weight: 600; }
.rf-tag-tipper-combo  { background: rgba(56,142,60,0.12);  color: #2E7D32; font-weight: 600; }
.rf-tag-tipper-avail  { background: rgba(245,158,11,0.12); color: #B45309; font-weight: 600; }
.rf-tag-tipper-none   { background: rgba(211,47,47,0.10);  color: #C62828; font-weight: 600; }
.rf-checkbox-label    { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--rf-text); cursor: pointer; }
.rf-checkbox-label input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--rf-primary); cursor: pointer; }
.rf-field-hint        { font-size: 12px; color: var(--rf-muted); margin: 4px 0 0; }
.rf-result-location { font-size: 13px; color: var(--rf-muted); font-weight: 700; margin: 0; }
.rf-result-price    { font-size: 15px; font-weight: 700; color: var(--rf-primary); margin: 0; }

/* "Excavator — $225/hr wet" (left) + address (right, under match badge) */
.rf-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
}
.rf-info-row .rf-result-subtitle { margin: 0; flex: 1; min-width: 0; }
.rf-info-row .rf-result-location  { margin: 0; text-align: right; white-space: nowrap; flex-shrink: 0; }
.rf-inline-price { color: var(--rf-primary); font-weight: 700; }
.rf-result-desc     { font-size: 13px; color: var(--rf-muted); line-height: 1.5; }
.rf-result-actions  { display: flex; gap: 10px; margin-top: 4px; }
.rf-card-footer     { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 10px; }
.rf-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--rf-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.rf-contact-btn:hover { background: var(--rf-primary-dk); color: #fff; }
.rf-no-results {
    background: var(--rf-white);
    border-radius: var(--rf-radius);
    box-shadow: var(--rf-shadow);
    padding: 40px 24px;
    text-align: center;
    color: var(--rf-muted);
    font-size: 15px;
}

/* ── Result card extras ──────────────────────────────────────────────────── */
.rf-result-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 0;
}
.rf-result-header .rf-result-name { margin: 0; flex: 1; }
.rf-result-header .rf-card-logo,
.rf-result-header .rf-card-logo-ph {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.rf-match-badge {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.rf-match-direct { background: #4caf50; }
.rf-match-near   { background: #ff9800; }
.rf-result-subtitle {
    font-size: 13px;
    color: var(--rf-muted);
    margin: 0;
    font-weight: 700;
}
.rf-result-minhire {
    font-size: 12px;
    color: var(--rf-muted);
    margin: 0;
}

/* ── Quote modal ─────────────────────────────────────────────────────────── */
.rf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}
.rf-modal-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.rf-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}
.rf-modal-body {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 20px;
}

/* ── Terms & Conditions ──────────────────────────────────────────────────── */
.rf-tc-wrap { margin-top: 4px; margin-bottom: 4px; }
.rf-tc-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
}
.rf-tc-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--rf-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.rf-tc-label a {
    color: var(--rf-primary);
    text-decoration: underline;
}
.rf-tc-label a:hover { color: var(--rf-primary-dk); }

/* ── Quote selection ─────────────────────────────────────────────────────── */
.rf-quote-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rf-primary);
    cursor: pointer;
    padding: 8px 0 0;
    user-select: none;
}
.rf-quote-check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--rf-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.rf-quote-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--rf-primary);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.rf-quote-bar p { margin: 0; font-size: 14px; font-weight: 600; }
.rf-quote-bar button {
    background: #fff;
    color: var(--rf-primary);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.rf-quote-bar button:hover { background: #f5ede8; }

/* ── Portal nav button ───────────────────────────────────────────────────── */
.rf-portal-nav-btn {
    background: var(--rf-primary) !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 8px 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s;
}
.rf-portal-nav-btn:hover { background: var(--rf-primary-dk) !important; color: #fff !important; }
.rf-portal-btn-standalone {
    display: inline-block;
    background: var(--rf-primary);
    color: #fff;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}
.rf-portal-btn-standalone:hover { background: var(--rf-primary-dk); color: #fff; }

/* ── Results tab bar ─────────────────────────────────────────────────────── */
.rf-tab-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    background: var(--rf-bg);
    border-radius: 10px;
    padding: 4px;
}
.rf-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rf-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}
.rf-tab:hover { color: var(--rf-text); }
.rf-tab.rf-tab-active {
    background: var(--rf-primary);
    color: #fff;
}
.rf-tab-badge {
    background: rgba(255,255,255,0.3);
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    padding: 1px 7px;
    min-width: 20px;
    text-align: center;
}
.rf-tab.rf-tab-active .rf-tab-badge { background: rgba(255,255,255,0.35); }

/* ── Card with logo (hire + premium results) ─────────────────────────────── */
.rf-card-with-logo {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.rf-card-logo-right {
    flex-direction: row-reverse;
}
.rf-card-body {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.rf-card-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
}
.rf-card-logo-ph {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--rf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rf-card-logo-ph span {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

/* ── Premium card extras ─────────────────────────────────────────────────── */
.rf-premium-card { cursor: pointer; }
.rf-premium-card:hover { border-color: #9b59b6; }

.rf-receives-row { margin-bottom: 4px; }
.rf-receives-badge {
    display: inline-block;
    background: #1976D2;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 9px;
    letter-spacing: 0.3px;
}

.rf-result-delivery {
    font-size: 12px;
    color: #555;
    font-weight: 700;
    margin: 2px 0 0;
}

.rf-card-btn-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.rf-card-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1;
}
.rf-card-btn-view {
    background: #1976D2;
    color: #fff;
}
.rf-card-btn-view:hover { background: #1565C0; }
.rf-card-btn-call {
    background: #FF6900;
    color: #fff;
}
.rf-card-btn-call:hover { background: #e05c00; }

.rf-more-badge {
    display: inline-block;
    background: rgba(155,89,182,0.2);
    color: #c39bd3;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    padding: 1px 7px;
    margin-left: 4px;
}

/* ── Premium detail modal ────────────────────────────────────────────────── */
.rf-premium-modal-box {
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 24px 20px 20px;
}
.rf-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
}
.rf-modal-close:hover { color: #333; background: #f0f0f0; }
.rf-detail-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.rf-detail-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.rf-detail-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.rf-detail-material {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.rf-detail-material-first { padding-top: 0; }
.rf-detail-material:last-of-type { border-bottom: none; }
.rf-detail-mat-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.rf-detail-photo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.rf-detail-photo-ph {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    background: #f5f5f5;
    flex-shrink: 0;
}
.rf-detail-mat-info { flex: 1; min-width: 0; }
.rf-detail-mat-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 3px;
}
.rf-detail-mat-price {
    font-size: 13px;
    color: var(--rf-primary);
    font-weight: 600;
    margin: 0 0 3px;
}
.rf-detail-mat-notes {
    font-size: 12px;
    color: #666;
    margin: 0;
}
.rf-detail-search-wrap {
    position: relative;
    margin: 12px 0 4px;
}
.rf-detail-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
}
.rf-detail-search {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px 8px 32px;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f5f6fa;
    outline: none;
    font-family: inherit;
}
.rf-detail-search:focus { border-color: #1565C0; background: #fff; }
.rf-detail-call { margin-top: 16px; }
.rf-detail-call-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

/* ── Mobile-only fixes (≤ 480px) — desktop layout is unchanged ───────────── */
@media (max-width: 480px) {

    /* Stack first-name/last-name and quantity/unit rows vertically */
    .rf-form-row {
        flex-direction: column;
        gap: 0;
    }
    .rf-form-row > .rf-form-group {
        width: 100%;
        flex: none !important;
    }

    /* Budget row: stack the $ input above the rate chips */
    .rf-budget-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .rf-budget-input {
        width: 100%;
    }

    /* OTP boxes: shrink slightly so all four fit on narrow screens */
    .rf-otp-inputs {
        gap: 8px;
    }
    .rf-otp-box {
        width: 52px;
        height: 58px;
        font-size: 22px;
    }

    /* Back/Search button row: put Search on top, Back below, both full-width */
    .rf-btn-row {
        flex-direction: column;
        gap: 8px;
    }
    .rf-btn-row .rf-btn-primary {
        order: 1;
        flex: none;
        width: 100%;
    }
    .rf-btn-row .rf-btn-secondary {
        order: 2;
        width: 100%;
        text-align: center;
    }

    /* Results header: stack title and New Search button */
    .rf-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .rf-results-header .rf-btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Quote bar: stack text + button vertically */
    .rf-quote-bar {
        flex-direction: column;
        padding: 12px 16px;
        gap: 8px;
    }
    .rf-quote-bar button {
        width: 100%;
    }

    /* Reduce map wrapper top margin on mobile */
    #rf-map-wrapper {
        margin-top: 16px;
        padding: 14px 14px 20px;
    }

    /* Prevent the search wrapper from adding too much top/bottom space */
    #rf-search-wrapper {
        margin: 16px auto 24px;
    }
}

/* ── CMS content pages (Privacy Policy, Terms & Conditions, etc.) ─────── */
.rf-cms-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}
.rf-cms-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.75rem 0 0.4rem;
    color: #111;
}
.rf-cms-content p {
    margin: 0.4rem 0;
}
.rf-cms-content ul {
    padding-left: 1.5rem;
    margin: 0.25rem 0 0.75rem;
}
.rf-cms-content li {
    list-style: disc;
    margin: 0.2rem 0;
}
.rf-cms-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.rf-cms-content td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    vertical-align: top;
}
.rf-cms-content tr:first-child td {
    font-weight: 600;
    background: #f5f5f5;
}
.rf-cms-content .ql-size-small { font-size: inherit; }

/* ── Blog Grid Shortcode ─────────────────────────────────────────────────── */
.rf-blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.2rem !important;
    padding: 1rem 0 2rem;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 860px) {
    .rf-blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 540px) {
    .rf-blog-grid { grid-template-columns: 1fr !important; }
}
.rf-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}
.rf-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.13);
    text-decoration: none;
    color: inherit;
}
.rf-blog-card__image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0ebe6;
}
.rf-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rf-blog-card__no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF6900 0%, #5C3F2A 100%);
}
.rf-blog-card__body {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}
.rf-blog-card__date {
    font-size: 0.7rem;
    color: #999;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rf-blog-card__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.35;
    flex: 1;
}
.rf-blog-card__read {
    font-size: 0.78rem;
    color: #FF6900;
    font-weight: 600;
    margin-top: 0.4rem;
}

/* ── Blog Article Single Post ────────────────────────────────────────────── */
.rf-article-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
}
.rf-article-meta {
    margin-bottom: 1.8rem;
}
.rf-post-meta-date {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
@media (max-width: 600px) {
    .rf-article-title { font-size: 1.6rem; }
}

/* ── FAQ Shortcode ───────────────────────────────────────────────────────── */
.rf-faqs {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1rem;
}
.rf-faq-item {
    border-bottom: 1px solid #e0e0e0;
}
.rf-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 0;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.rf-faq-question:hover { color: #FF6900; }
.rf-faq-icon {
    font-size: 1.4rem;
    font-weight: 400;
    flex-shrink: 0;
    color: #FF6900;
}
.rf-faq-answer {
    padding: 0 0 1.25rem 0;
}
.rf-faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
}
