/* ==========================================================================
   Sripati Gold — Enquiry modal (shared by Manufacturing + Collection)
   Palette: #2C1D0D brown, #FFA900 gold, #FFE7B7 cream-gold, #F8F7F3 page
   ========================================================================== */

.enq-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 10, 4, 0.72);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.enq-overlay[hidden] { display: none; }
.enq-overlay.is-open { opacity: 1; }

.enq-dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: #F8F7F3;
  border-radius: 6px;
  border-top: 4px solid #FFA900;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  transform: translateY(18px);
  transition: transform 0.25s ease;
}
.enq-overlay.is-open .enq-dialog { transform: translateY(0); }

.enq-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(44, 29, 13, 0.18);
  background: transparent;
  color: #2C1D0D;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.enq-close:hover { background: #2C1D0D; color: #F8F7F3; }
.enq-close svg { width: 18px; height: 18px; }

.enq-eyebrow {
  font-family: var(--font-body, sans-serif);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8C877E;
  margin-bottom: 0.5rem;
}
.enq-title {
  font-family: var(--font-display, serif);
  font-weight: 400;
  font-size: 1.875rem;                 /* 30px */
  line-height: 1.15;
  color: #2C1D0D;
  margin-bottom: 1.75rem;
}

/* ---------------- Form ---------------- */
.enq-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
/* display:grid overrides the [hidden] attribute unless we say otherwise */
.enq-form[hidden] { display: none; }
.enq-field { display: flex; flex-direction: column; gap: 0.4rem; }
.enq-field--full { grid-column: 1 / -1; }

.enq-field label {
  font-family: var(--font-body, sans-serif);
  font-weight: 500;
  font-size: 0.9375rem;
  color: #2C1D0D;
}
.enq-field label span[aria-hidden] { color: #FFA900; }
.enq-optional { color: #8C877E; font-weight: 400; }

.enq-hint {
  font-family: var(--font-body, sans-serif);
  font-size: 0.8125rem;
  color: #8C877E;
  margin-top: -0.1rem;
}

.enq-field input,
.enq-field select,
.enq-field textarea {
  width: 100%;
  font-family: var(--font-body, sans-serif);
  font-size: 1rem;
  color: #2C1D0D;
  background: #FFFFFF;
  border: 1px solid rgba(44, 29, 13, 0.18);
  border-radius: 3px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.enq-field textarea { resize: vertical; min-height: 88px; }
.enq-field input:focus,
.enq-field select:focus,
.enq-field textarea:focus {
  outline: none;
  border-color: #FFA900;
  box-shadow: 0 0 0 3px rgba(255, 169, 0, 0.18);
}
.enq-field input.is-invalid,
.enq-field select.is-invalid { border-color: #C0392B; }

/* honeypot */
.enq-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.enq-error {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-body, sans-serif);
  font-size: 0.9375rem;
  color: #C0392B;
}
.enq-error[hidden] { display: none; }

.enq-submit {
  grid-column: 1 / -1;
  justify-self: start;
  font-family: var(--font-body, sans-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  color: #2C1D0D;
  background: #FFA900;
  border: none;
  border-radius: 3px;
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.enq-submit:hover { background: #FFE7B7; }
.enq-submit[disabled] { opacity: 0.6; cursor: progress; }

.enq-note {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-body, sans-serif);
  font-size: 0.875rem;
  color: #8C877E;
}

/* ---------------- Success state ---------------- */
.enq-success { text-align: center; padding-block: 1rem; }
.enq-success[hidden] { display: none; }
.enq-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 169, 0, 0.18);
  color: #FFA900;
  margin-bottom: 1rem;
}
.enq-tick svg { width: 28px; height: 28px; }
.enq-success h3 {
  font-family: var(--font-display, serif);
  font-weight: 400;
  font-size: 1.625rem;
  color: #2C1D0D;
  margin-bottom: 0.5rem;
}
.enq-success p {
  font-family: var(--font-body, sans-serif);
  font-size: 1rem;
  color: rgba(44, 29, 13, 0.75);
  margin-bottom: 1.5rem;
}
.enq-success .enq-submit { justify-self: center; display: inline-block; }

@media (max-width: 620px) {
  .enq-dialog { padding: 2rem 1.25rem 1.5rem; }
  .enq-title { font-size: 1.5rem; }
  .enq-form { grid-template-columns: 1fr; }
}
