/* NGU Modal Enquiry Form styles */

/* Full-screen overlay - blurred transparent black */
#ngu-quote-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#ngu-quote-modal.ngu-is-open {
  display: flex;
}

/* Disable background scroll when modal is open */
body.ngu-quote-open {
  overflow: hidden;
}

/* Modal box */
.ngu-quote-box {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  box-shadow:
    0 28px 80px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(226, 232, 240, 1);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

.ngu-quote-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
}

.ngu-quote-close:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.ngu-quote-title {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
}

.ngu-quote-subtitle {
  margin: 0 0 1rem;
  color: #6b7280;
}

/* Basic CF7 styling inside modal */
#ngu-quote-modal .wpcf7-form input[type="text"],
#ngu-quote-modal .wpcf7-form input[type="email"],
#ngu-quote-modal .wpcf7-form input[type="tel"],
#ngu-quote-modal .wpcf7-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

#ngu-quote-modal .wpcf7-form textarea {
  min-height: 130px;
  resize: vertical;
}

#ngu-quote-modal .wpcf7-form input:focus,
#ngu-quote-modal .wpcf7-form textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

#ngu-quote-modal .wpcf7-submit {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Service radio cards with icons */
#ngu-quote-modal .service-choice.wpcf7-form-control {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

#ngu-quote-modal .service-choice .wpcf7-list-item {
  margin: 0;
}

#ngu-quote-modal .service-choice .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#ngu-quote-modal .service-choice .wpcf7-list-item input[type="radio"] {
  accent-color: #111827;
}

#ngu-quote-modal .service-choice .wpcf7-list-item:nth-child(1) label::before { content: "🔥"; font-size: 1.2rem; }
#ngu-quote-modal .service-choice .wpcf7-list-item:nth-child(2) label::before { content: "🛁"; font-size: 1.2rem; }
#ngu-quote-modal .service-choice .wpcf7-list-item:nth-child(3) label::before { content: "🏗️"; font-size: 1.2rem; }
#ngu-quote-modal .service-choice .wpcf7-list-item:nth-child(4) label::before { content: "♿"; font-size: 1.2rem; }
#ngu-quote-modal .service-choice .wpcf7-list-item:nth-child(5) label::before { content: "🛠️"; font-size: 1.2rem; }
#ngu-quote-modal .service-choice .wpcf7-list-item:nth-child(6) label::before { content: "⚡"; font-size: 1.2rem; }

#ngu-quote-modal .service-choice .wpcf7-list-item label:hover {
  background: #eef2ff;
  border-color: #a5b4fc;
  box-shadow: 0 4px 10px rgba(129, 140, 248, 0.25);
}

#ngu-quote-modal .service-choice .wpcf7-list-item input[type="radio"]:checked + span {
  font-weight: 600;
}
