/* =================================================================
   Rate Card
   ================================================================= */

.rc-hero {
    height: auto;
    padding-bottom: 72px;
}

.rc-eyebrow,
.rc-result-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: 16px;
}

.rc-main {
    padding: 72px 0 120px;
}

.rc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 64px;
    align-items: start;
}

/* ---------- Questions ---------- */

.rc-questions {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.rc-step {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.rc-step[hidden] { display: none; }

.rc-step legend {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 20px;
    padding: 0;
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.rc-num {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    transform: translateY(-3px);
}

.rc-options {
    display: grid;
    gap: 12px;
}

.rc-options-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rc-options-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rc-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.rc-option[hidden] { display: none; }

.rc-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rc-option-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 20px 20px 22px;
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rc-options-compact .rc-option-body {
    padding: 16px 44px 16px 18px;
    gap: 4px;
}

.rc-options-compact .rc-option-body::after {
    top: 17px;
}

.rc-options-compact .rc-option-title {
    padding-right: 0;
}

/* Question 1: keep descriptions aligned across the three cards
   (titles reserve two lines when the cards sit side by side) */
@media (min-width: 1025px) {
    .rc-options-3 .rc-option-title {
        min-height: 2.6em;
    }
}

.rc-option:hover .rc-option-body {
    border-color: #cfcac2;
}

.rc-option input:checked + .rc-option-body {
    border-color: var(--color-text);
    box-shadow: inset 0 0 0 1px var(--color-text), 0 6px 18px rgba(0, 0, 0, 0.06);
}

.rc-option input:focus-visible + .rc-option-body {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.rc-option-title {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--color-text);
    line-height: 1.3;
    padding-right: 22px;
}

.rc-option-desc {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Check mark */
.rc-option-body::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    background: var(--color-white);
    transition: all 0.2s;
}

.rc-option input:checked + .rc-option-body::after {
    border-color: var(--color-accent);
    background: var(--color-accent);
    box-shadow: inset 0 0 0 3px var(--color-white);
}

/* ---------- Sliders ---------- */

.rc-slider {
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    padding: 24px 28px 20px;
}

.rc-slider[hidden] { display: none; }

.rc-slider-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}

.rc-slider-value output {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.rc-slider-value span {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    position: relative;
    top: -1px;
}

.rc-slider {
    --thumb: 22px;
}

.rc-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    --p: 0.5;
}

.rc-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right,
        var(--color-text) calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--p)),
        var(--color-border) calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--p)));
}

.rc-slider input[type="range"]::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: var(--color-border);
}

.rc-slider input[type="range"]::-moz-range-progress {
    height: 4px;
    border-radius: 2px;
    background: var(--color-text);
}

.rc-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    box-sizing: border-box;
    width: var(--thumb);
    height: var(--thumb);
    margin-top: -9px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-text);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s;
}

.rc-slider input[type="range"]::-moz-range-thumb {
    box-sizing: border-box;
    width: var(--thumb);
    height: var(--thumb);
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-text);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.rc-slider input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.12);
    border-color: var(--color-accent);
}

.rc-slider input[type="range"]:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.rc-step.is-locked input[type="range"] {
    cursor: default;
    opacity: 0.45;
}

.rc-step.is-locked .rc-slider-value output {
    color: var(--color-text-secondary);
}

.rc-slider-scale {
    position: relative;
    height: 18px;
    font-size: 0.75rem;
    line-height: 18px;
    color: #9a958d;
    margin-top: 6px;
    letter-spacing: 0.04em;
}

.rc-slider-scale span {
    /* Centered with a fixed width and negative margin instead of a transform,
       so the labels stay on whole pixels and don't shift in Safari */
    position: absolute;
    top: 0;
    width: 40px;
    margin-left: -20px;
    left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--p));
    text-align: center;
    line-height: 18px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.rc-hint {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 14px;
    line-height: 1.5;
}

/* ---------- Travel frequency ---------- */

.rc-freq {
    margin-top: 20px;
}

.rc-freq[hidden] { display: none; }

.rc-sub-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.rc-options-freq {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rc-options-freq .rc-option-body {
    padding: 14px 16px 16px;
}

.rc-options-freq .rc-option-body::after {
    top: 15px;
    right: 14px;
}

@media (max-width: 600px) {
    .rc-options-freq { grid-template-columns: 1fr; }
}

/* ---------- Travel days ---------- */

.rc-days {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    padding: 14px 20px;
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
}

.rc-days[hidden] { display: none; }

.rc-days-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.rc-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rc-stepper button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    background: var(--color-bg);
    font-size: 1.1rem;
    line-height: 1;
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.rc-stepper button:hover:not(:disabled) {
    border-color: var(--color-text);
    background: var(--color-white);
}

.rc-stepper button:disabled {
    opacity: 0.35;
    cursor: default;
}

.rc-stepper output {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    min-width: 2ch;
    text-align: center;
}

.rc-travel-hint { margin-top: 12px; }

/* ---------- Result ---------- */

.rc-result {
    position: sticky;
    top: 100px;
}

.rc-result-card {
    background: #16161a;
    color: #f4f1ec;
    border-radius: 14px;
    padding: 36px 32px 28px;
    box-shadow: 0 20px 50px rgba(20, 16, 24, 0.18);
    position: relative;
    overflow: hidden;
}

.rc-result-card::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 64, 185, 0.35), rgba(224, 64, 185, 0) 70%);
    pointer-events: none;
}

.rc-result-card .rc-result-eyebrow {
    color: #f08ad8;
}

.rc-budget {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 26px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rc-budget-label {
    font-size: 0.9rem;
    color: rgba(244, 241, 236, 0.7);
}

.rc-budget-value {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.25em;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.rc-budget-sub {
    font-size: 0.8rem;
    color: rgba(244, 241, 236, 0.55);
}

.rc-lines {
    margin: 0 0 8px;
}

.rc-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rc-line[hidden] { display: none; }

.rc-line dt {
    font-size: 0.9rem;
    color: rgba(244, 241, 236, 0.7);
}

.rc-line dd {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.rc-line dd small {
    display: block;
    font-weight: 400;
    font-size: 0.78rem;
    color: rgba(244, 241, 236, 0.55);
}

.rc-range-note {
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(244, 241, 236, 0.6);
    margin: 14px 0 0;
}

.rc-notes:empty { display: none; }

.rc-notes {
    margin: 18px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rc-note {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #fbe3f4;
    background: rgba(224, 64, 185, 0.14);
    border-left: 2px solid var(--color-accent);
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
}

.rc-cta {
    display: block;
    text-align: center;
    margin-top: 24px;
    background: #ffffff;
    color: #16161a;
    padding: 15px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
}

.rc-cta:hover {
    background: var(--color-accent);
    color: #ffffff;
}

.rc-fineprint {
    font-size: 0.75rem;
    color: rgba(244, 241, 236, 0.5);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

.rc-team-note {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(244, 241, 236, 0.72);
    text-align: center;
}

.rc-team-note a {
    color: #f08ad8;
    text-decoration: none;
    border-bottom: 1px solid rgba(240, 138, 216, 0.5);
}

.rc-team-note a:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.rc-result.is-loading .rc-budget-value,
.rc-result.is-loading .rc-line dd {
    opacity: 0.55;
    transition: opacity 0.15s;
}

/* Mobile summary bar */
.rc-mobilebar {
    display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .rc-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 40px;
    }
    .rc-options-3 { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .rc-hero { padding-top: 120px; padding-bottom: 48px; }
    .rc-hero h1 { font-size: 2.6rem; }
    .rc-main { padding: 48px 0 110px; }
    .rc-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .rc-questions { gap: 44px; }
    .rc-step legend { font-size: 1.35rem; }
    .rc-result { position: static; }
    .rc-budget-value { font-size: 1.8rem; }

    .rc-mobilebar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 16px;
        z-index: 900;
        padding: 14px 20px;
        background: #16161a;
        color: #f4f1ec;
        border-radius: 12px;
        text-decoration: none;
        font-size: 0.85rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        transition: opacity 0.25s, transform 0.25s;
    }
    .rc-mobilebar strong {
        font-family: var(--font-heading);
        font-weight: 400;
        font-size: 1.15rem;
        color: #fff;
    }
    .rc-mobilebar.is-hidden {
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    .container.rc-layout { padding: 0 16px; }
    .rc-slider { padding: 20px 20px 16px; }
    .rc-result-card { padding: 30px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .rc-option-body,
    .rc-mobilebar { transition: none; }
}

/* Large numbers: Gelasio (a Georgia match) with lining figures, so every digit
   sits on the same line. Georgia's old-style digits made 3, 4, 5, 7, 9 drop low. */
.rc-slider-value output,
.rc-stepper output,
.rc-budget-value,
.rc-mobilebar strong {
    font-family: 'Gelasio', var(--font-heading);
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}

/* Estimated range: keep each number whole; the second wraps below if it doesn't fit */
.rc-range-lo,
.rc-range-hi {
    white-space: nowrap;
}

/* Proportional (not fixed-width) digits in the range so numbers don't look gappy */
.rc-budget-value,
.rc-mobilebar strong {
    font-variant-numeric: lining-nums proportional-nums;
    font-feature-settings: "lnum" 1, "pnum" 1, "kern" 0;
    font-kerning: none;
    letter-spacing: -0.01em;
}

/* Keep the estimated range on one line at each card width */
@media (max-width: 1024px) and (min-width: 821px) {
    .rc-budget-value { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .rc-budget-value { font-size: 1.6rem; }
}

/* Availability line inside the dark estimate card */
.rc-availability {
    display: flex;
    margin: 4px 0 16px;
    font-size: 0.85rem;
    color: #c9c3cc;
}
.rc-availability .availability-date { color: var(--color-accent); }
