/* ============================================================
   Hestia Home — Mortgage Calculator Styles
   Reuses base style.css palette
   ============================================================ */

/* ===== HERO ===== */
.calc-hero {
  background: linear-gradient(135deg, #0f1419 0%, #1a2530 100%);
  padding: 100px 0 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.calc-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(199, 160, 88, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(199, 160, 88, 0.10) 0%, transparent 50%);
  pointer-events: none;
}

.calc-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.calc-tag {
  display: inline-block;
  background: rgba(199, 160, 88, 0.15);
  color: #C7A058;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
  border: 1px solid rgba(199, 160, 88, 0.3);
}

.calc-h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.calc-h1 .accent {
  color: #C7A058;
  display: inline;
}

.calc-lead {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.calc-lead strong {
  color: #fff;
}

.calc-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.calc-bullets li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.calc-cta-btn {
  display: inline-block;
  background: #C7A058;
  color: #0f1419;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid #C7A058;
}

.calc-cta-btn:hover {
  background: #d4ae6b;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(199, 160, 88, 0.3);
}

@media (max-width: 768px) {
  .calc-hero { padding: 70px 0 40px; }
  .calc-h1 { font-size: 32px; }
  .calc-lead { font-size: 16px; }
  .calc-bullets { grid-template-columns: 1fr; }
}

/* ===== CALCULATOR SECTION ===== */
.calc-section {
  background: #f8f9fa;
  padding: 60px 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

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

/* ===== FORM ===== */
.calc-form-wrap {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(15, 20, 25, 0.06);
}

.calc-form-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f1419;
  margin-bottom: 6px;
}

.calc-form-sub {
  font-size: 14px;
  color: #6c7a89;
  margin-bottom: 28px;
}

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

.calc-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #0f1419;
  margin-bottom: 8px;
}

.calc-field input,
.calc-field select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e1e5ea;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}

.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: #C7A058;
}

.calc-field input[type="range"] {
  padding: 0;
  height: 6px;
  background: #e1e5ea;
  border-radius: 3px;
  border: none;
  margin: 12px 0 6px;
  accent-color: #C7A058;
}

.calc-range-display {
  font-size: 14px;
  color: #6c7a89;
  text-align: right;
}

.calc-range-display span {
  font-weight: 700;
  color: #C7A058;
  font-size: 16px;
}

.calc-hint {
  font-size: 12px;
  color: #6c7a89;
  margin-top: 6px;
  line-height: 1.4;
}

.calc-submit-btn {
  width: 100%;
  background: #0f1419;
  color: #fff;
  padding: 18px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s;
}

.calc-submit-btn:hover {
  background: #1a2530;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 20, 25, 0.2);
}

/* ===== RESULT BOX ===== */
.calc-result-wrap {
  position: sticky;
  top: 24px;
  align-self: flex-start;
}

.calc-result-box {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(15, 20, 25, 0.06);
  min-height: 400px;
}

/* Placeholder */
.calc-result-placeholder {
  text-align: center;
  padding: 60px 24px;
  color: #6c7a89;
}

.calc-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.calc-result-placeholder h3 {
  font-size: 20px;
  color: #0f1419;
  margin-bottom: 8px;
}

/* Result data */
.calc-result-main {
  text-align: center;
  padding: 24px 16px 28px;
  background: linear-gradient(135deg, #C7A058 0%, #d4ae6b 100%);
  color: #fff;
  border-radius: 14px;
  margin-bottom: 20px;
}

.calc-result-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-result-value {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.calc-result-currency {
  font-size: 24px;
  font-weight: 600;
  opacity: 0.85;
}

.calc-result-monthly {
  font-size: 14px;
  opacity: 0.9;
}

.calc-result-monthly strong {
  font-size: 16px;
  font-weight: 700;
}

/* Property max */
.calc-result-property {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.calc-result-property .calc-result-label {
  color: #6c7a89;
  margin-bottom: 6px;
}

.calc-result-property-value {
  font-size: 28px;
  font-weight: 700;
  color: #0f1419;
  margin-bottom: 6px;
}

.calc-result-hint {
  font-size: 12px;
  color: #6c7a89;
}

/* Banks */
.calc-banks {
  margin-bottom: 24px;
}

.calc-banks-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f1419;
  margin-bottom: 14px;
}

.calc-banks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: bank-counter;
}

.calc-bank-item {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  counter-increment: bank-counter;
  position: relative;
  padding-left: 50px;
}

.calc-bank-item::before {
  content: counter(bank-counter);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: #C7A058;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.calc-bank-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.calc-bank-header strong {
  font-size: 16px;
  color: #0f1419;
}

.calc-bank-rate {
  font-size: 13px;
  font-weight: 700;
  color: #C7A058;
  background: rgba(199, 160, 88, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}

.calc-bank-match {
  font-size: 11px;
  font-weight: 600;
  color: #28a745;
  background: rgba(40, 167, 69, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: auto;
}

.calc-bank-why {
  font-size: 13px;
  color: #6c7a89;
  margin: 0;
  line-height: 1.4;
}

/* CTA block */
.calc-cta-block {
  background: linear-gradient(135deg, #0f1419 0%, #1a2530 100%);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  color: #fff;
}

.calc-cta-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  opacity: 0.95;
}

.calc-cta-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.calc-lead-btn {
  background: #C7A058;
  color: #0f1419;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

.calc-lead-btn:hover {
  background: #d4ae6b;
  transform: translateY(-1px);
}

.calc-cta-micro {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 10px;
  margin-bottom: 0;
}

/* ===== BENEFITS ===== */
.calc-benefits {
  padding: 60px 0;
  background: #fff;
}

.calc-section-title {
  font-size: 32px;
  font-weight: 700;
  color: #0f1419;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.calc-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 968px) {
  .calc-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 568px) {
  .calc-benefits-grid {
    grid-template-columns: 1fr;
  }
  .calc-section-title { font-size: 26px; }
}

.calc-benefit {
  text-align: center;
  padding: 24px;
  border-radius: 14px;
  transition: all 0.2s;
}

.calc-benefit:hover {
  background: #f8f9fa;
  transform: translateY(-4px);
}

.calc-benefit-icon {
  font-size: 40px;
  margin-bottom: 14px;
}

.calc-benefit h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f1419;
  margin-bottom: 8px;
}

.calc-benefit p {
  font-size: 14px;
  color: #6c7a89;
  line-height: 1.5;
}

/* ===== FAQ ===== */
.calc-faq {
  padding: 60px 0;
  background: #f8f9fa;
}

.calc-faq .faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.calc-faq .faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #e1e5ea;
}

.calc-faq .faq-question {
  padding: 18px 24px;
  font-weight: 600;
  color: #0f1419;
  cursor: pointer;
  position: relative;
  padding-right: 50px;
  transition: background 0.2s;
}

.calc-faq .faq-question:hover {
  background: #f8f9fa;
}

.calc-faq .faq-question::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #C7A058;
  transition: transform 0.2s;
}

.calc-faq .faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.calc-faq .faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  color: #6c7a89;
  font-size: 15px;
  line-height: 1.6;
  transition: all 0.3s;
}

.calc-faq .faq-item.active .faq-answer {
  padding: 0 24px 18px;
  max-height: 500px;
}

/* ===== LEAD POPUP ===== */
.lead-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.lead-popup-overlay.active {
  display: flex;
}

.lead-popup-box {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.lead-popup-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f8f9fa;
  border: none;
  font-size: 24px;
  color: #6c7a89;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lead-popup-close:hover {
  background: #e1e5ea;
}

.lead-popup-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f1419;
  margin-bottom: 6px;
}

.lead-popup-sub {
  font-size: 14px;
  color: #6c7a89;
  margin-bottom: 24px;
}

.lead-form .lead-field {
  margin-bottom: 16px;
}

.lead-field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #0f1419;
  margin-bottom: 6px;
}

.lead-field input,
.lead-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e1e5ea;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  resize: vertical;
}

.lead-field input:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: #C7A058;
}

.lead-consent {
  margin: 12px 0 18px;
}

.lead-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: #6c7a89;
  cursor: pointer;
}

.lead-consent input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: #C7A058;
}

.lead-consent a {
  color: #C7A058;
  text-decoration: underline;
}

.lead-submit-btn {
  width: 100%;
  background: #C7A058;
  color: #0f1419;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.lead-submit-btn:hover {
  background: #d4ae6b;
}

.lead-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lead-spam-note {
  font-size: 12px;
  color: #6c7a89;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
}

/* Cookie banner override (use site default) */
