

/* ── Trigger button ── */
.btn-open {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.btn-open:hover {
  background: #15803d;
}

/* ── Overlay ── */
#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#overlay.open {
  display: flex;
}

/* ── Modal card ── */
.modal {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* ── Close button ── */
.btn-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 18px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.btn-close:hover {
  background: #e5e7eb;
}

/* ── Modal header ── */
.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0.5rem;
}
.modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}
.modal-header p {
  font-size: 13px;
  color: #6b7280;
}

.divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1.25rem 0;
}

/* ── Form layout ── */
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.field {
  margin-bottom: 12px;
}

label.field-label {
  display: block;
  font-size: 12px;
  color: #374151;
  margin-bottom: 4px;
  font-weight: 500;
}
label.field-label span {
  color: #dc2626;
}

/* ── Input wrappers ── */
.input-wrap {
  position: relative;
}
.input-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #9ca3af;
  pointer-events: none;
}
.input-wrap.textarea svg {
  top: 12px;
  transform: none;
}

/* ── Inputs ── */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 8px 10px 8px 32px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  color: #111827;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}
input:focus,
textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}
textarea {
  resize: vertical;
}

/* ── Service checkboxes ── */
.service-label {
  font-size: 13px;
  color: #374151;
  margin-bottom: 8px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px 10px;
  margin-bottom: 12px;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
}
.checkbox-grid input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #16a34a;
  flex-shrink: 0;
  padding: 0;
}

/* ── Terms ── */
.terms {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.terms input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #16a34a;
  flex-shrink: 0;
}
.terms label {
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
}
.terms a {
  color: #16a34a;
  text-decoration: none;
}
.terms a:hover {
  text-decoration: underline;
}

/* ── Submit button ── */
.btn-submit {
  width: 100%;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
  font-family: inherit;
}
.btn-submit:hover {
  background: #15803d;
}
.btn-submit.sent {
  background: #15803d;
}

/* ── Privacy note ── */
.privacy-note {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.privacy-note svg {
  color: #16a34a;
  width: 13px;
  height: 13px;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .row-2,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 1.25rem;
  }
}