/* ==========================================================================
   DIMURA ARCHITECTURE & INTERIOR - DESIGN FEE CALCULATOR STYLES
   Foster + Partners Architecture Aesthetic: Balanced Spacing & Clean Typography
   File: css/calculator.css (Under 700 lines)
   ========================================================================== */

/* Interactive Design Fee Calculator */
.calc-container-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}

.calc-config-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: clamp(20px, 3vw, 36px);
}

.calc-step-block {
  margin-bottom: 28px;
}

.calc-step-block:last-child {
  margin-bottom: 0;
}

.calc-step-header {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.service-radio-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-surface);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.service-radio-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-secondary);
}

.service-radio-card.active {
  border-color: var(--fp-pure-black);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 1px var(--fp-pure-black);
}

.service-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  margin: 6px 0 2px;
  color: var(--text-primary);
  line-height: 1.3;
}

.service-card-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.calc-area-control {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-area-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-number-input {
  width: 140px;
  padding: 10px 14px;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-heading);
}

.calc-number-input:focus {
  border-color: var(--fp-pure-black);
}

.calc-range-slider {
  flex: 1;
  accent-color: var(--fp-pure-black);
  cursor: pointer;
}

.calc-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calc-area-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-area-chip:hover, .calc-area-chip.active {
  border-color: var(--fp-pure-black);
  background: var(--fp-pure-black);
  color: var(--text-inverted);
}

.calc-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tier-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  cursor: pointer;
  background: var(--bg-surface);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
  user-select: none;
}

.tier-card:hover {
  border-color: var(--border-medium);
}

.tier-card.active {
  border: 2px solid var(--fp-pure-black);
  background: var(--bg-secondary);
}

.tier-img-wrap {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
  background: var(--bg-tertiary);
}

.tier-img-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
  display: block;
}

.tier-card:hover .tier-img-preview {
  transform: scale(1.06);
}

.tier-img-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(10, 10, 10, 0.72);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}

.tier-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tier-card-badge {
  position: absolute;
  top: -9px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--fp-pure-black);
  color: var(--text-inverted);
  text-transform: uppercase;
}

.tier-card-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.tier-card-rate {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--status-deal);
  margin-bottom: 6px;
}

.tier-card-desc {
  font-size: 0.725rem;
  color: var(--text-muted);
  line-height: 1.45;
  flex-grow: 1;
}

.calc-summary-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: clamp(24px, 3vw, 36px);
  position: sticky;
  top: 96px;
}

.calc-summary-header {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.calc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.calc-summary-row .label {
  color: var(--text-muted);
}

.calc-summary-row .val {
  font-weight: 600;
  color: var(--text-primary);
}

.calc-total-box {
  margin: 20px 0 16px;
  padding: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.calc-total-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
}

.calc-total-val {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-top: 4px;
}

.calc-disclaimer {
  font-size: 0.725rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Responsive Calculator */
@media (max-width: 1024px) {
  .calc-container-grid { grid-template-columns: 1fr; }
  .calc-summary-panel { position: static; }
}

@media (max-width: 768px) {
  .calc-services-grid { grid-template-columns: 1fr; }
  .calc-tiers-grid { grid-template-columns: 1fr; }
  .calc-area-input-row { flex-direction: column; align-items: stretch; }
  .calc-number-input { width: 100%; }
}
