/* Enquiry form and other additions to the home page. Plain CSS so output.css never needs rebuilding. */

.plan-desc { min-height: 3.75rem; } /* keeps prices and Buy buttons in line across plan cards */

.enq-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(20, 21, 24, 0.6);
}
.enq-overlay[hidden] { display: none; }
body.enq-open { overflow: hidden; }

.enq-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto 0;
  padding: 28px 24px 24px;
  background: #fff;
  color: #323438;
  border-radius: 12px;
  border-top: 6px solid #ffa700;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.enq-dialog h2 { margin: 0 0 4px; font-size: 1.6rem; font-weight: 800; }
.enq-sub { margin: 0 0 18px; color: #6b6f76; font-size: 0.95rem; }
.enq-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: #6b6f76;
  cursor: pointer;
}
.enq-close:hover { background: #f1f2f4; color: #323438; }

.enq-form { display: flex; flex-direction: column; gap: 14px; }
.enq-field label, .enq-label { display: block; margin-bottom: 4px; font-size: 0.9rem; font-weight: 600; }
.enq-field .req { color: #c2410c; }
.enq-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c9ccd2;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: inherit;
}
.enq-input:focus { outline: 2px solid #ffa700; outline-offset: 0; border-color: #ffa700; }
.enq-input[readonly] { background: #f6f7f8; }
textarea.enq-input { min-height: 80px; resize: vertical; }

.enq-row { display: flex; gap: 8px; align-items: stretch; }
.enq-row .enq-input { flex: 1; min-width: 0; }
.enq-prefix {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #c9ccd2;
  border-radius: 8px;
  background: #f6f7f8;
  color: #6b6f76;
}
.enq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.enq-grid .full { grid-column: 1 / -1; }

.enq-btn {
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: #323438;
  color: #fff;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.enq-btn:hover:not(:disabled) { background: #1d1e21; }
.enq-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.enq-btn.primary { width: 100%; padding: 12px; background: #ffa700; font-size: 1.05rem; }
.enq-btn.primary:hover:not(:disabled) { background: #e69500; }
.enq-link { padding: 0; border: 0; background: none; color: #b37400; font: inherit; font-size: 0.9rem; text-decoration: underline; cursor: pointer; }

.enq-hint { margin: 6px 0 0; font-size: 0.85rem; color: #6b6f76; }
.enq-hint.error { color: #b42318; }
.enq-hint.ok { color: #157f3b; font-weight: 600; }
.enq-test { margin: 8px 0 0; padding: 8px 10px; border: 1px dashed #e0a100; border-radius: 6px; background: #fff8e6; font-size: 0.85rem; }
.enq-verified { display: inline-flex; align-items: center; gap: 6px; color: #157f3b; font-weight: 600; }

.enq-alert { padding: 10px 12px; border-radius: 8px; background: #fdecea; color: #b42318; font-size: 0.9rem; }
.enq-alert[hidden] { display: none; }
.enq-success { text-align: center; padding: 16px 0 4px; }
.enq-success .tick {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f6ec;
  color: #157f3b;
  font-size: 1.8rem;
}
.enq-alt { margin: 4px 0 0; text-align: center; font-size: 0.85rem; color: #6b6f76; }
.enq-alt a { color: #b37400; }
.enq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 480px) {
  .enq-dialog { padding: 24px 16px 18px; }
  .enq-grid { grid-template-columns: 1fr; }
  .enq-row { flex-wrap: wrap; }
  .enq-row .enq-btn { width: 100%; }
}
