/* ═══════════════════════════════════════════════════
   Realty Calculators Pro — Frontend Styles
   ═══════════════════════════════════════════════════ */

.rc-calculator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 960px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
    border: 1px solid #e5e7eb;
    background: #fff;
}

/* ── Header ──────────────────────────────────────── */
.rc-header {
    padding: 24px 32px;
    text-align: center;
}
.rc-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -.02em;
}
.rc-subtitle {
    color: rgba(255,255,255,.75);
    font-size: .75rem;
    margin: 4px 0 0;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
}

/* ── Body ────────────────────────────────────────── */
.rc-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

@media (max-width: 680px) {
    .rc-body { grid-template-columns: 1fr; }
}

/* ── Fields Panel ────────────────────────────────── */
.rc-fields {
    padding: 24px;
    border-right: 1px solid #f3f4f6;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rc-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rc-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rc-hint {
    font-size: .65rem;
    font-weight: 400;
    color: #9ca3af;
    text-transform: none;
    letter-spacing: 0;
}

/* Number inputs */
.rc-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.rc-input-wrap:focus-within {
    border-color: var(--rc-brand, #4f46e5);
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.rc-prefix, .rc-suffix {
    padding: 0 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: .8rem;
    font-weight: 600;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #e5e7eb;
    white-space: nowrap;
}
.rc-suffix {
    border-right: none;
    border-left: 1px solid #e5e7eb;
}
.rc-number {
    width: 100%;
    padding: 8px 10px;
    border: none;
    outline: none;
    font-size: .9rem;
    background: transparent;
    -moz-appearance: textfield;
}
.rc-number::-webkit-inner-spin-button,
.rc-number::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Select */
.rc-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    font-size: .9rem;
    outline: none;
    cursor: pointer;
}
.rc-select:focus {
    border-color: var(--rc-brand, #4f46e5);
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}

/* Range / slider */
.rc-range-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rc-range {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 99px;
    background: #e5e7eb;
    cursor: pointer;
    outline: none;
}
.rc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--rc-brand, #4f46e5);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.rc-range-val {
    min-width: 44px;
    text-align: right;
    font-weight: 700;
    font-size: .85rem;
    color: var(--rc-brand, #4f46e5);
}

/* ── Results Panel ───────────────────────────────── */
.rc-results {
    padding: 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rc-results-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    margin: 0;
}

.rc-results-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.rc-result-item.primary {
    background: #1e1b4b;
    border-color: #312e81;
    padding: 14px 16px;
}
.rc-result-item.primary .rc-result-label { color: rgba(255,255,255,.65); }
.rc-result-item.primary .rc-result-value { color: #4ade80; font-size: 1.5rem; }

.rc-result-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    font-weight: 600;
}

.rc-result-value {
    font-size: .9rem;
    font-weight: 800;
    color: #111827;
}

/* ── Lead Form ────────────────────────────────────── */
.rc-lead-form {
    margin-top: auto;
    padding: 16px;
    background: #f0f3ff;
    border-radius: 8px;
    border: 1px solid #c7d2fe;
}
.rc-lead-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #3730a3;
    margin: 0 0 10px;
}
.rc-email-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.rc-email-input {
    flex: 1;
    min-width: 160px;
    padding: 9px 12px;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    font-size: .85rem;
    outline: none;
    background: #fff;
}
.rc-email-input:focus {
    border-color: var(--rc-brand, #4f46e5);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.rc-submit-btn {
    padding: 9px 18px;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    white-space: nowrap;
}
.rc-submit-btn:hover  { opacity: .9; }
.rc-submit-btn:active { transform: scale(.97); }
.rc-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Feedback ────────────────────────────────────── */
.rc-feedback {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
}
.rc-feedback.success { background: #d1fae5; color: #065f46; }
.rc-feedback.error   { background: #fee2e2; color: #991b1b; }

/* ── Amenity Toggle Buttons (Nightly Rate Calculator) ──────────────────── */
.rc-amenity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}
.rc-amenity-btn {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: all .15s;
    user-select: none;
}
.rc-amenity-btn:hover {
    border-color: #c7d2fe;
    background: #f5f3ff;
}
.rc-amenity-btn.active {
    border-color: var(--rc-brand, #4f46e5);
    background: #eef2ff;
}
.rc-amenity-name {
    font-size: .75rem;
    font-weight: 700;
    color: #374151;
}
.rc-amenity-btn.active .rc-amenity-name {
    color: var(--rc-brand, #4f46e5);
}
.rc-amenity-sub {
    font-size: .65rem;
    color: #9ca3af;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .04em;
}