/* ============================================
   Calculator Page – Black & Gold Premium Theme
   ============================================ */

/* Hero */
.calc-hero {
    padding: 60px 0 30px;
    background: radial-gradient(ellipse at 60% 0%, rgba(212,175,55,.12), transparent 70%);
}
.calc-hero h1 { font-size: 2.6rem; }
.calc-hero .subtitle { font-size: 1.05rem; }

/* Card container */
.calc-card {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 2px solid var(--accent, #D4AF37);
    border-radius: 16px;
    padding: 28px 30px;
    box-shadow: 0 10px 30px rgba(212,175,55,.15);
}
.calc-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #A67C00);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.calc-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #fff;
}

/* Inputs & selects */
.calc-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.88rem;
    color: #ccc;
}
.calc-select,
.calc-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid rgba(212,175,55,.4);
    border-radius: 10px;
    background: rgba(26,26,26,.6);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    transition: border-color .25s, box-shadow .25s;
    -webkit-appearance: none;
    appearance: none;
}
.calc-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23D4AF37' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L2 5h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.calc-select:focus,
.calc-input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 12px rgba(212,175,55,.3);
    background: rgba(26,26,26,.9);
}
.calc-select option {
    background: #1a1a1a;
    color: #fff;
}

/* Feature checkboxes */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
}
.feature-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(212,175,55,.2);
    background: rgba(212,175,55,.04);
    font-size: 0.85rem;
    color: #ddd;
    cursor: pointer;
    transition: all .2s;
    margin: 0;
}
.feature-check:hover {
    border-color: rgba(212,175,55,.5);
    background: rgba(212,175,55,.1);
}
.feature-check input[type="checkbox"] {
    accent-color: #D4AF37;
    width: 16px; height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}
.feature-group-title {
    color: #D4AF37;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    padding-left: 2px;
}

/* ============================================
   SUMMARY PANEL
   ============================================ */
.summary-panel {
    position: sticky;
    top: 100px;
    background: linear-gradient(160deg, #1a1a1a, #0a0a0a);
    border: 2px solid #D4AF37;
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 12px 40px rgba(212,175,55,.2);
}
.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.4), transparent);
    margin: 16px 0;
}

/* Developer badge */
.dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(212,175,55,.12);
    border: 1px solid rgba(212,175,55,.35);
    font-size: 0.82rem;
    font-weight: 600;
    color: #D4AF37;
    margin-bottom: 8px;
}

/* Breakdown list */
.breakdown-list {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 6px;
}
.breakdown-list::-webkit-scrollbar { width: 5px; }
.breakdown-list::-webkit-scrollbar-track { background: transparent; }
.breakdown-list::-webkit-scrollbar-thumb { background: rgba(212,175,55,.3); border-radius: 10px; }

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.82rem;
    color: #bbb;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.breakdown-item span:last-child {
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

/* Cost totals */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #ccc;
}
.summary-row.total-row {
    font-size: 1rem;
}
.cost-value {
    font-size: 1.55rem;
    font-weight: 700;
    background: linear-gradient(90deg, #D4AF37, #E5C158);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cost-value-small {
    font-size: 1rem;
    font-weight: 600;
    color: #D4AF37;
}

/* Range row */
.range-row {
    display: flex;
    gap: 8px;
}
.range-item {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px solid rgba(212,175,55,.2);
    background: rgba(212,175,55,.05);
}
.range-item small {
    display: block;
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.range-item span {
    font-weight: 700;
    font-size: 0.88rem;
}
.range-item.low span  { color: #22c55e; }
.range-item.mid span  { color: #D4AF37; }
.range-item.high span { color: #f59e0b; }

/* Timeline */
.timeline-est {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(212,175,55,.06);
    border: 1px solid rgba(212,175,55,.2);
}
.timeline-est i { font-size: 1.5rem; color: #D4AF37; }

/* Print styles */
@media print {
    body { background: #fff !important; color: #000 !important; }
    .navbar, footer, .calc-hero .subtitle, .btn { display: none !important; }
    .calc-card, .summary-panel { border-color: #ccc !important; box-shadow: none !important; background: #fff !important; color: #000 !important; }
    .summary-panel { position: static !important; }
    .cost-value, .cost-value-small, .glow, .feature-group-title, .step-badge { color: #000 !important; -webkit-text-fill-color: #000 !important; background: none !important; }
}

/* Responsive */
@media (max-width: 991px) {
    .summary-panel { position: static; margin-top: 20px; }
}
@media (max-width: 576px) {
    .calc-hero h1 { font-size: 1.7rem; }
    .calc-card { padding: 20px 16px; }
    .features-grid { grid-template-columns: 1fr; }
    .range-row { flex-direction: column; }
    .cost-value { font-size: 1.3rem; }
}
