/*
 * Coleman's Flooring Calculator Styles
 *
 * All selectors scoped to #cfc-calculator-wrapper for high specificity
 * to prevent conflicts with Elementor and other page builders.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* ── Layout ── */
#cfc-calculator-wrapper.cfc-wrapper {
  padding: 40px 20px;
  font-family: 'Poppins', 'Helvetica Neue', sans-serif;
}

#cfc-calculator-wrapper * { box-sizing: border-box; }

#cfc-calculator-wrapper .cfc-container {
  max-width: 540px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 3px solid #1a1a1a;
}

#cfc-calculator-wrapper .cfc-hidden,
#cfc-calculator-wrapper [class*="cfc-step-"].cfc-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ── Header ── */
#cfc-calculator-wrapper .cfc-header {
  background: #1a1a1a;
  padding: 20px 28px;
}

#cfc-calculator-wrapper .cfc-header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

#cfc-calculator-wrapper .cfc-logo {
  max-width: 280px;
  height: auto;
  display: block;
}

#cfc-calculator-wrapper .cfc-header-title {
  color: #ffffff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

/* ── Title Area ── */
#cfc-calculator-wrapper .cfc-title {
  background: #fff;
  padding: 24px 28px 20px;
  text-align: center;
  border-bottom: 2px solid #f0f0f0;
}

#cfc-calculator-wrapper .cfc-title h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Playfair Display', Georgia, serif;
}

#cfc-calculator-wrapper .cfc-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
}

#cfc-calculator-wrapper .cfc-body { padding: 28px; }

/* ── Form Controls ── */
#cfc-calculator-wrapper .cfc-form-group { margin-bottom: 20px; }

#cfc-calculator-wrapper .cfc-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

#cfc-calculator-wrapper .cfc-form-input,
#cfc-calculator-wrapper .cfc-form-select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  transition: all 0.2s ease;
  font-family: inherit;
}

#cfc-calculator-wrapper .cfc-form-input:focus,
#cfc-calculator-wrapper .cfc-form-select:focus {
  outline: none;
  border-color: #4C8EB4;
  box-shadow: 0 0 0 3px rgba(76, 142, 180, 0.2);
}

#cfc-calculator-wrapper .cfc-form-input::placeholder { color: #999; }

#cfc-calculator-wrapper .cfc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Checkboxes ── */
#cfc-calculator-wrapper .cfc-checkbox-group {
  display: flex;
  align-items: center;
  padding: 16px;
  background: #fafafa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

#cfc-calculator-wrapper .cfc-checkbox-group:hover {
  border-color: #4C8EB4;
  background: #f0f7fa;
}

#cfc-calculator-wrapper .cfc-checkbox-input {
  width: 22px;
  height: 22px;
  margin-right: 14px;
  accent-color: #4C8EB4;
  cursor: pointer;
}

#cfc-calculator-wrapper .cfc-checkbox-label-text {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  cursor: pointer;
}

#cfc-calculator-wrapper .cfc-checkbox-price {
  font-size: 13px;
  color: #666;
  margin-left: 4px;
}

/* ── Buttons ── */
#cfc-calculator-wrapper .cfc-btn-primary {
  width: 100%;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: #4C8EB4;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#cfc-calculator-wrapper .cfc-btn-primary:hover {
  background: #3a7a9e;
  transform: translateY(-1px);
}

#cfc-calculator-wrapper .cfc-btn-primary:active { transform: translateY(0); }

#cfc-calculator-wrapper a.cfc-btn-primary {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-bottom: 12px;
}

#cfc-calculator-wrapper .cfc-btn-dark {
  width: 100%;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #1a1a1a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#cfc-calculator-wrapper .cfc-btn-dark:hover { background: #333; }

#cfc-calculator-wrapper .cfc-btn-secondary {
  width: 100%;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  background: transparent;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: 12px;
}

#cfc-calculator-wrapper .cfc-btn-secondary:hover {
  border-color: #999;
  color: #333;
}

/* ── Steps Indicator ── */
#cfc-calculator-wrapper .cfc-steps-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

#cfc-calculator-wrapper .cfc-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e0e0;
}

#cfc-calculator-wrapper .cfc-step-dot.active { background: #4C8EB4; }

/* ── Preview Estimate ── */
#cfc-calculator-wrapper .cfc-preview-estimate {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 28px;
}

#cfc-calculator-wrapper .cfc-preview-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#cfc-calculator-wrapper .cfc-preview-amount {
  font-size: 32px;
  font-weight: 700;
  color: #4C8EB4;
  font-family: 'Playfair Display', Georgia, serif;
}

/* ── Result ── */
#cfc-calculator-wrapper .cfc-result-box {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 24px;
}

#cfc-calculator-wrapper .cfc-result-label {
  font-size: 13px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

#cfc-calculator-wrapper .cfc-result-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  color: #4C8EB4;
}

#cfc-calculator-wrapper .cfc-success-icon {
  width: 80px;
  height: 80px;
  background: #4C8EB4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

#cfc-calculator-wrapper .cfc-success-message {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  text-align: center;
}

#cfc-calculator-wrapper .cfc-success-message strong { color: #1a1a1a; }

/* ── Summary ── */
#cfc-calculator-wrapper .cfc-summary-box {
  background: #fafafa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

#cfc-calculator-wrapper .cfc-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

#cfc-calculator-wrapper .cfc-summary-item:last-child { border-bottom: none; }
#cfc-calculator-wrapper .cfc-summary-label { color: #666; }
#cfc-calculator-wrapper .cfc-summary-value { color: #1a1a1a; font-weight: 600; }

/* ── Misc ── */
#cfc-calculator-wrapper .cfc-disclaimer {
  margin-top: 24px;
  padding: 16px 20px;
  background: #e8f2f8;
  border-radius: 8px;
  border: 2px solid #4C8EB4;
}

#cfc-calculator-wrapper .cfc-disclaimer p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

#cfc-calculator-wrapper .cfc-disclaimer strong { color: #1a1a1a; }

#cfc-calculator-wrapper .cfc-tagline {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  #cfc-calculator-wrapper .cfc-form-row { grid-template-columns: 1fr; }
  #cfc-calculator-wrapper .cfc-header { padding: 16px; }
  #cfc-calculator-wrapper .cfc-header-content { flex-direction: column; gap: 12px; }
  #cfc-calculator-wrapper .cfc-logo { max-width: 220px; }
  #cfc-calculator-wrapper .cfc-header-title { font-size: 20px; }
  #cfc-calculator-wrapper .cfc-body { padding: 20px; }
  #cfc-calculator-wrapper .cfc-result-amount { font-size: 40px; }
}
