/* ====================================================
   ROYAL BOOKING WIDGET — LUXURY CLEAN (V3.4)
   Aesthetics: Apple Minimalist, Light, Rock-Solid
   ==================================================== */

:root {
  --royal-red: #d1001a;
  --royal-black: #1d1d1f;
  --royal-grey: #86868b;
  --royal-light: #f5f5f7;
  --royal-border: #e5e5e7;
  --royal-white: #ffffff;
  --royal-font: 'Inter', -apple-system, sans-serif;
}

.booking-widget {
  max-width: 900px;
  margin: 20px auto;
  background: var(--royal-white);
  border-radius: 16px;
  border: 1px solid var(--royal-border);
  font-family: var(--royal-font);
  color: var(--royal-black);
  text-align: left;
  overflow: hidden;
}

.booking-widget .bw-header { padding: 40px 40px 10px; text-align: center; }
.booking-widget .bw-header h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 5px; }
.booking-widget .bw-header p { color: var(--royal-grey); font-size: 0.9rem; }

.booking-widget .bw-content { padding: 0 40px 40px; }
.booking-widget .brand { color: var(--royal-red); }

/* Progress Stepper */
.booking-widget .bw-progress { display: flex; justify-content: center; align-items: center; margin: 30px 0 50px; }
.booking-widget .bw-step { display: flex; flex-direction: column; align-items: center; position: relative; }
.booking-widget .bw-step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: #eee; color: #999;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.85rem;
}
.booking-widget .bw-step--active .bw-step-dot { background: var(--royal-red); color: #fff; }
.booking-widget .bw-step--done .bw-step-dot { background: #000; color: #fff; }
.booking-widget .bw-step span {
  font-size: 0.65rem; font-weight: 700; color: #999;
  text-transform: uppercase; margin-top: 8px; position: absolute; top: 35px; white-space: nowrap;
}
.booking-widget .bw-step-line { height: 1px; width: 60px; background: #eee; margin: -15px 10px 0; }

/* Grid & Layouts */
.booking-widget .bw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .booking-widget .bw-grid { grid-template-columns: 1fr; } }
.booking-widget .bw-field { margin-bottom: 20px; }
.booking-widget .bw-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }

.booking-widget .apple-input {
  width: 100%; padding: 12px 15px; border-radius: 10px;
  border: 1px solid var(--royal-border); background: #fff;
  font-size: 1rem; transition: 0.2s; box-sizing: border-box;
}
.booking-widget .apple-input:focus { border-color: var(--royal-red); outline: none; }

/* Plan Cards */
.booking-widget .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
@media (max-width: 800px) { .booking-widget .grid-3 { grid-template-columns: 1fr; } }
.booking-widget .bw-plan-card {
  padding: 20px; border: 1px solid var(--royal-border); border-radius: 12px;
  cursor: pointer !important; transition: 0.2s; background: #fff;
  display: flex; flex-direction: column;
}
.booking-widget .bw-plan-card * { pointer-events: none; } /* Ensure click always hits the card */
.booking-widget .bw-plan-card:hover { border-color: var(--royal-red); }
.booking-widget .bw-plan--active { border-color: var(--royal-red); border-width: 2px; background: #fffafa; }

/* Packs Section */
.booking-widget .packs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
@media (max-width: 700px) { .booking-widget .packs-grid { grid-template-columns: 1fr; } }
.booking-widget .pack-item {
  display: flex; gap: 12px; padding: 15px; border: 1px solid var(--royal-border); border-radius: 12px;
  cursor: pointer !important; transition: 0.2s; background: #fff;
}
.booking-widget .pack-item * { pointer-events: none; }
.booking-widget .pack-item:hover { border-color: var(--royal-red); }
.booking-widget .pack-item--active { border-color: var(--royal-red); border-width: 2px; background: #fffafa; }

.booking-widget .pack-details-list { font-size: 0.8rem; color: #666; margin: 10px 0; padding: 0; list-style: none; line-height: 1.5; }
.booking-widget .pack-details-list li { padding-left: 14px; position: relative; margin-bottom: 3px; }
.booking-widget .pack-details-list li::before { content: '•'; position: absolute; left: 0; color: var(--royal-red); }

/* Success Group — RIGID SIZING */
.booking-widget .bw-success { text-align: center; padding: 40px 20px; }
.booking-widget .bw-status-box {
  background: #fffafa; border: 1px solid #ffebeb;
  padding: 20px; border-radius: 12px; margin: 20px auto;
  max-width: 500px; font-size: 0.95rem; color: #444; line-height: 1.5;
}

.booking-widget .btn-group-final { 
  display: flex; justify-content: center; gap: 12px; 
  max-width: 500px; margin: 30px auto 0;
}
@media (max-width: 500px) { .booking-widget .btn-group-final { flex-direction: column; align-items: stretch; } }

.booking-widget .btn-premium {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 15px; border-radius: 8px; font-weight: 700; text-decoration: none; 
  font-size: 0.8rem; transition: 0.2s; text-transform: uppercase;
  height: 44px; min-width: 160px; box-sizing: border-box; flex: 1;
}
.booking-widget .btn-premium svg { 
  width: 16px !important; height: 16px !important; 
  min-width: 16px; min-height: 16px; flex-shrink: 0; 
  display: block; pointer-events: none;
}

/* Base Buttons */
.booking-widget .bw-actions { display: flex; gap: 15px; margin-top: 30px; }
.booking-widget .btn { padding: 14px 25px; border-radius: 10px; font-weight: 700; cursor: pointer; transition: 0.2s; border: none; font-size: 1rem; }
.booking-widget .btn-dark { background: var(--royal-red); color: #fff; flex: 2; }
.booking-widget .btn-outline { background: #fff; border: 1px solid var(--royal-border); color: #000; flex: 1; }
.booking-widget .bw-invalid { border-color: var(--royal-red) !important; }
