/* ============================================================
   ISTANBUL ATTORNEYS — INTERACTIVE LEGAL TOOLS & WIDGETS
   Premium, function-driven interactive tools for international clients.
   ============================================================ */

.calc-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
  margin: 2.5rem 0;
}

@media (max-width: 960px) {
  .calc-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Card container */
.calc-card {
  background: #ffffff;
  border: 1px solid var(--rule, #d6dfe7);
  border-radius: var(--r, 2px);
  padding: 2.2rem 2.4rem;
  box-shadow: 0 8px 30px -12px rgba(13, 43, 77, 0.08);
}

@media (max-width: 640px) {
  .calc-card {
    padding: 1.5rem 1.4rem;
  }
}

.calc-card-title {
  font-family: var(--hd);
  font-size: 1.8rem;
  line-height: 1.15;
  color: var(--navy, #0d2b4d);
  margin-bottom: 0.6rem;
}

.calc-card-subtitle {
  font-size: 0.95rem;
  color: var(--muted, #6b7c8f);
  margin-bottom: 1.8rem;
  line-height: 1.55;
}

/* Form groups */
.calc-group {
  margin-bottom: 1.6rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--bd);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy, #0d2b4d);
  margin-bottom: 0.6rem;
}

.calc-hint {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted, #6b7c8f);
}

.calc-input-row {
  display: flex;
  gap: 0.6rem;
}

.calc-currency-select {
  flex: 0 0 95px;
  background: var(--bg-soft, #f2f6f9);
  border: 1px solid var(--rule, #d6dfe7);
  border-radius: var(--r, 2px);
  padding: 0.75rem 0.8rem;
  font-family: var(--bd);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy, #0d2b4d);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.calc-currency-select:focus {
  border-color: var(--gold, #b08d3f);
}

.calc-number-input {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid var(--rule, #d6dfe7);
  border-radius: var(--r, 2px);
  padding: 0.75rem 1rem;
  font-family: var(--bd);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy, #0d2b4d);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.calc-number-input:focus {
  border-color: var(--gold, #b08d3f);
  box-shadow: 0 0 0 3px rgba(176, 141, 63, 0.15);
}

/* Radio / Button pill selector */
.calc-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
}

.calc-pill-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 0.8rem;
  background: var(--bg-soft, #f2f6f9);
  border: 1.5px solid var(--rule, #d6dfe7);
  border-radius: var(--r, 2px);
  font-family: var(--bd);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy, #0d2b4d);
  cursor: pointer;
  transition: all 0.2s var(--ease, ease);
  user-select: none;
}

.calc-pill-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-pill-input:checked + .calc-pill-label {
  background: var(--navy, #0d2b4d);
  border-color: var(--navy, #0d2b4d);
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(13, 43, 77, 0.3);
}

/* Quick presets */
.calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.calc-preset-btn {
  background: none;
  border: 1px solid var(--rule, #d6dfe7);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-family: var(--bd);
  font-size: 0.78rem;
  color: var(--navy, #0d2b4d);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.calc-preset-btn:hover {
  border-color: var(--gold, #b08d3f);
  color: var(--gold, #b08d3f);
}

/* Result Card */
.calc-result-card {
  position: sticky;
  top: 96px;
  background: var(--navy-900, #0a2240);
  border: 1px solid rgba(216, 188, 120, 0.3);
  border-radius: var(--r, 2px);
  padding: 2.2rem 2.2rem;
  color: #e7edf4;
  box-shadow: 0 16px 40px -16px rgba(10, 34, 64, 0.5);
}

.calc-result-header {
  border-bottom: 1px solid rgba(216, 188, 120, 0.25);
  padding-bottom: 1.2rem;
  margin-bottom: 1.4rem;
}

.calc-result-kicker {
  font-family: var(--bd);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft, #d8bc78);
  font-weight: 700;
}

.calc-total-figure {
  font-family: var(--hd);
  font-size: 2.8rem;
  line-height: 1.1;
  color: #ffffff;
  margin: 0.4rem 0 0.2rem;
  font-weight: 600;
}

.calc-total-note {
  font-size: 0.82rem;
  color: rgba(231, 237, 244, 0.7);
}

/* Itemized Cost Breakdown */
.calc-breakdown {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.calc-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(231, 237, 244, 0.1);
  font-size: 0.92rem;
}

.calc-item-label {
  color: rgba(231, 237, 244, 0.85);
  display: flex;
  flex-direction: column;
}

.calc-item-law {
  font-size: 0.74rem;
  color: var(--gold-soft, #d8bc78);
  font-weight: 600;
}

.calc-item-val {
  font-family: var(--bd);
  font-weight: 700;
  color: #ffffff;
}

.calc-item.calc-exempt .calc-item-val {
  color: #4ade80;
}

.calc-qualify-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(176, 141, 63, 0.16);
  border: 1px solid rgba(216, 188, 120, 0.35);
  border-radius: 2px;
  padding: 0.75rem 0.9rem;
  font-size: 0.84rem;
  color: #f6e05e;
  margin-bottom: 1.5rem;
  line-height: 1.45;
}

/* CTA in result card */
.calc-cta-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.calc-trust-strip {
  display: flex;
  justify-content: space-around;
  font-size: 0.74rem;
  color: rgba(231, 237, 244, 0.6);
  text-align: center;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(231, 237, 244, 0.1);
}

/* ============================================================
   ENFORCEMENT WIZARD SPECIFIC STYLES
   ============================================================ */
.wiz-step {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.wiz-step.wiz-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.wiz-progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.8rem;
}

.wiz-bar {
  flex: 1;
  height: 4px;
  background: var(--line, #e2e9ef);
  border-radius: 2px;
  transition: background 0.25s ease;
}

.wiz-bar.wiz-done {
  background: var(--gold, #b08d3f);
}

.wiz-options {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.wiz-card-opt {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--bg-soft, #f2f6f9);
  border: 1.5px solid var(--rule, #d6dfe7);
  border-radius: var(--r, 2px);
  cursor: pointer;
  transition: all 0.2s;
}

.wiz-card-opt:hover {
  border-color: var(--navy, #0d2b4d);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 43, 77, 0.06);
}

.wiz-card-opt.wiz-selected {
  border-color: var(--navy, #0d2b4d);
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--navy, #0d2b4d);
}

.wiz-opt-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(13, 43, 77, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy, #0d2b4d);
  font-weight: 700;
  flex: none;
}

.wiz-opt-info {
  flex: 1;
}

.wiz-opt-title {
  font-weight: 700;
  color: var(--navy, #0d2b4d);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.wiz-opt-desc {
  font-size: 0.84rem;
  color: var(--muted, #6b7c8f);
  line-height: 1.4;
}

.wiz-nav-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule, #d6dfe7);
}

.wiz-verdict {
  padding: 1.6rem 1.8rem;
  border-radius: var(--r, 2px);
  margin-bottom: 1.6rem;
}

.wiz-verdict.eligible {
  background: rgba(34, 197, 94, 0.1);
  border: 1.5px solid #22c55e;
}

.wiz-verdict.conditional {
  background: rgba(234, 179, 8, 0.12);
  border: 1.5px solid #eab308;
}

.wiz-verdict-head {
  font-family: var(--hd);
  font-size: 1.5rem;
  color: var(--navy, #0d2b4d);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.wiz-statute-box {
  background: var(--bg-soft, #f2f6f9);
  border-left: 3px solid var(--gold, #b08d3f);
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 1.2rem 0;
  color: var(--body, #46586b);
}
