/* ==========================================================
   Vivid Horizon — Calculator Pages (Mortgage & Costs)
   Shared stylesheet: mortgage-calculator.css
   ========================================================== */

:root {
  --gold:         #C29B6B;
  --gold-light:   #D4B483;
  --navy:         #293352;
  --charcoal:     #1C1C1C;
  --dark-bg:      #0d1018;
  --dark-surface: #141820;
  --serif:        'Playfair Display', Georgia, serif;
  --sans:         'Roboto Condensed', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--dark-bg);
  color: rgba(255,255,255,0.88);
  font-family: var(--sans);
  padding-top: 124px;
  -webkit-font-smoothing: antialiased;
}

.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 767px) { .page-container { padding: 0 20px; } }

/* ==========================================================
   BREADCRUMB
   ========================================================== */

.breadcrumb {
  padding: 28px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.breadcrumb a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb__sep { color: rgba(255,255,255,0.15); }
.breadcrumb__current { color: rgba(255,255,255,0.55); }

/* ==========================================================
   PAGE HEADER
   ========================================================== */

.calc-page-header {
  padding: 36px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.calc-page-header__title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  color: rgba(255,255,255,0.95);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.calc-page-header__sub {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin: 0;
  line-height: 1.6;
  max-width: 560px;
}

/* ==========================================================
   LAYOUT: two-column (main + sidebar)
   ========================================================== */

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  padding: 52px 0 100px;
  align-items: start;
}

@media (max-width: 991px) {
  .calc-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================
   FORM
   ========================================================== */

.calc-form-section {
  margin-bottom: 40px;
}

.calc-form-label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}

.calc-input,
.calc-select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

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

.calc-input::placeholder { color: rgba(255,255,255,0.2); }

.calc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C29B6B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.calc-select option { background: #1a1f2b; color: rgba(255,255,255,0.9); }

.calc-field {
  margin-bottom: 24px;
}

.calc-field-note {
  font-family: var(--sans);
  font-style: italic;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 6px;
}

/* Input prefix/suffix wrapper */
.calc-input-wrap {
  position: relative;
}

.calc-input-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 15px;
  pointer-events: none;
}

.calc-input-wrap .calc-input { padding-left: 30px; }

/* ==========================================================
   RESULTS TABLE
   ========================================================== */

.calc-results {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 36px;
  margin-top: 8px;
}

.calc-results__title {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 0 0 24px;
}

.calc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 16px;
}

.calc-row__label {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

.calc-row__val {
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  white-space: nowrap;
}

/* Highlighted grand total rows */
.calc-row--highlight {
  border-bottom: none;
  margin-top: 8px;
  padding: 16px 0 0;
}

.calc-row--highlight .calc-row__label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.calc-row--highlight .calc-row__val {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
}

/* Section divider within results */
.calc-results-divider {
  padding: 20px 0 8px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

/* ==========================================================
   SIDEBAR NAV
   ========================================================== */

.calc-sidebar {
  position: sticky;
  top: 148px;
}

.calc-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 36px;
}

.calc-nav-btn {
  display: block;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: none;
  border-left: 2px solid transparent;
  color: rgba(255,255,255,0.45);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.calc-nav-btn:hover {
  color: rgba(255,255,255,0.75);
  border-left-color: rgba(194,155,107,0.4);
  background: rgba(255,255,255,0.05);
}

.calc-nav-btn.active {
  background: rgba(194,155,107,0.08);
  border-left-color: var(--gold);
  color: var(--gold);
}

.calc-sidebar-help {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.calc-sidebar-help__label {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}

.calc-sidebar-cta {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: var(--navy);
  border: 1px solid rgba(194,155,107,0.25);
  color: rgba(255,255,255,0.8);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.calc-sidebar-cta:hover {
  background: rgba(194,155,107,0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* ==========================================================
   FOOTNOTE
   ========================================================== */

.calc-footnote {
  font-family: var(--sans);
  font-style: italic;
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  margin-top: 28px;
  line-height: 1.6;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
