/* BOOKING FORM – 3D Purple Pro (with photo previews) */
:root {
  --ml-brand: #5e0a74;
  --ml-brand-dk: #430655;
  --ml-ink: #111;
  --ml-bg: #fff;
  --ml-soft: #f7f2ff;
  --ml-ring: rgba(94, 10, 116, 0.18);
  --ml-border: rgba(94, 10, 116, 0.35);
}

.ml-booking {
  max-width: 1200px;
  margin: 40px auto;
  background: var(--ml-bg);
  border: 2px solid var(--ml-brand);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  padding: 28px;
}
.ml-title {
  margin: 0 0 22px;
  font:
    800 28px/1.2 ui-sans-serif,
    system-ui,
    Segoe UI,
    Roboto,
    Arial;
  color: var(--ml-brand);
  text-align: center;
}
.ml-title span {
  color: var(--ml-brand-dk);
}

/* Grid compacto sin huecos */
.ml-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.ml-grid > .ml-field {
  min-width: 0;
}
.ml-col-2 {
  grid-column: 1 / -1;
}

.ml-field label,
.ml-fieldset legend {
  display: block;
  font-weight: 800;
  color: var(--ml-brand);
  margin: 0 0 6px;
}
.ml-field input,
.ml-field select,
.ml-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ml-brand);
  border-radius: 12px;
  background: #faf7ff;
  color: var(--ml-ink);
  font:
    600 16px/1.25 ui-sans-serif,
    system-ui,
    Segoe UI,
    Roboto,
    Arial;
  outline: none;
  transition:
    box-shadow 0.2s,
    background 0.2s,
    transform 0.06s;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.1),
    0 6px 14px rgba(0, 0, 0, 0.14);
  -webkit-appearance: none;
  appearance: none;
}
.ml-field textarea {
  min-height: 110px;
  resize: vertical;
}

/* Flecha select */
.ml-field select {
  background-image:
    linear-gradient(180deg, #faf7ff, #faf7ff),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235e0a74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position:
    left 12px center,
    right 12px center;
  padding-left: 40px;
}

.ml-field input:focus,
.ml-field select:focus,
.ml-field textarea:focus {
  background: #fff;
  box-shadow:
    0 0 0 4px var(--ml-ring),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* Fieldset / details */
.ml-fieldset {
  border: 2px solid var(--ml-brand);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 18px 0;
  background: var(--ml-soft);
}
.ml-details {
  border: 2px solid var(--ml-brand);
  border-radius: 14px;
  background: var(--ml-soft);
  padding: 12px 14px;
  margin: 18px 0;
}
.ml-details > summary {
  cursor: pointer;
  user-select: none;
  color: var(--ml-brand);
  font:
    800 18px/1.1 ui-sans-serif,
    system-ui,
    Segoe UI,
    Roboto,
    Arial;
  outline: none;
}
.ml-details[open] {
  box-shadow: 0 0 0 4px var(--ml-ring);
}

/* Check grids */
.ml-checkgrid {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.ml-checkrow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 12px;
  border: 1px dashed var(--ml-border);
  border-radius: 12px;
  background: #fff;
}
.ml-checkrow label {
  margin: 0;
  color: #222;
  font-weight: 700;
}
.ml-checkrow input[type="checkbox"],
.ml-checkrow input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: var(--ml-brand);
  cursor: pointer;
}

/* Grouped extras */
.ml-groupgrid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.ml-group h4 {
  margin: 0 0 8px;
  color: var(--ml-brand-dk);
  font:
    800 16px/1 ui-sans-serif,
    system-ui,
    Segoe UI,
    Roboto,
    Arial;
}

/* Photo previews */
.ml-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ml-previews img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Notes */
.ml-note {
  margin: 10px 0 0;
  color: #666;
  font-size: 14px;
  text-align: center;
}

/* 3D button */
#ml-sms-btn {
  display: block;
  margin: 22px auto 0;
  width: clamp(280px, 60%, 460px);
  min-height: 66px;
  padding: 18px 32px;
  font:
    900 18px/1.15 ui-sans-serif,
    system-ui,
    Segoe UI,
    Roboto,
    Arial;
  letter-spacing: 0.3px;
  text-align: center;
  color: #fff;
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 85% 20%, rgba(255, 79, 216, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, #6a1b9a 0%, #430655 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 20px 40px rgba(94, 10, 116, 0.28),
    0 10px 22px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 12px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition:
    transform 0.06s ease,
    box-shadow 0.2s ease,
    filter 0.15s ease;
}
#ml-sms-btn:hover {
  filter: brightness(1.04) saturate(1.04);
  box-shadow:
    0 26px 48px rgba(94, 10, 116, 0.32),
    0 12px 26px rgba(0, 0, 0, 0.24),
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -4px 16px rgba(0, 0, 0, 0.26);
}
#ml-sms-btn:active {
  transform: translateY(1px);
}
#ml-sms-btn:focus-visible {
  outline: 3px solid rgba(255, 79, 216, 0.42);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 900px) {
  .ml-booking {
    margin: 22px 12px;
    padding: 20px;
  }
  .ml-title {
    font-size: 24px;
  }
  #ml-sms-btn {
    width: 90%;
    max-width: 460px;
    min-height: 72px;
    font-size: 19px;
  }
}
@media (max-width: 420px) {
  .ml-booking {
    margin: 16px 8px;
    padding: 16px;
    border-radius: 12px;
  }
}
