/* ==========================================================================
   Move Home Planner & Cost Calculator Style Sheet
   ========================================================================== */

/* Main Container Layout */
.move-home-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(1.45rem, 2vw, 2.35rem) clamp(1.4rem, 2.6vw, 2.4rem) 3.2rem;
  font-family: 'Figtree', system-ui, sans-serif;
  color: #243750;
}

.move-home-container .calculator-section h1 {
  margin: 0 0 0.8rem;
  max-width: 1100px;
  font-size: clamp(2.7rem, 4.1vw, 4rem);
  line-height: 1.04;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: #0b1f3a;
  letter-spacing: -0.02em;
}

.move-home-container .calculator-intro {
  max-width: 1100px;
  margin-bottom: 2rem;
}

.move-home-container .calculator-intro p {
  max-width: 96ch;
  margin: 0 0 0.85rem;
  color: #445268;
  font-size: 1.12rem;
  line-height: 1.65;
}

/* Tab Controls styling */
.tool-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e2e7ef;
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: none;
  border: none;
  font-family: 'Figtree', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #53647d;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.25s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: #1e40af;
  background-color: #f3f4f6;
}

.tab-btn.active {
  color: #1e40af;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.62rem;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #3b82f6;
  border-radius: 2px;
}

/* Read by screen readers, not shown (each tab panel's h2 sits between the page h1 and the card h3s) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tab Content Visibility */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

/* Dual Column Layout */
.tool-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(360px, 0.95fr);
  gap: 2rem;
  padding: clamp(1.4rem, 2.2vw, 2.25rem);
  border: 1px solid #e2e7ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.08);
}

/* Tab 1: Checklist Specifics */
.checklist-header {
  margin-bottom: 1.5rem;
}

.progress-banner {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.progress-title {
  font-weight: 600;
  color: #0b1f3a;
  font-size: 1.05rem;
}

.progress-pct {
  font-weight: 700;
  color: #047857; /* emerald-700: 4.5:1 or better on the banner background */
  font-size: 1.2rem;
}

.progress-bar-bg {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  width: 0%;
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-group {
  margin-bottom: 2.2rem;
}

.timeline-group h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: #0b1f3a;
  border-bottom: 1px dashed #e2e7ef;
  padding-bottom: 0.4rem;
  margin-top: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-group h3 i {
  color: #3b82f6;
  font-size: 1.1rem;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.checklist-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateX(2px);
}

.checklist-item input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  cursor: pointer;
  accent-color: #10b981;
}

.checklist-item-text {
  font-size: 0.98rem;
  line-height: 1.45;
  color: #374151;
}

.checklist-item.completed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.checklist-item.completed .checklist-item-text {
  text-decoration: line-through;
  color: #6b7280;
}

.checklist-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.reset-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #4b5563;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.reset-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

/* Sidebar / Summary Card Layout */
.summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.summary-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #0b1f3a;
}

.summary-card p.subtitle {
  color: #64748b;
  font-size: 0.92rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Tab 2: Cost Calculator Forms */
.calculator-form-section {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
}

.form-group-card h3 {
  font-size: 1.15rem;
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  color: #0b1f3a;
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.form-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 1rem;
}

.form-row label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
}

.input-with-symbol {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-symbol span.symbol {
  position: absolute;
  left: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  font-size: 0.95rem;
  pointer-events: none;
}

.input-with-symbol input,
.form-row select {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 1.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: 'Figtree', sans-serif;
  font-size: 0.95rem;
  color: #1e293b;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row select {
  padding-left: 0.75rem; /* No currency symbol for select */
}

.input-with-symbol input:focus,
.form-row select:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-row input[type="number"]::-webkit-outer-spin-button,
.form-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-row input[type="number"] {
  -moz-appearance: textfield;
}

/* Calculator Outputs in Summary Panel */
.cost-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #4b5563;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.cost-item.highlight {
  font-weight: 600;
  color: #1f2937;
}

.cost-value {
  font-weight: 600;
  color: #1e293b;
}

.total-summary-box {
  background: #1e293b;
  color: #ffffff;
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.total-summary-box .label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 600;
}

.total-summary-box .value {
  font-size: 2rem;
  font-weight: 700;
  color: #38bdf8;
  font-family: 'Figtree', sans-serif;
}

.net-equity-box {
  background: #ecfdf5;
  border: 1px dashed #a7f3d0;
  color: #065f46;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.net-equity-box.deficit {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.net-equity-box .equity-amount {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.25rem;
  color: #047857;
}

.net-equity-box.deficit .equity-amount {
  color: #b91c1c;
}

/* Save / Share Action */
.action-btn {
  width: 100%;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.action-btn:hover {
  background: #2563eb;
}

.action-btn:active {
  transform: scale(0.98);
}

.action-btn.secondary-btn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.action-btn.secondary-btn:hover {
  background: #e2e8f0;
}

.action-btn.email-btn {
  background: #10b981;
}

.action-btn.email-btn:hover {
  background: #059669;
}

/* Call to Action Button Row in Calculator Section */
.calculator-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.budget-btn {
  flex: 1;
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.budget-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
  
  .summary-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .move-home-container {
    padding: 1.5rem 1rem;
  }
  
  .tool-tabs {
    flex-direction: column;
    gap: 0.25rem;
    border-bottom: none;
  }
  
  .tab-btn {
    border-radius: 6px;
    border: 1px solid #e2e7ef;
    text-align: left;
    justify-content: flex-start;
  }
  
  .tab-btn.active::after {
    display: none;
  }
  
  .tab-btn.active {
    background-color: #eff6ff;
    border-color: #3b82f6;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  
  .form-row label {
    margin-bottom: 0.15rem;
  }
  
  .calculator-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Print Styling */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .navbar, .contact-booking-section, .faq-section, .warning, div[data-shared-footer], .checklist-actions, .reset-btn, .action-btn, .calculator-actions, .tool-tabs {
    display: none !important;
  }
  
  .move-home-container {
    padding: 0;
  }
  
  .tool-grid {
    border: none;
    box-shadow: none;
    padding: 0;
    grid-template-columns: 1fr;
  }
  
  .tab-content {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .tab-content + .tab-content {
    page-break-before: always;
    margin-top: 3rem;
  }
  
  .summary-card {
    border: 1px solid #ccc;
    background: #fff;
    page-break-inside: avoid;
  }
  
  .checklist-item {
    border: 1px solid #eee;
    background: #fff;
    page-break-inside: avoid;
  }
  
  .form-group-card {
    border: 1px solid #eee;
    background: #fff;
    page-break-inside: avoid;
  }
  
  .total-summary-box {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1;
  }
  
  .total-summary-box .value {
    color: #1e40af !important;
  }
}

/* ==========================================================================
   Lead Collection Modal Styles
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: modalFadeIn 0.25s ease-out;
}

.modal-card {
  background: #ffffff;
  width: 92%;
  max-width: 500px;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  border: 1px solid #e2e8f0;
}

.close-modal-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.close-modal-btn:hover {
  color: #1e293b;
}

.modal-card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.modal-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.modal-form-row {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-form-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

.modal-form-row input[type="text"],
.modal-form-row input[type="email"],
.modal-form-row input[type="tel"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: 'Figtree', sans-serif;
  font-size: 0.95rem;
  color: #1e293b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form-row input:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.checkbox-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #10b981;
  cursor: pointer;
}

.checkbox-row label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
}

.modal-submit-btn {
  width: 100%;
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  margin-top: 0.5rem;
}

.modal-submit-btn:hover {
  background: #059669;
}

.modal-submit-btn:active {
  transform: scale(0.98);
}

/* Success Message inside modal */
#modal-success-msg {
  text-align: center;
  padding: 1.5rem 0;
  animation: modalFadeIn 0.3s ease;
}

#modal-success-msg i {
  font-size: 3.5rem;
  color: #10b981;
  margin-bottom: 1rem;
}

#modal-success-msg h3 {
  font-size: 1.45rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

#modal-success-msg p {
  margin-bottom: 0;
  color: #475569;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* Stamp Duty scope note and lead-form privacy note */
.sdlt-note,
.modal-privacy-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #555555;
}

.modal-form-status {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #b3261e;
}

.modal-form-status:empty {
  display: none;
}

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

.modal-privacy-note a {
  color: inherit;
  text-decoration: underline;
}

/* ==========================================================================
   Furnishing & Repairs (section 6): an optional extra kept out of the moving cost total
   ========================================================================== */

.form-group-card h3.card-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.preview-badge {
  background: #e5e7eb;
  color: #374151;
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.furnishing-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  font-weight: 700;
  color: #0b1f3a;
}

.furnishing-total span:last-child {
  font-size: 1.15rem;
  white-space: nowrap;
}

.reset-defaults-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  background: #ffffff;
  border: 1px solid #6b7280;
  border-radius: 999px;
  color: #374151;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.reset-defaults-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.reset-defaults-btn:focus-visible {
  outline: 3px solid #0b1f3a;
  outline-offset: 2px;
}

.furnishing-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #4b5563;
}

.optional-cost-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #4b5563;
}

.optional-cost-label small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #4b5563;
}

.furnishing-net-line {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed currentColor;
  font-size: 0.9rem;
}

@media print {
  .reset-defaults-btn {
    display: none !important;
  }
}
