/* ════════════════════════════════════════════════
   MOANA WEDDING BOOKING — Formulaire client
   Version Premium
   ════════════════════════════════════════════════ */

/* ─ Variables ─ */
:root {
  --mwb-primary:      #8c7b6b;
  --mwb-primary-dark: #6b5c4e;
  --mwb-accent:       #c9a96e;
  --mwb-accent-light: #f0e4ce;
  --mwb-success:      #5a8a5a;
  --mwb-error:        #c0392b;
  --mwb-bg:           #faf8f5;
  --mwb-bg-card:      #ffffff;
  --mwb-border:       #e8e0d6;
  --mwb-border-focus: #c9a96e;
  --mwb-text:         #2c2520;
  --mwb-text-light:   #8a7d74;
  --mwb-text-muted:   #b0a89e;
  --mwb-radius:       12px;
  --mwb-radius-sm:    8px;
  --mwb-shadow:       0 4px 24px rgba(44,37,32,.08);
  --mwb-shadow-hover: 0 8px 32px rgba(44,37,32,.14);
  --mwb-font:         inherit;
}

/* ─ Container ─ */
.mwb-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  font-family: var(--mwb-font);
  color: var(--mwb-text);
  background: var(--mwb-bg);
}

/* ════════════════════════════════════════════════
   BARRE DE PROGRESSION
   ════════════════════════════════════════════════ */
.mwb-progress {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
  position: relative;
  padding: 0 16px;
}
.mwb-progress::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--mwb-border);
  z-index: 0;
}
.mwb-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 140px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mwb-text-muted);
  letter-spacing: .4px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.mwb-progress-step span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--mwb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: var(--mwb-bg);
  font-size: 14px;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  color: var(--mwb-text-muted);
}
.mwb-progress-step::before { display: none; }

.mwb-progress-step.active span {
  background: var(--mwb-accent);
  border-color: var(--mwb-accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(201,169,110,.2);
}
.mwb-progress-step.active {
  color: var(--mwb-text);
  font-weight: 700;
}
.mwb-progress-step.completed span {
  background: var(--mwb-primary);
  border-color: var(--mwb-primary);
  color: #fff;
  font-size: 0;
}
.mwb-progress-step.completed span::after {
  content: '✓';
  font-size: 15px;
}
.mwb-progress-step.completed {
  color: var(--mwb-primary);
}

/* ════════════════════════════════════════════════
   ÉTAPES
   ════════════════════════════════════════════════ */
.mwb-step {
  animation: mwbFadeIn .4s cubic-bezier(.4,0,.2,1);
}
@keyframes mwbFadeIn {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}
.mwb-step h2 {
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--mwb-text);
}
.mwb-subtitle {
  font-size: 14px;
  color: var(--mwb-text-light);
  margin: 0 0 28px;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════
   CARTES PACKAGES
   ════════════════════════════════════════════════ */
.mwb-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.mwb-package-card {
  cursor: pointer;
  border: 1.5px solid var(--mwb-border);
  border-radius: var(--mwb-radius);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  background: var(--mwb-bg-card);
  display: block;
  position: relative;
  overflow: hidden;
}
.mwb-package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mwb-accent), var(--mwb-primary));
  opacity: 0;
  transition: opacity .25s;
}
.mwb-package-card:hover {
  border-color: var(--mwb-accent);
  box-shadow: var(--mwb-shadow-hover);
  transform: translateY(-3px);
}
.mwb-package-card:hover::before { opacity: 1; }
.mwb-package-card:has(input:checked) {
  border-color: var(--mwb-accent);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15), var(--mwb-shadow);
}
.mwb-package-card:has(input:checked)::before { opacity: 1; }
.mwb-package-card input[type="radio"] { display: none; }

.mwb-card-inner { padding: 22px 20px; }
.mwb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 8px;
}
.mwb-card-header h3 {
  font-size: 17px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -.2px;
  line-height: 1.3;
}
.mwb-duration {
  background: var(--mwb-accent-light);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--mwb-primary-dark);
  letter-spacing: .3px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.mwb-card-desc {
  font-size: 13px;
  color: var(--mwb-text-light);
  margin: 0 0 18px;
  line-height: 1.65;
}
.mwb-card-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--mwb-accent);
  letter-spacing: -.5px;
}
.mwb-card-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--mwb-text-muted);
  letter-spacing: 0;
}

/* ════════════════════════════════════════════════
   OPTIONS
   ════════════════════════════════════════════════ */
.mwb-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.mwb-option-card {
  cursor: pointer;
  border: 1.5px solid var(--mwb-border);
  border-radius: var(--mwb-radius-sm);
  background: var(--mwb-bg-card);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: block;
  position: relative;
}
.mwb-option-card:hover {
  border-color: var(--mwb-accent);
  box-shadow: var(--mwb-shadow);
  transform: translateY(-2px);
}
.mwb-option-card:has(input:checked) {
  border-color: var(--mwb-accent);
  background: linear-gradient(135deg, rgba(201,169,110,.06), rgba(140,123,107,.04));
  box-shadow: 0 0 0 3px rgba(201,169,110,.12);
}
.mwb-option-card input[type="checkbox"] { display: none; }
.mwb-option-inner {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-radius: calc(var(--mwb-radius-sm) - 1px);
}
.mwb-option-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.mwb-option-price {
  font-size: 13px;
  color: var(--mwb-accent);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─ Checkmark visuel ─ */
.mwb-option-card:has(input:checked) .mwb-option-name::before {
  content: '✓ ';
  color: var(--mwb-accent);
  font-weight: 700;
}

/* ─ Récap prix ─ */
.mwb-price-summary {
  background: linear-gradient(135deg, rgba(201,169,110,.08), rgba(140,123,107,.05));
  border: 1px solid var(--mwb-accent-light);
  border-radius: var(--mwb-radius);
  padding: 18px 22px;
  margin-bottom: 32px;
}
.mwb-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 15px;
  color: var(--mwb-text-light);
}
.mwb-price-row span:last-child {
  font-weight: 600;
  color: var(--mwb-text);
}
.mwb-price-row.mwb-total {
  border-top: 1px solid var(--mwb-accent-light);
  margin-top: 10px;
  padding-top: 14px;
  font-weight: 700;
  font-size: 18px;
  color: var(--mwb-text);
}
.mwb-price-row.mwb-total span:last-child {
  color: var(--mwb-accent);
  font-size: 20px;
}

/* ════════════════════════════════════════════════
   CALENDRIER
   ════════════════════════════════════════════════ */
#mwb-calendar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
}
.mwb-datepicker {
  text-align: center;
  padding: 13px 24px;
  border: 1.5px solid var(--mwb-border);
  border-radius: 50px;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  background: var(--mwb-bg-card);
  transition: border-color .2s, box-shadow .2s;
  color: var(--mwb-text);
  font-family: inherit;
}
.mwb-datepicker:focus {
  outline: none;
  border-color: var(--mwb-accent);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}
.mwb-datepicker::placeholder { color: var(--mwb-text-muted); }

.ui-datepicker {
  font-family: inherit;
  z-index: 9999 !important;
  border-radius: var(--mwb-radius) !important;
  border: 1px solid var(--mwb-border) !important;
  box-shadow: var(--mwb-shadow-hover) !important;
  overflow: hidden;
  padding: 0 !important;
}
.ui-datepicker-header {
  background: linear-gradient(135deg, var(--mwb-primary), var(--mwb-primary-dark)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 12px 10px !important;
}
.ui-datepicker-title { color: #fff !important; font-weight: 600; letter-spacing: .3px; }
.ui-datepicker-prev, .ui-datepicker-next {
  top: 10px !important;
  cursor: pointer;
}
.ui-datepicker-prev span, .ui-datepicker-next span { color: #fff !important; }
.ui-datepicker table { margin: 8px !important; }
.ui-datepicker th {
  color: var(--mwb-text-muted) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  padding: 6px 4px !important;
}
.ui-datepicker td { padding: 2px !important; }
.ui-datepicker td a, .ui-datepicker td span {
  border-radius: 6px !important;
  text-align: center !important;
  transition: background .15s !important;
  border: none !important;
  font-size: 13px !important;
}
.ui-state-default {
  background: transparent !important;
  color: var(--mwb-text) !important;
  border: none !important;
}
.ui-state-hover {
  background: var(--mwb-accent-light) !important;
  color: var(--mwb-primary-dark) !important;
}
.ui-state-active {
  background: var(--mwb-accent) !important;
  border-color: var(--mwb-accent) !important;
  color: #fff !important;
  font-weight: 700 !important;
}
.ui-datepicker .mwb-date-unavailable a,
.ui-datepicker .mwb-date-unavailable span {
  background: #f5f0eb !important;
  color: var(--mwb-text-muted) !important;
  text-decoration: line-through !important;
  cursor: not-allowed !important;
  opacity: .6 !important;
}

/* Feedback date */
#mwb-date-feedback {
  text-align: center;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.mwb-available {
  background: #eaf4ea;
  color: #2d7a2d;
  padding: 8px 20px;
  border-radius: 50px;
  display: inline-block;
}
.mwb-unavailable {
  background: #fdecea;
  color: var(--mwb-error);
  padding: 8px 20px;
  border-radius: 50px;
  display: inline-block;
}
.mwb-loading {
  color: var(--mwb-text-muted);
  font-style: italic;
}

/* ════════════════════════════════════════════════
   RÉCAPITULATIF FINAL
   ════════════════════════════════════════════════ */
.mwb-recap {
  background: linear-gradient(135deg, rgba(201,169,110,.08), rgba(140,123,107,.05));
  border: 1px solid var(--mwb-accent-light);
  border-radius: var(--mwb-radius);
  padding: 22px 26px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.mwb-recap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mwb-accent), var(--mwb-primary));
}
.mwb-recap h3 {
  font-size: 16px;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -.1px;
}
.mwb-recap-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mwb-recap-table td { padding: 7px 4px; }
.mwb-recap-table td:first-child {
  color: var(--mwb-text-light);
  font-weight: 500;
  width: 40%;
}
.mwb-recap-table td:last-child { text-align: right; font-weight: 600; }
.mwb-recap-total td {
  border-top: 1px solid var(--mwb-accent-light);
  padding-top: 12px;
  font-size: 16px;
  font-weight: 700;
}
.mwb-recap-total td:last-child { color: var(--mwb-accent); font-size: 18px; }

/* ════════════════════════════════════════════════
   FORMULAIRE CONTACT
   ════════════════════════════════════════════════ */
.mwb-form-row { margin-bottom: 20px; }
.mwb-form-row.mwb-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mwb-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--mwb-text);
  letter-spacing: .2px;
  text-transform: uppercase;
}
.mwb-field input[type="text"],
.mwb-field input[type="email"],
.mwb-field input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--mwb-border);
  border-radius: var(--mwb-radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--mwb-bg-card);
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  color: var(--mwb-text);
}
.mwb-field input:focus {
  outline: none;
  border-color: var(--mwb-accent);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}
.mwb-field input::placeholder { color: var(--mwb-text-muted); }

/* CGV */
.mwb-cgv-field { margin-top: 10px; }
.mwb-cgv-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mwb-text-light);
}
.mwb-cgv-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--mwb-accent);
  cursor: pointer;
}
.mwb-cgv-label a {
  color: var(--mwb-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.required { color: var(--mwb-error); margin-left: 2px; }

/* ─ Erreur ─ */
.mwb-error-msg {
  background: #fdecea;
  border: 1px solid #f5b7b1;
  color: var(--mwb-error);
  border-radius: var(--mwb-radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 16px;
  font-weight: 500;
}

/* ════════════════════════════════════════════════
   BOUTONS NAVIGATION
   ════════════════════════════════════════════════ */
.mwb-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}
.mwb-btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  font-family: inherit;
  letter-spacing: .3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mwb-btn-next,
.mwb-btn-submit {
  background: linear-gradient(135deg, var(--mwb-accent), #b8924a);
  color: #fff;
  margin-left: auto;
  box-shadow: 0 4px 16px rgba(201,169,110,.35);
}
.mwb-btn-next:hover:not(:disabled),
.mwb-btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #d4b07a, var(--mwb-accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,.45);
}
.mwb-btn-next:disabled {
  background: var(--mwb-border);
  color: var(--mwb-text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.mwb-btn-prev {
  background: transparent;
  color: var(--mwb-text-light);
  border: 1.5px solid var(--mwb-border);
  box-shadow: none;
}
.mwb-btn-prev:hover {
  background: var(--mwb-bg);
  color: var(--mwb-text);
  border-color: var(--mwb-primary);
}

/* ════════════════════════════════════════════════
   SUCCÈS
   ════════════════════════════════════════════════ */
.mwb-success-wrap {
  text-align: center;
  padding: 56px 24px;
}
.mwb-success-icon {
  font-size: 72px;
  margin-bottom: 24px;
  display: block;
  animation: mwbBounce .6s cubic-bezier(.4,0,.2,1);
}
@keyframes mwbBounce {
  0%   { transform: scale(0); opacity:0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity:1; }
}
.mwb-success-wrap h2 {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--mwb-primary);
}
.mwb-success-wrap p {
  font-size: 15px;
  color: var(--mwb-text-light);
  line-height: 1.8;
  margin-bottom: 14px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ════════════════════════════════════════════════
   RESPONSIVE MOBILE
   ════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .mwb-container { padding: 20px 14px 40px; }
  .mwb-packages-grid { grid-template-columns: 1fr; }
  .mwb-options-grid  { grid-template-columns: 1fr; }
  .mwb-form-row.mwb-two-col { grid-template-columns: 1fr; }
  .mwb-progress { margin-bottom: 32px; }
  .mwb-progress-step { font-size: 10px; }
  .mwb-progress-step span { width: 30px; height: 30px; font-size: 12px; }
  .mwb-btn { padding: 12px 22px; font-size: 14px; }
  .mwb-step h2 { font-size: 20px; }
  .mwb-card-price { font-size: 20px; }
  .mwb-recap { padding: 16px 16px; }
}
