.tulley-estimator-wrap * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.tulley-estimator-wrap {
  background: #f4f7fc;
  font-family: "Inter", sans-serif;
  color: #1a2c3e;
  padding: 16px 12px;
}

/* base font for mobile first */
.tulley-estimator-wrap {
  font-size: 16px;
}

@media (max-width: 680px) {
  .tulley-estimator-wrap {
    font-size: 11px;
  }

  .tulley-estimator-wrap {
    padding: 12px 8px;
  }
}

.tulley-estimator-wrap .container {
  /* max-width: 1200px; */
  margin: 0 auto;
}

.tulley-estimator-wrap .brand {
  text-align: center;
  margin-bottom: 20px;
}

.tulley-estimator-wrap .brand h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e4a76, #0f2c44);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.3px;
}

.tulley-estimator-wrap .brand p {
  color: #4a627a;
  font-weight: 500;
  font-size: 1.2rem;
}

.tulley-estimator-wrap .card {
  background: white;
  border-radius: 28px;
  box-shadow:
    0 20px 35px -12px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

/* progress steps - responsive wrap */
.tulley-estimator-wrap .progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e9edf2;
  flex-wrap: wrap;
  gap: 8px;
}

.tulley-estimator-wrap .step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #8ba0b3;
}

.tulley-estimator-wrap .step .step-num {
  width: 26px;
  height: 26px;
  background: #eef2f6;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.tulley-estimator-wrap .step.active {
  color: #1e4a76;
}

.tulley-estimator-wrap .step.active .step-num {
  background: #1e4a76;
  color: white;
}

.tulley-estimator-wrap .step.completed .step-num {
  background: #2c7a4d;
  color: white;
}

.tulley-estimator-wrap .form-panel {
  padding: 24px 28px;
}

@media (max-width: 680px) {
  .tulley-estimator-wrap .form-panel {
    padding: 18px 16px;
  }
}

.tulley-estimator-wrap .screen {
  display: none;
  animation: fadeIn 0.25s ease;
}

.tulley-estimator-wrap .screen.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tulley-estimator-wrap h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0b2b3f;
}

.tulley-estimator-wrap .sub {
  color: #5e7b9c;
  margin-bottom: 22px;
  border-left: 3px solid #e67e22;
  padding-left: 12px;
  font-weight: 500;
  font-size: 1.1rem;
}

.tulley-estimator-wrap textarea {
  width: 100%;
  border: 1.5px solid #dce3ea;
  border-radius: 20px;
  padding: 14px 16px;
  font-family: "Inter", monospace;
  font-size: 1rem;
  resize: vertical;
  transition: 0.2s;
  background: #fefefe;
}

.tulley-estimator-wrap textarea:focus {
  border-color: #e67e22;
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

/* 3 services per row on all devices */
.tulley-estimator-wrap .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 16px;
}

@media (max-width: 560px) {
  .tulley-estimator-wrap .services-grid {
    gap: 8px;
  }
}

.tulley-estimator-wrap .service-chip {
  background: #f8fafd;
  border: 1.5px solid #e2e8f0;
  border-radius: 60px;
  padding: 10px 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  word-break: break-word;
}

.tulley-estimator-wrap .service-chip.selected {
  background: #1e4a76;
  border-color: #1e4a76;
  color: white;
  box-shadow: 0 4px 10px rgba(30, 74, 118, 0.2);
}

/* photo zone */
.tulley-estimator-wrap .photo-zone {
  background: #fefcf7;
  border: 2px dashed #cbdde9;
  border-radius: 24px;
  padding: 20px 16px;
  margin: 16px 0;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}

.tulley-estimator-wrap .photo-zone:hover {
  border-color: #e67e22;
  background: #fffaf2;
}

.tulley-estimator-wrap .photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}

.tulley-estimator-wrap .preview-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
}

.tulley-estimator-wrap .photo-preview-wrapper {
  position: relative;
  display: inline-block;
}

.tulley-estimator-wrap .photo-badge {
  font-size: 1rem;
  background: #1e4a76;
  color: white;
  border-radius: 50px;
  padding: 4px 10px;
  display: inline-block;
  margin-top: 6px;
}

.tulley-estimator-wrap .next-btn,
.tulley-estimator-wrap .back-btn,
.tulley-estimator-wrap .submit-btn {
  background: #e67e22;
  border: none;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.tulley-estimator-wrap .next-btn:hover,
.tulley-estimator-wrap .submit-btn:hover {
  background: #cf711f;
  transform: translateY(-1px);
}

.tulley-estimator-wrap .back-btn {
  background: #eef2f6;
  color: #2c4c6e;
  margin-right: 12px;
}

.tulley-estimator-wrap .btn-group {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tulley-estimator-wrap .question-item {
  background: #f9fbfe;
  border-radius: 24px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid #eef2f8;
}

.tulley-estimator-wrap .question-label {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1rem;
}

.tulley-estimator-wrap .options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tulley-estimator-wrap .opt-btn {
  background: white;
  border: 1px solid #cfdfed;
  border-radius: 40px;
  padding: 6px 16px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  transition: 0.1s;
}

.tulley-estimator-wrap .opt-btn.selected {
  background: #1e4a76;
  border-color: #1e4a76;
  color: white;
}

.tulley-estimator-wrap .price-card {
  background: linear-gradient(145deg, #fef7e8, #fffbf2);
  border-radius: 24px;
  padding: 20px;
  margin: 16px 0;
  border: 1px solid #fbe5c2;
}

.tulley-estimator-wrap .quote-card {
  background: linear-gradient(145deg, #f7fbff, #fff8ee);
  border-color: #dbe8f4;
}

.tulley-estimator-wrap .price-tag {
  font-size: 2rem;
  font-weight: 800;
  color: #e67e22;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.tulley-estimator-wrap .quote-title {
  font-size: 1.6rem;
  line-height: 1.25;
  font-weight: 800;
  color: #123e61;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.tulley-estimator-wrap .quote-note {
  margin-top: 12px;
  color: #3c5a7d;
  font-size: 0.98rem;
  line-height: 1.55;
}

.tulley-estimator-wrap .confirmation-message {
  background: #eef2fa;
  padding: 10px 16px;
  border-radius: 28px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #1e4a76;
  text-align: center;
}

.tulley-estimator-wrap .contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.tulley-estimator-wrap .contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  background: #fbfdff;
  border: 1px solid #e4edf6;
  border-radius: 24px;
  padding: 18px;
}

.tulley-estimator-wrap .field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.tulley-estimator-wrap .field-group.full {
  grid-column: 1 / -1;
}

.tulley-estimator-wrap .field-group label {
  color: #243f5a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.tulley-estimator-wrap .contact-summary-panel {
  background: #0f2c44;
  color: white;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 16px 30px -20px rgba(15, 44, 68, 0.7);
}

.tulley-estimator-wrap .summary-kicker {
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: #ffce8a;
}

.tulley-estimator-wrap .contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.tulley-estimator-wrap input,
.tulley-estimator-wrap select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1.5px solid #dce3ea;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  min-height: 46px;
  background: white;
  color: #17324d;
}

.tulley-estimator-wrap input:focus,
.tulley-estimator-wrap select:focus {
  border-color: #e67e22;
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.tulley-estimator-wrap .summary-box {
  background: #f1f5f9;
  border-radius: 20px;
  padding: 16px;
  margin-top: 20px;
  font-size: 0.85rem;
  white-space: pre-wrap;
  font-family: monospace;
  border-left: 4px solid #e67e22;
  max-height: 260px;
  overflow-y: auto;
}

.tulley-estimator-wrap .contact-summary-panel .summary-box {
  background: rgba(255, 255, 255, 0.08);
  color: #eef7ff;
  border-left-color: #ffb457;
  margin-top: 0;
  max-height: 360px;
}

.tulley-estimator-wrap .error {
  color: #c0392b;
  font-size: 0.75rem;
  margin-top: 4px;
}

.tulley-estimator-wrap .loading-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.tulley-estimator-wrap .dot {
  width: 8px;
  height: 8px;
  background: #e67e22;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}

.tulley-estimator-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  background: #123e61;
  color: white;
  border-left: 5px solid #e67e22;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 18px 35px rgba(15, 44, 68, 0.25);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  max-width: min(380px, calc(100vw - 32px));
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.tulley-estimator-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@media (max-width: 680px) {
  .tulley-estimator-wrap .step span:last-child {
    font-size: 0.9rem;
  }

  .tulley-estimator-wrap .service-chip {
    font-size: 0.85rem;
    padding: 8px 4px;
  }

  .tulley-estimator-wrap .price-tag {
    font-size: 1.8rem;
  }

  .tulley-estimator-wrap h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 920px) {
  .tulley-estimator-wrap .contact-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .tulley-estimator-wrap .progress-steps {
    justify-content: flex-start;
    padding: 12px;
  }

  .tulley-estimator-wrap .step {
    flex: 1 1 30%;
  }

  .tulley-estimator-wrap .contact-fields,
  .tulley-estimator-wrap .contact-row {
    grid-template-columns: 1fr;
  }

  .tulley-estimator-wrap .contact-fields,
  .tulley-estimator-wrap .contact-summary-panel {
    border-radius: 18px;
    padding: 14px;
  }

  .tulley-estimator-wrap .quote-title {
    font-size: 1.35rem;
  }

  .tulley-estimator-wrap .btn-group {
    flex-direction: column;
  }

  .tulley-estimator-wrap .next-btn,
  .tulley-estimator-wrap .back-btn,
  .tulley-estimator-wrap .submit-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 440px) {
  .tulley-estimator-wrap .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Typography bump: +2px on desktop/tablet. */
.tulley-estimator-wrap .brand h1 {
  font-size: 2.325rem;
}

.tulley-estimator-wrap .brand p {
  font-size: 1.325rem;
}

.tulley-estimator-wrap .step {
  font-size: 1.125rem;
}

.tulley-estimator-wrap .step .step-num {
  font-size: 0.975rem;
}

.tulley-estimator-wrap h2 {
  font-size: 2.025rem;
}

.tulley-estimator-wrap .sub {
  font-size: 1.225rem;
}

.tulley-estimator-wrap textarea,
.tulley-estimator-wrap .next-btn,
.tulley-estimator-wrap .back-btn,
.tulley-estimator-wrap .submit-btn,
.tulley-estimator-wrap .question-label,
.tulley-estimator-wrap .photo-badge {
  font-size: 1.125rem;
}

.tulley-estimator-wrap .service-chip,
.tulley-estimator-wrap input,
.tulley-estimator-wrap select {
  font-size: 1.025rem;
}

.tulley-estimator-wrap .opt-btn,
.tulley-estimator-wrap .confirmation-message,
.tulley-estimator-wrap .summary-box {
  font-size: 0.975rem;
}

.tulley-estimator-wrap .quote-title {
  font-size: 1.725rem;
}

.tulley-estimator-wrap .quote-note {
  font-size: 1.105rem;
}

.tulley-estimator-wrap .field-group label {
  font-size: 0.905rem;
}

.tulley-estimator-wrap .error {
  font-size: 0.875rem;
}

/* Typography bump: +1px on mobile. */
@media (max-width: 680px) {
  .tulley-estimator-wrap .brand h1 {
    font-size: 2.2625rem;
  }

  .tulley-estimator-wrap .brand p {
    font-size: 1.2625rem;
  }

  .tulley-estimator-wrap .step,
  .tulley-estimator-wrap textarea,
  .tulley-estimator-wrap .next-btn,
  .tulley-estimator-wrap .back-btn,
  .tulley-estimator-wrap .submit-btn,
  .tulley-estimator-wrap .question-label,
  .tulley-estimator-wrap .photo-badge {
    font-size: 1.0625rem;
  }

  .tulley-estimator-wrap .step .step-num {
    font-size: 0.9125rem;
  }

  .tulley-estimator-wrap h2 {
    font-size: 1.6625rem;
  }

  .tulley-estimator-wrap .sub {
    font-size: 1.1625rem;
  }

  .tulley-estimator-wrap .service-chip,
  .tulley-estimator-wrap input,
  .tulley-estimator-wrap select {
    font-size: 0.9625rem;
  }

  .tulley-estimator-wrap .opt-btn,
  .tulley-estimator-wrap .confirmation-message,
  .tulley-estimator-wrap .summary-box {
    font-size: 0.9125rem;
  }

  .tulley-estimator-wrap .quote-title {
    font-size: 1.4125rem;
  }

  .tulley-estimator-wrap .quote-note {
    font-size: 1.0425rem;
  }

  .tulley-estimator-wrap .field-group label {
    font-size: 0.8425rem;
  }

  .tulley-estimator-wrap .error {
    font-size: 0.8125rem;
  }
}
