/* Roofing Calculator Specific Styles */
/* Matches main website design system */

/* Hero Section Override */
.hero-content-centered {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 20px 40px;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Trust Signals */
.trust-signals {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.trust-signal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 600;
}

.trust-icon {
  font-size: 1.25rem;
}

/* Calculator Widget */
.calculator-section {
  padding: 60px 20px;
  background: var(--bg);
}

.calculator-widget {
  background: var(--panel);
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid rgba(187, 166, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.calculator-header {
  text-align: center;
  margin-bottom: 3rem;
}

.calculator-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.calculator-header p {
  font-size: 1.125rem;
  color: var(--muted);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

/* Calculator Inputs */
.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.9375rem;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1px solid rgba(187, 166, 255, 0.3);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(187, 166, 255, 0.1);
}

.helper-text {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: italic;
}

/* Calculator Results */
.calculator-results {
  background: linear-gradient(135deg, rgba(187, 166, 255, 0.1) 0%, rgba(121, 195, 255, 0.1) 100%);
  border: 2px solid rgba(187, 166, 255, 0.3);
  border-radius: 12px;
  padding: 2rem;
  position: sticky;
  top: 100px;
}

.calculator-results h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-align: center;
}

.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-row.subtotal {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(187, 166, 255, 0.3);
  font-weight: 600;
}

.result-row.profit {
  color: var(--brand-2);
  font-weight: 600;
}

.result-row.total {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--brand);
  font-size: 1.25rem;
  font-weight: 700;
}

.result-row.per-sqft {
  border-bottom: none;
  color: var(--muted);
  font-size: 0.9375rem;
}

.result-label {
  color: var(--muted);
  font-size: 0.9375rem;
}

.result-value {
  color: var(--text);
  font-weight: 600;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}

.result-row.total .result-value {
  color: var(--brand);
  font-size: 1.75rem;
}

.result-actions {
  margin-top: 2rem;
  text-align: center;
}

.save-helper {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.result-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #FFC107;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Social Proof Bar */
.social-proof-bar {
  padding: 60px 20px;
  background: var(--panel);
  border-top: 1px solid rgba(187, 166, 255, 0.2);
  border-bottom: 1px solid rgba(187, 166, 255, 0.2);
}

.social-proof-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.proof-stat {
  padding: 1.5rem;
}

.proof-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.proof-label {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

/* Pricing Table */
.pricing-data-section {
  padding: 80px 20px;
  background: var(--bg);
}

.pricing-data-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-intro {
  text-align: center;
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

.pricing-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(187, 166, 255, 0.2);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}

.pricing-table thead {
  background: linear-gradient(135deg, rgba(187, 166, 255, 0.2) 0%, rgba(121, 195, 255, 0.2) 100%);
}

.pricing-table th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(187, 166, 255, 0.3);
}

.pricing-table td {
  padding: 1.25rem 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-table tbody tr:hover {
  background: rgba(187, 166, 255, 0.05);
  transition: background 0.2s ease;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

/* Regional Note */
.regional-note {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid rgba(187, 166, 255, 0.2);
}

.regional-note h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.regional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.regional-item {
  padding: 1rem;
  background: rgba(187, 166, 255, 0.1);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--text);
  border-left: 3px solid var(--brand);
}

.regional-item strong {
  color: var(--brand);
}

/* Value Content */
.value-content-section {
  padding: 80px 20px;
  background: var(--panel);
}

.value-content-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.value-card {
  padding: 2rem;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid rgba(187, 166, 255, 0.2);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(187, 166, 255, 0.2);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.value-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* Mini FAQ */
.mini-faq {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid rgba(187, 166, 255, 0.2);
}

.mini-faq h3 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-size: 1.0625rem;
  padding: 0.5rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--brand);
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Conversion Section */
.conversion-section {
  padding: 80px 20px;
}

.conversion-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.conversion-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}

.conversion-intro {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.platform-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  text-align: left;
}

.platform-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(187, 166, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(187, 166, 255, 0.2);
}

.feature-check {
  font-size: 1.5rem;
  color: #4CAF50;
  font-weight: 700;
  flex-shrink: 0;
}

.platform-feature h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.platform-feature p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.testimonial-video {
  margin: 3rem 0;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid rgba(187, 166, 255, 0.3);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.testimonial-caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
}

.conversion-cta {
  margin-top: 3rem;
}

.cta-subtext {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* SEO Footer Section */
.seo-footer-section {
  padding: 80px 20px;
  background: var(--bg);
}

.seo-footer-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text);
}

.seo-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.seo-faq-item {
  padding: 2rem;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid rgba(187, 166, 255, 0.2);
}

.seo-faq-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--brand);
}

.seo-faq-item p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.seo-content-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid rgba(187, 166, 255, 0.2);
}

.seo-content-block h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  color: var(--text);
}

.seo-content-block h3:first-child {
  margin-top: 0;
}

.seo-content-block p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

/* Email Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--panel);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  border: 1px solid rgba(187, 166, 255, 0.3);
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
}

.modal-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.modal-content p {
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.legal {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .calculator-widget {
    padding: 2rem 1.5rem;
  }

  .calculator-results {
    position: static;
  }

  .hero-content-centered {
    padding: 40px 20px 20px;
  }

  .trust-signals {
    gap: 1rem;
  }

  .value-grid,
  .platform-features-grid,
  .seo-faq-grid {
    grid-template-columns: 1fr;
  }

  .pricing-table {
    font-size: 0.875rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.875rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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