/* ==========================================================================
   RAKLE Project Estimator — interactive "build your product" section
   India (INR) + Global (USD) pricing
   ========================================================================== */

.rk-est-section { position: relative; }

.rk-est-market {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--rk-surface);
    border: 1px solid var(--rk-border);
    margin-top: 22px;
}
.rk-est-market button {
    font-family: var(--rk-font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--rk-slate);
    background: transparent;
    border: 0;
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .25s var(--rk-ease), color .25s ease, box-shadow .25s ease;
}
.rk-est-market button[aria-pressed="true"] {
    background: #ffffff;
    color: var(--rk-navy);
    box-shadow: var(--rk-shadow-sm), 0 0 0 1px var(--rk-border);
}
.rk-est-market-note {
    display: block;
    font-size: 13px;
    color: var(--rk-muted);
    margin-top: 10px;
}

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

.rk-est-panel {
    background: #ffffff;
    border: 1px solid var(--rk-border);
    border-radius: var(--rk-radius-lg);
    padding: 28px;
    box-shadow: var(--rk-shadow-sm);
}

.rk-est-step + .rk-est-step { margin-top: 28px; }
.rk-est-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--rk-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--rk-navy);
    margin-bottom: 14px;
}
.rk-est-step-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--rk-grad);
    color: #fff;
    font-size: 12px;
    display: inline-grid;
    place-items: center;
    flex: none;
}

/* Product type cards */
.rk-est-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.rk-est-type {
    text-align: left;
    background: #ffffff;
    border: 1px solid var(--rk-border);
    border-radius: var(--rk-radius-md);
    padding: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font: inherit;
    color: var(--rk-navy);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--rk-ease);
}
.rk-est-type i { font-size: 18px; color: var(--rk-blue); }
.rk-est-type strong { font-family: var(--rk-font-display); font-size: 14.5px; }
.rk-est-type small { font-size: 12.5px; color: var(--rk-muted); line-height: 1.4; }
.rk-est-type:hover { border-color: var(--rk-border-strong); transform: translateY(-2px); }
.rk-est-type[aria-pressed="true"] {
    border-color: var(--rk-blue);
    box-shadow: 0 0 0 3px var(--rk-blue-soft), var(--rk-shadow-sm);
    background: linear-gradient(#fff, #fff) padding-box, var(--rk-grad-soft);
}

/* Feature pills */
.rk-est-features { display: flex; flex-wrap: wrap; gap: 8px; }
.rk-est-pill {
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--rk-slate);
    background: var(--rk-surface);
    border: 1px solid var(--rk-border);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all .2s ease;
}
.rk-est-pill i { font-size: 12px; color: var(--rk-muted); transition: color .2s ease; }
.rk-est-pill:hover { border-color: var(--rk-border-strong); color: var(--rk-navy); }
.rk-est-pill[aria-pressed="true"] {
    background: var(--rk-blue-soft);
    border-color: rgba(37, 99, 235, .45);
    color: var(--rk-blue);
}
.rk-est-pill[aria-pressed="true"] i { color: var(--rk-blue); }

/* Segmented options (design / speed) */
.rk-est-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rk-est-seg {
    display: flex;
    background: var(--rk-surface);
    border: 1px solid var(--rk-border);
    border-radius: 12px;
    padding: 3px;
}
.rk-est-seg button {
    flex: 1;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--rk-slate);
    background: transparent;
    border: 0;
    border-radius: 9px;
    padding: 9px 6px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.rk-est-seg button[aria-pressed="true"] {
    background: #fff;
    color: var(--rk-navy);
    box-shadow: var(--rk-shadow-sm), 0 0 0 1px var(--rk-border);
}
.rk-est-seg-label { font-size: 12.5px; color: var(--rk-muted); margin-bottom: 6px; display: block; }

/* Result card */
.rk-est-result {
    position: sticky;
    top: 96px;
    background: var(--rk-navy);
    color: #e2e8f0;
    border-radius: var(--rk-radius-lg);
    padding: 28px;
    box-shadow: var(--rk-shadow-lg);
    overflow: hidden;
    isolation: isolate;
}
.rk-est-result::before {
    content: "";
    position: absolute;
    inset: -40% -30% auto auto;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(124, 58, 237, .35), transparent 70%);
    z-index: -1;
}
.rk-est-kicker {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #93c5fd;
    font-weight: 700;
    font-family: var(--rk-font-display);
}
.rk-est-price {
    font-family: var(--rk-font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 6px 0 4px;
    font-variant-numeric: tabular-nums;
}
.rk-est-price-note { font-size: 12.5px; color: #94a3b8; }

.rk-est-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0;
}
.rk-est-stat {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 12px;
}
.rk-est-stat b {
    display: block;
    font-family: var(--rk-font-display);
    font-size: 18px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.rk-est-stat span { font-size: 12px; color: #94a3b8; }

.rk-est-sub {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 18px 0 10px;
}

/* Timeline bar */
.rk-est-timeline {
    display: flex;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    gap: 2px;
}
.rk-est-phase {
    position: relative;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    transition: flex-grow .5s var(--rk-ease);
    min-width: 0;
}
.rk-est-phase span { overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.rk-est-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 11.5px; color: #94a3b8; }
.rk-est-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* Team */
.rk-est-team { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-est-role {
    font-size: 12.5px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    padding: 5px 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: rkEstPop .35s var(--rk-spring);
}
.rk-est-role b { color: #fff; }

/* Architecture modules */
.rk-est-arch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rk-est-mod {
    font-size: 11.5px;
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, .14);
    color: #64748b;
    transition: all .3s ease;
}
.rk-est-mod i { display: block; font-size: 14px; margin-bottom: 4px; }
.rk-est-mod.is-on {
    border-style: solid;
    border-color: rgba(147, 197, 253, .45);
    background: rgba(37, 99, 235, .16);
    color: #dbeafe;
}

.rk-est-perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; }
.rk-est-perks li { font-size: 13px; color: #cbd5e1; display: flex; gap: 8px; align-items: baseline; }
.rk-est-perks i { color: #34d399; font-size: 11px; }

.rk-est-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.rk-est-cta .rk-btn { flex: 1 1 auto; }
.rk-est-cta .rk-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .25);
}
.rk-est-cta .rk-btn--ghost:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }
.rk-est-disclaimer { font-size: 11.5px; color: #64748b; margin-top: 14px; line-height: 1.5; }

.rk-est-bump { animation: rkEstBump .4s var(--rk-ease); }
@keyframes rkEstBump { 0% { opacity: .35; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
@keyframes rkEstPop { 0% { opacity: 0; transform: scale(.85); } 100% { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .rk-est-bump, .rk-est-role { animation: none; }
    .rk-est-phase { transition: none; }
}

@media (max-width: 1024px) {
    .rk-est-grid { grid-template-columns: 1fr; }
    .rk-est-result { position: relative; top: 0; }
}
@media (max-width: 640px) {
    .rk-est-panel, .rk-est-result { padding: 20px; }
    .rk-est-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rk-est-row { grid-template-columns: 1fr; }
    .rk-est-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .rk-est-stat { padding: 10px 8px; }
    .rk-est-stat b { font-size: 15px; }
    .rk-est-phase span { display: none; }
    .rk-est-market button { padding: 8px 12px; font-size: 13px; }
}
