/* ── diveshack enquiry form section ─────────────────────────────────────── */
/* Scoped with .ds-enquiry prefix to avoid conflicts with existing page CSS  */

.ds-enquiry {
  padding: 4.5rem 0 3rem;
  border-top: 1px solid rgba(30,115,190,.18);
}

.ds-enquiry-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .ds-enquiry-inner { grid-template-columns: 1fr; gap: 2rem; }
  .ds-enquiry-header { position: static !important; }
}

/* ── Left column ── */
.ds-enquiry-header { position: sticky; top: 2rem; }

.ds-enquiry-kicker {
  font-family: 'Roboto Mono', monospace;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #00d68f;
  margin-bottom: .65rem;
}

.ds-enquiry-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .9rem;
}

.ds-enquiry-header > p {
  font-size: .8rem;
  color: #8aaccc;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.ds-reply-promise {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .85rem .95rem;
  background: rgba(0,214,143,.06);
  border: 1px solid rgba(0,214,143,.16);
  border-radius: 4px;
  margin-bottom: 1.25rem;
}
.ds-reply-promise svg { flex-shrink: 0; margin-top: 2px; }
.ds-reply-promise span { font-size: .74rem; color: #b0c8e0; line-height: 1.55; }
.ds-reply-promise strong { color: #00d68f; }

.ds-contact-alt { font-size: .74rem; color: #8aaccc; line-height: 1.7; }
.ds-contact-alt a { color: #25a0e8; text-decoration: none; }
.ds-contact-alt a:hover { text-decoration: underline; }

/* ── Form card ── */
.ds-enquiry-form {
  background: #0d1f35;
  border: 1px solid rgba(30,115,190,.22);
  border-radius: 6px;
  padding: 2rem;
}

/* ── Course tag ── */
.ds-course-tag {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: rgba(37,160,232,.08);
  border: 1px solid rgba(37,160,232,.22);
  border-radius: 4px;
  padding: .65rem .9rem;
  font-size: .82rem;
  color: #25a0e8;
  font-weight: 600;
}
.ds-course-tag svg { flex-shrink: 0; }

/* ── Form layout ── */
.ds-form-row { margin-bottom: 1.2rem; }
.ds-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 520px) { .ds-two-col { grid-template-columns: 1fr; } }

.ds-form-divider {
  border: none;
  border-top: 1px solid rgba(30,115,190,.18);
  margin: 1.4rem 0;
}

/* ── Fields ── */
.ds-form-field label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8aaccc;
  margin-bottom: .4rem;
}
.ds-form-field label .ds-req { color: #25a0e8; margin-left: 2px; }

.ds-form-field input,
.ds-form-field select,
.ds-form-field textarea {
  width: 100%;
  background: #122840;
  border: 1px solid rgba(30,115,190,.22);
  border-radius: 4px;
  color: #b0c8e0;
  font-family: 'Open Sans', sans-serif;
  font-size: .83rem;
  padding: .7rem .9rem;
  transition: border-color .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
}
.ds-form-field input::placeholder,
.ds-form-field textarea::placeholder { color: rgba(176,200,224,.28); }
.ds-form-field input:focus,
.ds-form-field select:focus,
.ds-form-field textarea:focus {
  outline: none;
  border-color: #25a0e8;
  background: rgba(37,160,232,.05);
}
.ds-form-field input[type="date"] { color-scheme: dark; }
.ds-form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%238aaccc' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}
.ds-form-field select option { background: #0d1f35; }
.ds-form-field textarea { resize: vertical; min-height: 96px; line-height: 1.55; }

/* ── Validation errors ── */
.ds-field-error {
  font-size: .72rem;
  color: #e8304a;
  margin-top: .35rem;
  display: none;
}
.ds-field-error.visible { display: block; }
.ds-form-field input.ds-invalid,
.ds-form-field select.ds-invalid { border-color: #e8304a; }

/* ── Form footer ── */
.ds-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(30,115,190,.18);
}
.ds-form-privacy {
  font-size: .7rem;
  color: #8aaccc;
  line-height: 1.55;
  max-width: 280px;
}
.ds-form-privacy a { color: #25a0e8; text-decoration: none; }

/* ── Submit button ── */
.ds-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #25a0e8;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: .88rem 1.75rem;
  font-family: 'Open Sans', sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
  position: relative;
}
.ds-btn-submit:hover:not(:disabled) { background: #1e8fd4; transform: translateY(-1px); }
.ds-btn-submit:active { transform: translateY(0); }
.ds-btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* spinner dots */
.ds-btn-dots { display: none; gap: 3px; align-items: center; }
.ds-btn-dots span {
  width: 5px; height: 5px;
  background: rgba(255,255,255,.7);
  border-radius: 50%;
  animation: ds-pulse 1.2s ease-in-out infinite;
}
.ds-btn-dots span:nth-child(2) { animation-delay: .2s; }
.ds-btn-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes ds-pulse { 0%,80%,100%{opacity:.3;transform:scale(.8)} 40%{opacity:1;transform:scale(1)} }

/* ── Global error ── */
.ds-global-error {
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: rgba(232,48,74,.08);
  border: 1px solid rgba(232,48,74,.25);
  border-radius: 4px;
  font-size: .76rem;
  color: #e8304a;
  display: none;
}
.ds-global-error.visible { display: block; }

/* ── Success state ── */
.ds-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
  display: none;
}
.ds-success.visible { display: block; }
.ds-success-icon {
  width: 52px;
  height: 52px;
  background: rgba(0,214,143,.1);
  border: 1px solid rgba(0,214,143,.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.ds-success h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .6rem;
}
.ds-success p {
  font-size: .8rem;
  color: #8aaccc;
  line-height: 1.65;
  max-width: 360px;
  margin: 0 auto .9rem;
}
.ds-success .ds-copy-note {
  font-size: .72rem;
  color: #00d68f;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
