/* EasyAccurate Painting Estimator - assets/estimator.css */
.ea-estimator-wrap {
  --ea-bg: #020617;
  --ea-card: #0b1120;
  --ea-border: rgba(148, 163, 184, 0.35);
  --ea-accent: #facc15;
  --ea-text: #e5e7eb;
  --ea-muted: #94a3b8;
  --ea-green: #22c55e;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ea-text);
  max-width: 960px;
  margin: 2rem auto;
  padding: 1rem;
}

/* Free Estimate Banner */
.tlp-free-estimate-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.10));
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 1rem;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.tlp-banner-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.tlp-free-estimate-banner strong {
  display: block;
  font-size: 0.95rem;
  color: #86efac;
}

.tlp-free-estimate-banner span {
  font-size: 0.88rem;
  color: var(--ea-muted);
}

.tlp-banner-phone {
  margin-left: auto;
  background: var(--ea-green);
  color: #0f172a;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.tlp-banner-phone:hover {
  background: #16a34a;
  color: #fff;
}

/* Summary disclaimer */
.tlp-summary-disclaimer {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--ea-green);
  line-height: 1.4;
}

/* Call button */
.tlp-estimator-btn--call {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.45);
  border-color: transparent;
}

.tlp-estimator-btn--call:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(34, 197, 94, 0.6);
}

.tlp-estimator-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.tlp-estimator-logo {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #facc15, #f97316, #0b1120);
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.4);
}

.tlp-estimator-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.tlp-estimator-tagline {
  margin: 0.2rem 0 0;
  color: var(--ea-muted);
  font-size: 0.95rem;
}

.tlp-estimator-card {
  background: radial-gradient(circle at top left, #020617, #020617 45%, #000 100%);
  border-radius: 1.25rem;
  border: 1px solid var(--ea-border);
  padding: 1.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.tlp-estimator-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.tlp-estimator-row--summary {
  align-items: stretch;
}

.tlp-estimator-card label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.tlp-estimator-card input[type="text"],
.tlp-estimator-card input[type="number"],
.tlp-estimator-card input[type="date"],
.tlp-estimator-card input[type="time"],
.tlp-estimator-card select,
.tlp-estimator-card textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.9);
  color: var(--ea-text);
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}

.tlp-estimator-card textarea {
  min-height: 90px;
  resize: vertical;
}

.tlp-estimator-card input:focus,
.tlp-estimator-card select:focus,
.tlp-estimator-card textarea:focus {
  outline: none;
  border-color: var(--ea-accent);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.3);
}

.tlp-estimator-hint,
.tlp-estimator-help {
  font-size: 0.75rem;
  color: var(--ea-muted);
  margin-top: 0.3rem;
}

.tlp-estimator-summary {
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.65);
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.35));
}

.tlp-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.tlp-summary-line--strong span:first-child {
  font-weight: 600;
}

.tlp-summary-line--strong span:last-child {
  font-weight: 700;
}

.tlp-summary-line--muted {
  color: var(--ea-muted);
}

.tlp-estimator-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.tlp-estimator-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.18);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.tlp-estimator-btn--primary {
  background: radial-gradient(circle at 30% 20%, #facc15, #f97316, #a16207);
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 14px 35px rgba(234, 179, 8, 0.55);
}

.tlp-estimator-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(234, 179, 8, 0.7);
}

.tlp-estimator-btn--ghost {
  background: transparent;
  color: var(--ea-text);
}

.tlp-estimator-btn--ghost:hover {
  background: rgba(15, 23, 42, 0.8);
}

.tlp-estimator-footnote {
  font-size: 0.75rem;
  color: var(--ea-muted);
  margin: 0;
}

.ea-estimator-error {
  border-radius: 0.75rem;
  border: 1px solid #ef4444;
  background: rgba(127, 29, 29, 0.9);
  color: #fee2e2;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

/* Mobile */
@media (max-width: 768px) {
  .tlp-estimator-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
