/* ========================================================
   TIEMOND ATELIER - ENQUIRY & CONTACT FORM SYSTEM
   Includes:
   1. Luxury Modal System (Exact Replica of Mockup)
   2. Interactive 5-Option CTA Button Switcher:
      - Request a Quote
      - Request a Sample
      - Book a Consultation
      - Design Your Tie
      - Upload Your Logo
   3. Drag-and-Drop Logo & Reference File Uploader
   4. High-End Atelier Contact Us Layout
   ======================================================== */

:root {
  --enquiry-card-bg: #1c1917;
  --enquiry-input-bg: #282421;
  --enquiry-input-border: #3c3732;
  --enquiry-input-border-focus: #eb5e28;
  --enquiry-text: #ffffff;
  --enquiry-text-muted: #a8a29e;
  --enquiry-placeholder: #78716c;
  --enquiry-paprika: #eb5e28;
  --enquiry-paprika-hover: #d34c18;
  --enquiry-paprika-glow: rgba(235, 94, 40, 0.35);
  --enquiry-border-radius: 12px;
  --enquiry-btn-radius: 6px;
}

/* Lock background scrolling completely on all devices when modal is active */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none !important;
}

/* ============ 1. MOCKUP PIXEL-PERFECT MODAL ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 9, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.modal-backdrop.active,
.modal-backdrop.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-card {
  background: var(--enquiry-card-bg) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: var(--enquiry-border-radius) !important;
  max-width: 680px !important;
  width: 95% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  padding: 0 0 48px !important;
  position: relative !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.05) !important;
  color: var(--enquiry-text) !important;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.modal-backdrop.active .modal-card,
.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1) !important;
}

/* ============ FORM NAVBAR (EXACT REPLICA OF SITE NAVBAR) ============ */
.modal-header-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 64px;
  background: #141210;
  border-bottom: 1px solid rgba(204, 197, 185, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  box-sizing: border-box;
  z-index: 1000;
}

.modal-logo-wrap {
  display: inline-flex;
  align-items: center;
}

.modal-brand-logo {
  height: 48px;
  width: auto;
  max-height: 52px;
  object-fit: contain;
  display: block;
}

/* Close button - exact replica of rounded box with 'X' */
.modal-close {
  background: transparent !important;
  border: 1px solid rgba(204, 197, 185, 0.3) !important;
  color: #fffcf2 !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: all 0.25s ease !important;
  position: static !important;
  margin: 0 !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}

.modal-close svg {
  display: block;
  stroke: #fffcf2;
  stroke-width: 2.2;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.modal-close:hover {
  border-color: #eb5e28 !important;
  background: rgba(235, 94, 40, 0.1) !important;
}

.modal-close:hover svg {
  stroke: #eb5e28;
  transform: scale(1.08);
}

.modal-close:active {
  transform: scale(0.95);
}

/* Content padding inside modal-card below navbar */
.modal-card > :not(.modal-header-nav) {
  padding-left: 32px;
  padding-right: 32px;
}

.modal-card .modal-enquiry-pills {
  margin-top: 24px;
}

/* Title matching Image 1: Serif font, white */
.modal-card h3,
.modal-title-custom {
  font-family: var(--serif, 'Playfair Display', Georgia, serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.015em;
}

/* Subtitle matching Image 1 */
.modal-card .form-sub,
.modal-subtitle-custom {
  font-family: var(--sans, 'Lato', sans-serif);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--enquiry-text-muted);
  margin-bottom: 22px;
}

/* Quick tab selector inside modal - All 5 buttons always visible, NO horizontal scroll */
.modal-enquiry-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  overflow: visible;
  padding: 0;
  margin-bottom: 22px;
  width: 100%;
}
.modal-enquiry-pills::-webkit-scrollbar {
  display: none;
}
.modal-enquiry-pill {
  flex: 1 1 calc(25% - 7px);
  min-width: 110px;
  background: #24201d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #bbb3a8;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}
.modal-enquiry-pill:hover {
  color: #ffffff;
  border-color: rgba(235, 94, 40, 0.4);
  background: #2c2724;
}
.modal-enquiry-pill.active {
  background: #eb5e28;
  color: #ffffff;
  border-color: #eb5e28;
  box-shadow: 0 4px 14px rgba(235, 94, 40, 0.4);
}

/* Form Groups & Labels matching Image 1 */
.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  font-family: var(--sans, 'Lato', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--enquiry-text-muted);
  margin-bottom: 7px;
}

.form-group label .req-star {
  color: var(--enquiry-paprika);
  margin-left: 2px;
}

/* Inputs & Textareas matching Image 1 */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--enquiry-input-bg);
  border: 1px solid var(--enquiry-input-border);
  border-radius: var(--enquiry-btn-radius);
  padding: 12px 14px;
  color: #f7f4ef;
  font-family: var(--sans, 'Lato', sans-serif);
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--enquiry-placeholder);
  opacity: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--enquiry-input-border-focus);
  box-shadow: 0 0 0 2px rgba(235, 94, 40, 0.22);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
}

.form-group select option {
  background: #252422;
  color: #fff;
}

.form-group textarea {
  min-height: 96px;
  resize: vertical;
}

/* Primary Button matching Image 1 */
.enquiry-submit-btn,
.btn-primary.quote-btn-exact {
  width: 100%;
  background: var(--enquiry-paprika) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--enquiry-btn-radius) !important;
  padding: 14px 20px !important;
  font-family: var(--sans, 'Lato', sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 14px var(--enquiry-paprika-glow) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 6px !important;
  margin-bottom: 24px !important;
}

.enquiry-submit-btn:hover,
.btn-primary.quote-btn-exact:hover {
  background: var(--enquiry-paprika-hover) !important;
  box-shadow: 0 6px 20px rgba(235, 94, 40, 0.45) !important;
  transform: translateY(-1px) !important;
}

.enquiry-submit-btn:active,
.btn-primary.quote-btn-exact:active {
  transform: translateY(0) !important;
}

/* ============ 2. DRAG-AND-DROP FILE UPLOADER ============ */
.file-dropzone {
  border: 1.5px dashed rgba(235, 94, 40, 0.45);
  background: rgba(235, 94, 40, 0.03);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.file-dropzone:hover,
.file-dropzone.dragover {
  border-color: var(--enquiry-paprika);
  background: rgba(235, 94, 40, 0.08);
}

.dropzone-icon {
  color: var(--enquiry-paprika);
  margin-bottom: 8px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.file-dropzone:hover .dropzone-icon {
  transform: translateY(-2px);
}

.dropzone-text {
  font-family: var(--sans, 'Lato', sans-serif);
  font-size: 12.5px;
  color: #f7f4ef;
  margin-bottom: 4px;
}

.dropzone-highlight {
  color: var(--enquiry-paprika);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dropzone-sub {
  font-size: 11px;
  color: var(--enquiry-text-muted);
}

.file-preview-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #25221f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #fff;
  transition: border-color 0.2s ease;
}

.file-preview-item:hover {
  border-color: rgba(235, 94, 40, 0.35);
}

.file-preview-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.file-preview-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.file-preview-thumb {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.file-preview-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.file-preview-size {
  color: var(--enquiry-text-muted);
  font-size: 11px;
  flex-shrink: 0;
}

.file-remove-btn {
  background: transparent;
  border: none;
  color: #9c958c;
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.file-remove-btn:hover {
  color: #eb5e28;
  background: rgba(235, 94, 40, 0.15);
}

/* ============ 3. CONTACT PAGE & CTA BUTTONS BAR ============ */
.enquiry-cta-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 34px;
}

@media (max-width: 980px) {
  .enquiry-cta-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .enquiry-cta-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.enquiry-cta-btn {
  background: #252422;
  border: 1px solid rgba(255, 252, 242, 0.12);
  border-radius: 10px;
  padding: 18px 14px;
  color: #ccc5b9;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.enquiry-cta-btn:hover {
  background: #2c2a27;
  border-color: rgba(235, 94, 40, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
}

.enquiry-cta-btn.active {
  background: #eb5e28;
  border-color: #eb5e28;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(235, 94, 40, 0.35);
  transform: translateY(-2px);
}

.enquiry-cta-btn .cta-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  color: #eb5e28;
}

.enquiry-cta-btn:hover .cta-icon-wrap {
  background: rgba(235, 94, 40, 0.15);
  border-color: rgba(235, 94, 40, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.enquiry-cta-btn.active .cta-icon-wrap {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: scale(1.06);
}

.cta-svg-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.85;
  display: block;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.enquiry-cta-btn:hover .cta-svg-icon {
  stroke: #ffffff;
  transform: scale(1.08);
}

.enquiry-cta-btn.active .cta-svg-icon {
  stroke: #ffffff;
}

.enquiry-cta-btn .cta-label {
  font-family: var(--sans, 'Lato', sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.enquiry-cta-btn .cta-badge {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.enquiry-cta-btn.active .cta-badge {
  color: #ffebd8;
}

/* ============ BESPOKE ATELIER COMMISSION STATUS RIBBON (NO LOGO) ============ */
.form-status-bar,
.form-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, rgba(235, 94, 40, 0.09) 0%, rgba(37, 36, 34, 0.6) 100%);
  border: 1px solid rgba(235, 94, 40, 0.24);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.form-status-live {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-status-live .live-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.75);
  display: inline-block;
  animation: liveDotPulse 2.2s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px rgba(34, 197, 94, 0.8); }
  50% { opacity: 0.45; transform: scale(0.85); box-shadow: 0 0 4px rgba(34, 197, 94, 0.4); }
}

.form-status-live .live-title {
  font-family: var(--sans, 'Lato', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.form-status-live .live-tag {
  font-family: var(--sans, 'Lato', sans-serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #EB5E28;
  background: rgba(235, 94, 40, 0.12);
  border: 1px solid rgba(235, 94, 40, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
}

.form-status-guarantees {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans, 'Lato', sans-serif);
  font-size: 11.5px;
  color: #CCC5B9;
}

.form-status-guarantees .guarantee-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ded9d0;
  font-weight: 500;
}

.form-status-guarantees .guarantee-chip strong {
  color: #EB5E28;
  font-weight: 700;
}

.form-status-guarantees .guarantee-sep {
  color: rgba(204, 197, 185, 0.35);
  font-size: 11px;
}

@media (max-width: 680px) {
  .form-status-bar,
  .form-brand-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }
  .form-status-guarantees {
    flex-wrap: wrap;
    font-size: 11px;
    gap: 6px;
  }
}


/* ============ 4. FORM CARD CONTAINER ============ */
.enquiry-container-card {
  background: #1c1917;
  border: 1px solid rgba(235, 94, 40, 0.35);
  border-radius: var(--enquiry-border-radius);
  padding: 42px 40px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65);
  position: relative;
  transition: border-color 0.3s ease;
}

@media (max-width: 640px) {
  .enquiry-container-card {
    padding: 26px 20px;
  }
}

.enquiry-form-pane {
  display: none;
  animation: enquiryFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.enquiry-form-pane.active {
  display: block;
}

@keyframes enquiryFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.enquiry-pane-head {
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
}

.enquiry-pane-head h3 {
  font-family: var(--serif, 'Playfair Display', Georgia, serif);
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.enquiry-pane-head p {
  font-family: var(--sans, 'Lato', sans-serif);
  font-size: 14px;
  color: var(--enquiry-text-muted);
  line-height: 1.55;
  margin: 0;
}

.enquiry-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 680px) {
  .enquiry-grid-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Atelier Direct Sidebar Cards */
.contact-sidebar-card {
  background: #252422;
  border: 1px solid rgba(255, 252, 242, 0.12);
  border-radius: 12px;
  padding: 32px 28px;
  color: #ccc5b9;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-sidebar-card h4 {
  font-family: var(--serif, 'Playfair Display', Georgia, serif);
  font-size: 20px;
  color: #fffcf2;
  margin-bottom: 14px;
}

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(235, 94, 40, 0.12);
  border: 1px solid rgba(235, 94, 40, 0.3);
  color: #eb5e28;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-method-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9c958c;
  margin-bottom: 4px;
}

.contact-method-val {
  font-size: 14.5px;
  color: #fffcf2;
  font-weight: 500;
}

.contact-method-val a:hover {
  color: #eb5e28;
  text-decoration: underline;
}

.atelier-guarantee-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(235, 94, 40, 0.08);
  border: 1px solid rgba(235, 94, 40, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: #f7f4ef;
  line-height: 1.5;
  margin-top: 14px;
}

.guarantee-icon-wrap {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 6px;
  background: rgba(235, 94, 40, 0.14);
  border: 1px solid rgba(235, 94, 40, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eb5e28;
  flex-shrink: 0;
}
.guarantee-icon-wrap svg {
  display: block;
}

/* ============ 6. RESPONSIVE FULLSCREEN MODAL & MOBILE UX ============ */
@media (max-width: 768px) {
  .modal-backdrop {
    padding: 0 !important;
    margin: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    background: #141210 !important;
  }

  /* Fullscreen mobile modal - edge to edge with sticky site-matching navbar */
  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 90px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    transform: none !important;
  }

  .modal-backdrop.active .modal-card,
  .modal-backdrop.open .modal-card {
    transform: none !important;
  }

  /* Navbar on mobile matching site header navbar */
  .modal-header-nav {
    min-height: 60px;
    padding: max(10px, env(safe-area-inset-top, 10px)) 20px 10px;
    background: #141210;
    border-bottom: 1px solid rgba(204, 197, 185, 0.15);
  }

  .modal-brand-logo {
    height: 44px;
    max-height: 48px;
  }

  .modal-close {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(204, 197, 185, 0.3) !important;
    background: transparent !important;
  }

  /* Form content padding below navbar */
  .modal-card > :not(.modal-header-nav) {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* 2-column touch-friendly pill buttons */
  .modal-enquiry-pills {
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 22px;
    width: 100%;
  }

  .modal-enquiry-pill {
    flex: 1 1 calc(50% - 8px);
    min-width: 110px;
    font-size: 12px;
    padding: 10px 8px;
    border-radius: 8px;
  }

  .modal-enquiry-pill:last-child:nth-child(odd) {
    flex: 1 1 100%;
  }

  /* Extra scroll clearance after submit button (3-5%+ beyond button for effortless viewing) */
  .modal-card .enquiry-submit-btn,
  .modal-card .btn-primary.quote-btn-exact {
    margin-top: 10px !important;
    margin-bottom: 38px !important;
    padding: 15px 20px !important;
    font-size: 14px !important;
  }

  /* iOS Safari auto-zoom prevention */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 420px) {
  .modal-header-nav {
    padding-left: 16px;
    padding-right: 16px;
  }
  .modal-card > :not(.modal-header-nav) {
    padding-left: 16px;
    padding-right: 16px;
  }
  .modal-enquiry-pill {
    font-size: 11px;
    padding: 9px 5px;
  }
  .modal-card h3,
  .modal-title-custom {
    font-size: 24px;
  }
}
