/* GetPricePro — calculators.css
   Shared styles for all calculators (PL + EN)
   Design system: SaaS / financial tool, blue accent #185FA5
   ---------------------------------------------------------- */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400;500&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #185FA5;
  --blue-light:  #E6F1FB;
  --blue-mid:    #85B7EB;
  --blue-dark:   #0C447C;
  --green:       #0F6E56;
  --green-light: #E1F5EE;
  --red:         #A32D2D;
  --red-light:   #FCEBEB;
  --amber:       #854F0B;
  --amber-light: #FAEEDA;
  --purple:      #534AB7;
  --purple-light:#EEEDFE;
  --coral:       #993C1D;
  --coral-light: #FAECE7;
  --pink:        #993556;
  --pink-light:  #FBEAF0;
  --leaf:        #3B6D11;
  --leaf-light:  #EAF3DE;

  --text-primary:   #1a1a1a;
  --text-secondary: #555;
  --text-tertiary:  #999;
  --border:         rgba(0,0,0,0.1);
  --border-strong:  rgba(0,0,0,0.18);
  --bg-primary:     #ffffff;
  --bg-secondary:   #f8f9fb;
  --bg-tertiary:    #f1f3f6;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary:   #f0f0f0;
    --text-secondary: #aaa;
    --text-tertiary:  #666;
    --border:         rgba(255,255,255,0.1);
    --border-strong:  rgba(255,255,255,0.18);
    --bg-primary:     #141414;
    --bg-secondary:   #1c1c1c;
    --bg-tertiary:    #242424;
    --blue-light:     #0C447C;
    --blue-mid:       #185FA5;
    --green-light:    #085041;
    --red-light:      #501313;
    --amber-light:    #412402;
    --purple-light:   #26215C;
    --coral-light:    #4A1B0C;
    --pink-light:     #4B1528;
    --leaf-light:     #173404;
  }
}

html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 0.5px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  font-size: 16px;
}

.nav-logo-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue); }

.nav-links a.active { color: var(--blue); font-weight: 500; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-lang {
  font-size: 12px;
  color: var(--text-tertiary);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border);
  transition: all 0.15s;
}
.nav-lang:hover, .nav-lang.active {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-light);
}

.btn-agent {
  font-size: 13px;
  font-family: var(--font-sans);
  padding: 6px 16px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-agent:hover { background: var(--blue-dark); }

/* ── Page layout ── */
.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ── Calculator header ── */
.calc-header {
  margin-bottom: 28px;
}

.calc-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.calc-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  font-size: 15px;
  flex-shrink: 0;
}

.calc-eyebrow-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calc-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 6px;
}

.calc-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Tabs ── */
.tab-bar {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-lg);
  width: fit-content;
  margin-bottom: 24px;
}

.tab-btn {
  font-size: 13px;
  font-family: var(--font-sans);
  padding: 6px 16px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn.active {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-weight: 500;
  border: 0.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ── Grid layout ── */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

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

/* ── Cards ── */
.card {
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.card-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.card-primary {
  background: var(--blue);
  border: none;
}

.card-primary .result-label { color: var(--blue-mid); }
.card-primary .result-value { color: #fff; }

.card-success { background: var(--green-light); border-color: transparent; }
.card-danger  { background: var(--red-light);   border-color: transparent; }
.card-warning { background: var(--amber-light); border-color: transparent; }

/* ── Result grid ── */
.result-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.result-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 3px;
}

.result-value {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.result-value.green { color: var(--green); }
.result-value.red   { color: var(--red); }
.result-value.blue  { color: var(--blue); }

/* ── Form elements ── */
.field { margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }

.field-label {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

.field-hint {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
  line-height: 1.5;
}

.input-wrap {
  display: flex;
  align-items: center;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-primary);
  transition: border-color 0.15s;
}
.input-wrap:focus-within { border-color: var(--blue); }

.input-prefix {
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-tertiary);
  border-right: 0.5px solid var(--border);
  height: 38px;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  white-space: nowrap;
}

.input-suffix {
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-tertiary);
  border-left: 0.5px solid var(--border);
  height: 38px;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  white-space: nowrap;
}

.input-wrap input[type="number"],
.input-wrap input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-sans);
  padding: 0 12px;
  height: 38px;
  background: transparent;
  color: var(--text-primary);
  min-width: 0;
}

input[type="number"],
input[type="text"],
select {
  font-family: var(--font-sans);
}

.range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.range-row input[type="range"] {
  flex: 1;
  accent-color: var(--blue);
}

.range-badge {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-light);
  padding: 2px 10px;
  border-radius: var(--radius-md);
  min-width: 52px;
  text-align: center;
}

select {
  width: 100%;
  font-size: 14px;
  padding: 8px 12px;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  height: 38px;
  outline: none;
  transition: border-color 0.15s;
}
select:focus { border-color: var(--blue); }

/* ── Formula box ── */
.formula-box {
  margin-top: 1.25rem;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border);
}

.formula-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.formula-text {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Chart section ── */
.chart-section {
  margin-top: 1.5rem;
  border-top: 0.5px solid var(--border);
  padding-top: 1.25rem;
}

.chart-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.chart-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.chart-wrap {
  position: relative;
  width: 100%;
  height: 240px;
}

/* ── Agent section ── */
.agent-section {
  margin-top: 1.75rem;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.agent-header {
  background: var(--bg-secondary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 0.5px solid var(--border);
}

.agent-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--blue-light);
}

.agent-name {
  font-size: 13px;
  font-weight: 500;
}

.agent-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-left: 6px;
}

.agent-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-tertiary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1D9E75;
}

.agent-pills {
  padding: 10px 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 0.5px solid var(--border);
}

.agent-pill {
  font-size: 12px;
  font-family: var(--font-sans);
  padding: 4px 12px;
  border-radius: 20px;
  border: 0.5px solid var(--border-strong);
  background: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.agent-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.agent-chat {
  padding: 16px;
  min-height: 80px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble-bot {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-bot-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--blue);
}

.chat-bubble-bot .bubble {
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 85%;
  line-height: 1.65;
}

.chat-bubble-user {
  display: flex;
  justify-content: flex-end;
}

.chat-bubble-user .bubble {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-lg) 0 var(--radius-lg) var(--radius-lg);
  padding: 10px 14px;
  font-size: 13px;
  max-width: 80%;
  line-height: 1.65;
}

.chat-bubble-bot .bubble.loading {
  color: var(--text-tertiary);
  font-style: italic;
}

.agent-input-row {
  padding: 12px 16px;
  border-top: 0.5px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
}

.agent-input {
  flex: 1;
  font-size: 13px;
  font-family: var(--font-sans);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}
.agent-input:focus { border-color: var(--blue); }

.agent-send {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.agent-send:hover { background: var(--blue-dark); }

/* ── Contact banner + Footer ── */
.contact-banner {
  border-top: 0.5px solid var(--border);
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg-secondary);
}

.contact-banner-text {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
}

.contact-banner-link {
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.contact-banner-link:hover { color: var(--blue-dark); }

.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-primary);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--blue-light);
}

.footer-name {
  font-size: 13px;
  font-weight: 500;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-left: 4px;
}

.footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--blue); }

.footer-langs {
  display: flex;
  gap: 8px;
}

.footer-lang {
  font-size: 12px;
  color: var(--text-tertiary);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 0.5px solid transparent;
  transition: all 0.15s;
}
.footer-lang:hover, .footer-lang.active {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-light);
}

/* ── Utility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 1.25rem 0;
}
