/* Real Estate Media Checkout */

.rec-checkout {
    --rec-red: #fe2c2c;
    --rec-red-hover: #e02626;
    --rec-bg: #0b0b0b;
    --rec-card: #111111;
    --rec-border: rgba(255, 255, 255, 0.1);
    --rec-text: #ffffff;
    --rec-muted: rgba(255, 255, 255, 0.6);

    background: var(--rec-bg);
    color: var(--rec-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: clamp(140px, 14vw, 190px) 0 clamp(64px, 8vw, 120px);
    min-height: 70vh;
}

.rec-container {
    padding: 0 clamp(24px, 5vw, 80px);
    max-width: 1440px;
    margin: 0 auto;
}

@media (max-width: 639px) {
    .rec-container { padding: 0 16px; }
}

.rec-eyebrow {
    display: block;
    color: var(--rec-red);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.rec-title {
    color: var(--rec-text);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 clamp(28px, 4vw, 44px);
}

.rec-muted {
    color: var(--rec-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px;
}

.rec-muted strong { color: var(--rec-text); font-weight: 600; }

.rec-notice {
    border: 1px solid rgba(254, 44, 44, 0.4);
    background: rgba(254, 44, 44, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    margin-bottom: 28px;
}

/* Layout */

.rec-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 1023px) {
    .rec-grid { grid-template-columns: 1fr; }
}

.rec-steps { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.rec-step,
.rec-summary {
    background: var(--rec-card);
    border: 1px solid var(--rec-border);
    border-radius: 20px;
    padding: clamp(22px, 3vw, 36px);
}

.rec-step__title,
.rec-summary__title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--rec-text);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px;
}

.rec-step__title span {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--rec-red);
    color: var(--rec-red);
    font-size: 14px;
    flex-shrink: 0;
}

/* Buttons & inputs */

.rec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.rec-btn--primary {
    width: 100%;
    background: var(--rec-red);
    border-color: var(--rec-red);
    color: #fff;
    margin-top: 20px;
}

.rec-btn--primary:hover:not(:disabled) { background: var(--rec-red-hover); border-color: var(--rec-red-hover); }

.rec-btn--primary:disabled {
    background: #2a2a2a;
    border-color: #2a2a2a;
    color: var(--rec-muted);
    cursor: not-allowed;
}

.rec-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.rec-btn--outline:hover,
.rec-btn--outline.is-active {
    border-color: var(--rec-red);
    color: #fff;
}

.rec-btn--outline.is-active { background: rgba(254, 44, 44, 0.12); }
.rec-btn:disabled { opacity: 0.7; }

.rec-input {
    width: 100%;
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    padding: 13px 16px;
    transition: border-color 0.2s ease;
    color-scheme: dark;
}

.rec-input:focus { outline: none; border-color: var(--rec-red); }
.rec-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.was-validated .rec-input:invalid { border-color: var(--rec-red); }

select.rec-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}

/* Location */

.rec-location {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.rec-location .rec-input { flex: 1; min-width: 200px; }
.rec-or { color: var(--rec-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }

.rec-location__status {
    color: #6fdc8c;
    font-size: 14px;
    margin: 14px 0 0;
    min-height: 1em;
}

/* Upgrades */

.rec-included { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.rec-included__label { color: var(--rec-muted); font-size: 13px; margin-right: 4px; }

.rec-chip {
    border: 1px solid var(--rec-border);
    border-radius: 100px;
    padding: 5px 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.rec-addons { display: grid; gap: 10px; }

.rec-addon {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--rec-border);
    border-radius: 14px;
    padding: 14px 18px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    margin: 0;
}

.rec-addon:hover { border-color: rgba(254, 44, 44, 0.5); }
.rec-addon input { position: absolute; opacity: 0; pointer-events: none; }

.rec-addon__box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.rec-addon__name { flex: 1; font-size: 15px; }
.rec-addon__price { color: var(--rec-muted); font-size: 14px; font-weight: 600; white-space: nowrap; }

.rec-addon:has(input:checked) { border-color: var(--rec-red); background: rgba(254, 44, 44, 0.06); }
.rec-addon input:checked + .rec-addon__box { background: var(--rec-red); border-color: var(--rec-red); }
.rec-addon input:checked + .rec-addon__box::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}
.rec-addon input:checked ~ .rec-addon__price { color: #fff; }
.rec-addon input:focus-visible + .rec-addon__box { outline: 2px solid var(--rec-red); outline-offset: 2px; }

/* Details */

.rec-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 639px) {
    .rec-fields { grid-template-columns: 1fr; }
}

.rec-field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.rec-field > span { font-size: 13px; color: var(--rec-muted); }
.rec-field--full { grid-column: 1 / -1; }

/* Summary */

.rec-summary {
    position: sticky;
    top: 120px;
}

.rec-summary .rec-field { margin-bottom: 20px; }

.rec-lines { transition: opacity 0.2s ease; }
.rec-lines.is-loading { opacity: 0.45; }

.rec-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rec-border);
    font-size: 14px;
}

.rec-line span:last-child { white-space: nowrap; font-weight: 600; }
.rec-line small { display: block; color: var(--rec-muted); font-size: 12px; margin-top: 3px; }
.rec-line--muted span:last-child { color: var(--rec-muted); font-weight: 400; }

.rec-line--total {
    border-bottom: 0;
    padding-top: 18px;
    font-size: 20px;
    font-weight: 600;
}

.rec-error {
    margin-top: 16px;
    color: #ff6b6b;
    font-size: 14px;
    line-height: 1.5;
}

.rec-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--rec-muted);
    font-size: 12px;
    margin: 14px 0 0;
}

/* Package chooser & confirmation */

.rec-choose__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.rec-choose__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--rec-card);
    border: 1px solid var(--rec-border);
    border-radius: 20px;
    padding: 28px;
    color: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rec-choose__card:hover { border-color: var(--rec-red); color: #fff; transform: translateY(-3px); }
.rec-choose__card strong { font-size: 20px; }
.rec-choose__card span { font-size: 32px; font-weight: 700; }

.rec-confirm { max-width: 640px; }
.rec-summary--static { position: static; margin: 28px 0; }
