/* Doody Crew: Branching Quote Popup styles. Add this to your theme's stylesheet, or enqueue as its own file. */

.doody-quote-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  z-index: 9999;
  padding: 40px 16px;
  overflow-y: auto;
}

.doody-quote-overlay.doody-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.doody-quote-modal {
  background: #f4f1ea;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  padding: 40px;
  position: relative;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.doody-quote-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #555;
}

.doody-quote-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 6px 0;
}

.doody-quote-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 24px 0;
}

/* Steps */
.doody-step {
  display: none;
}

.doody-step.doody-step-active {
  display: block;
}

.doody-step-error {
  min-height: 1.1em;
  margin: 4px 0 16px 0;
  font-size: 0.85rem;
  color: #b3261e;
}

.doody-next-btn {
  width: 100%;
  background: #f4841f;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.doody-next-btn:hover {
  background: #d9700f;
}

.doody-back-btn {
  background: none;
  border: none;
  color: #4a7c3f;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-bottom: 18px;
}

.doody-back-btn:hover {
  text-decoration: underline;
}

.doody-service-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.doody-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
}

.doody-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #4a7c3f;
}

.doody-contact-fields,
.doody-question-block {
  margin-bottom: 20px;
}

.doody-question-block {
  display: none;
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 18px;
}

.doody-question-block.doody-visible {
  display: block;
}

.doody-question-block h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.doody-field-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.doody-field-row input,
.doody-field-row select,
.doody-contact-fields > input,
.doody-quote-modal textarea {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #ffffff;
}

.doody-quote-modal textarea {
  width: 100%;
  resize: vertical;
}

/* Photo upload */
.doody-photo-upload {
  margin-bottom: 20px;
}

.doody-photo-upload label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
}

.doody-photo-upload input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #ffffff;
}

.doody-submit-btn {
  width: 100%;
  background: #f4841f;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.doody-submit-btn:hover {
  background: #d9700f;
}

.doody-submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.doody-form-status {
  margin-top: 10px;
  font-size: 0.9rem;
  text-align: center;
}

.doody-form-status.doody-success {
  color: #2f6d2f;
}

.doody-form-status.doody-error {
  color: #b3261e;
}

@media (max-width: 480px) {
  .doody-field-row {
    flex-direction: column;
  }
}