/* ============================================================
   ESTIMATOR MODAL — Extracted from index.html inline styles
   ============================================================ */

/* ── Modal Container & Backdrop ── */
.estimator-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.estimator-modal.open {
  display: flex;
}
.estimator-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,8,.98);
  backdrop-filter: blur(20px);
  z-index: 1;
}
.estimator-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  background: linear-gradient(135deg, rgba(30,30,50,.95) 0%, rgba(15,15,25,.95) 100%);
  border: 1px solid rgba(0,245,255,.15);
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,245,255,.1), inset 0 0 40px rgba(0,245,255,.04);
  overflow-y: auto;
  animation: slideIn .3s cubic-bezier(.25,.46,.45,.94);
}

/* ── Animations ── */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Close Button ── */
.estimator-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: rgba(0,245,255,.05);
  border: 1px solid rgba(0,245,255,.2);
  border-radius: 4px;
  color: var(--cyan);
  font-size: 20px;
  cursor: pointer;
  transition: all .3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.estimator-close:hover {
  background: rgba(0,245,255,.1);
  box-shadow: 0 0 16px rgba(0,245,255,.2);
}

/* ── Steps ── */
.estimator-step {
  display: none;
  padding: 60px 40px 40px;
  min-height: 400px;
}
.estimator-step.active {
  display: block;
  animation: fadeIn .3s ease;
}

/* ── Header & Progress ── */
.estimator-header {
  margin-bottom: 40px;
}
.estimator-header p {
  margin: 0;
}
.estimator-progress {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-glow);
  margin-bottom: 12px;
}
.estimator-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
}

/* ── Options & Complexity Cards ── */
.estimator-options {
  display: grid;
  gap: 16px;
}
.estimator-option,
.estimator-complexity {
  padding: 24px;
  background: rgba(0,245,255,.02);
  border: 1px solid rgba(0,245,255,.1);
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all .3s;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
}
.estimator-option:hover,
.estimator-complexity:hover {
  background: rgba(0,245,255,.06);
  border-color: rgba(0,245,255,.25);
  box-shadow: 0 0 16px rgba(0,245,255,.08);
  transform: translateY(-2px);
}
.estimator-option.selected,
.estimator-complexity.selected {
  background: rgba(0,245,255,.12);
  border-color: rgba(0,245,255,.4);
  box-shadow: 0 0 24px rgba(0,245,255,.15);
}

.option-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.option-name {
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 4px;
  text-shadow: 0 0 8px var(--cyan-glow);
}
.option-desc {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.complexity-label {
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 8px;
  text-shadow: 0 0 8px var(--cyan-glow);
}
.complexity-desc {
  font-size: 13px;
  color: var(--muted);
}

/* ── Form Elements ── */
.estimator-form {
  display: grid;
  gap: 24px;
}
.form-group {
  display: grid;
  gap: 8px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.form-select-modal {
  padding: 12px 16px;
  background: rgba(0,245,255,.04);
  border: 1px solid rgba(0,245,255,.15);
  border-radius: 4px;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  transition: all .3s;
  cursor: pointer;
}
.form-select-modal:hover,
.form-select-modal:focus {
  background: rgba(0,245,255,.08);
  border-color: rgba(0,245,255,.3);
  outline: none;
  box-shadow: 0 0 12px rgba(0,245,255,.08);
}
.form-select-modal option {
  background: #0f0f19;
  color: var(--text);
}

/* ── Form Sections (Website Form Extensions) ── */
.form-section {
  border-top: 1px solid rgba(0,245,255,.1);
  padding-top: 24px;
}
.form-section:first-of-type {
  border-top: none;
  padding-top: 0;
}
.form-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 6px var(--cyan-glow);
  margin-bottom: 16px;
}

/* ── Text Inputs & Textareas ── */
.form-input-modal,
.form-textarea-modal {
  padding: 12px 16px;
  background: rgba(0,245,255,.04);
  border: 1px solid rgba(0,245,255,.15);
  border-radius: 4px;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  transition: all .3s;
  resize: vertical;
  min-height: 60px;
}
.form-input-modal:hover,
.form-textarea-modal:hover,
.form-input-modal:focus,
.form-textarea-modal:focus {
  background: rgba(0,245,255,.08);
  border-color: rgba(0,245,255,.3);
  outline: none;
  box-shadow: 0 0 12px rgba(0,245,255,.08);
}
.form-input-modal::placeholder,
.form-textarea-modal::placeholder {
  color: rgba(200,200,220,.5);
}

/* ── Checkbox Group ── */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  padding: 8px 12px;
  background: rgba(0,245,255,.02);
  border: 1px solid rgba(0,245,255,.1);
  border-radius: 4px;
  transition: all .2s;
}
.checkbox-label:hover {
  background: rgba(0,245,255,.06);
  border-color: rgba(0,245,255,.25);
}
.checkbox-label input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--cyan);
}
.checkbox-label input[type="checkbox"]:checked {
  accent-color: var(--cyan);
}

/* ── Navigation Buttons ── */
.estimator-nav {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  justify-content: flex-end;
}
.btn-secondary {
  padding: 12px 24px;
  background: rgba(100,100,120,.2);
  border: 1px solid rgba(100,100,120,.3);
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .3s;
}
.btn-secondary:hover {
  background: rgba(100,100,120,.35);
  border-color: rgba(100,100,120,.5);
}
.btn-primary-sm {
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(0,245,255,.15) 0%, rgba(0,200,255,.1) 100%);
  border: 1px solid rgba(0,245,255,.3);
  color: var(--cyan);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .3s;
  text-shadow: 0 0 8px var(--cyan-glow);
}
.btn-primary-sm:hover {
  background: linear-gradient(135deg, rgba(0,245,255,.25) 0%, rgba(0,200,255,.2) 100%);
  border-color: rgba(0,245,255,.5);
  box-shadow: 0 0 20px rgba(0,245,255,.2);
}

/* ── Estimate Result Display ── */
.estimate-result {
  background: linear-gradient(135deg, rgba(0,245,255,.08) 0%, rgba(255,0,200,.04) 100%);
  border: 1px solid rgba(0,245,255,.2);
  border-radius: 6px;
  padding: 40px;
  text-align: center;
  margin: 40px 0;
}
.estimate-project-type {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-glow);
  margin-bottom: 16px;
}
.estimate-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(0,245,255,.3) 0%, rgba(255,0,200,.2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.estimate-timeline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .05em;
}

/* ── Estimate Note ── */
.estimate-note {
  background: rgba(255,200,0,.04);
  border-left: 2px solid rgba(255,200,0,.3);
  padding: 16px;
  border-radius: 2px;
  margin: 24px 0;
}
.estimate-note p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ── Utility Classes for Step 10 Estimate Breakdown ── */
.estimate-section-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.estimate-section-value {
  font-size: 18px;
  font-weight: 600;
}
.estimate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}
.estimate-grid-label {
  font-size: 12px;
  color: var(--muted);
}
.estimate-grid-value {
  font-weight: 600;
}
.estimate-highlight {
  background: rgba(0, 245, 255, 0.05);
  padding: 12px;
  border-radius: 4px;
  margin-top: 12px;
}
.estimate-highlight-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.estimate-highlight-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--cyan);
}
.estimate-divider {
  border-top: 1px solid rgba(0, 245, 255, 0.2);
  padding-top: 24px;
  margin-bottom: 32px;
}
.estimate-section-mb {
  margin-bottom: 32px;
}
.estimate-full-col {
  grid-column: 1 / -1;
}
.estimate-step9-intro {
  color: var(--muted);
  margin-bottom: 24px;
}
.estimate-step10-confirm {
  text-align: center;
  margin-bottom: 32px;
}

/* ── Responsive (max-width: 640px) ── */
@media (max-width: 640px) {
  .estimator-content {
    max-height: 90vh;
  }
  .estimator-step {
    padding: 40px 24px 24px;
  }
  .estimator-header h2 {
    font-size: 24px;
  }
  .estimate-price {
    font-size: 40px;
  }
  .estimator-nav {
    flex-direction: column-reverse;
  }
  .btn-secondary,
  .btn-primary-sm {
    width: 100%;
  }
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}
