/* ============================================================
   Philippine Experience Booking System — Styles
   thephilippineexperience.com
   ============================================================ */

/* ── BASE ────────────────────────────────────────────────── */
.phl-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 48px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
}

.phl-step {
  display: none;
}
.phl-step.active {
  display: block;
}

.phl-step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}

.phl-subtitle {
  color: #666;
  margin: 0 0 28px;
}

/* ── LOADING SPINNER ─────────────────────────────────────── */
.phl-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 0;
  color: #666;
}

.phl-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: #1a7a6e;
  border-radius: 50%;
  animation: phl-spin 0.8s linear infinite;
  margin-bottom: 12px;
}

.phl-spinner.large {
  width: 52px;
  height: 52px;
  border-width: 4px;
  margin-bottom: 20px;
}

@keyframes phl-spin {
  to { transform: rotate(360deg); }
}

/* ── DATE CARDS ──────────────────────────────────────────── */
.phl-dates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}

@media (min-width: 540px) {
  .phl-dates-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.phl-date-card {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.18s ease;
  background: #fff;
}

.phl-date-card.available:hover {
  border-color: #1a7a6e;
  background: #f0f9f7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 122, 110, 0.12);
}

.phl-date-card.fully-booked {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8f8f8;
}

.phl-date-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.phl-spots {
  font-size: 0.82rem;
  color: #1a7a6e;
  font-weight: 500;
}

.phl-spots.fully-booked {
  color: #999;
}

/* ── SELECTED DATE BADGE ─────────────────────────────────── */
.phl-selected-date-badge {
  display: inline-block;
  background: #e6f4f2;
  color: #1a7a6e;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

/* ── GUEST COUNTER ───────────────────────────────────────── */
.phl-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.phl-counter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 4px;
}

.phl-counter button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #1a7a6e;
  background: #fff;
  color: #1a7a6e;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.phl-counter button:hover {
  background: #1a7a6e;
  color: #fff;
}

.phl-counter span {
  font-size: 1.4rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.phl-field small {
  color: #888;
  font-size: 0.8rem;
}

/* ── TOTAL BAR ───────────────────────────────────────────── */
.phl-total-bar {
  background: #1a7a6e;
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 16px;
}

.phl-total-bar strong {
  font-size: 1.3rem;
}

.phl-spots-warning {
  font-size: 0.82rem;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ── FORM FIELDS ─────────────────────────────────────────── */
.phl-field {
  margin-bottom: 20px;
}

.phl-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #333;
}

.phl-field input[type="text"],
.phl-field input[type="url"],
.phl-field input[type="email"],
.phl-field input[type="date"],
.phl-field input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.phl-field input:focus {
  outline: none;
  border-color: #1a7a6e;
}

/* ── CONTACT TABS ────────────────────────────────────────── */
.phl-contact-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.phl-contact-tab {
  flex: 1;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: #666;
  transition: all 0.15s;
}

.phl-contact-tab.active {
  border-color: #1a7a6e;
  color: #1a7a6e;
  background: #f0f9f7;
}

/* ── POLICY CHECKBOX ─────────────────────────────────────── */
.phl-policy-field label {
  font-weight: 400;
}

.phl-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.phl-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #1a7a6e;
}

.phl-checkbox-label span {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
}

/* ── MEETING INFO ────────────────────────────────────────── */
.phl-meeting-info {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.phl-meeting-info h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #1a7a6e;
  font-weight: 700;
}

.phl-meeting-info p {
  margin: 0;
  font-size: 0.88rem;
  color: #555;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.phl-btn-primary {
  display: inline-block;
  width: 100%;
  padding: 16px;
  background: #1a7a6e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 12px;
}

.phl-btn-primary:hover {
  background: #155f56;
  transform: translateY(-1px);
}

.phl-btn-primary.small {
  width: auto;
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 7px;
  margin: 0 6px 0 0;
}

.phl-btn-secondary {
  display: inline-block;
  padding: 12px 20px;
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin: 6px 6px 0 0;
  transition: background 0.15s;
}

.phl-btn-secondary:hover { background: #e0e0e0; }
.phl-btn-secondary.small { padding: 10px 16px; font-size: 0.88rem; }

.phl-btn-danger {
  display: inline-block;
  padding: 12px 22px;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin: 8px 8px 0 0;
  transition: background 0.15s;
}

.phl-btn-danger:hover { background: #a93226; }

.phl-btn-back {
  background: none;
  border: none;
  color: #1a7a6e;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 0 16px;
}

/* ── ERRORS ──────────────────────────────────────────────── */
.phl-error {
  background: #fdf0ef;
  border: 1px solid #f5c6c2;
  color: #c0392b;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-top: 12px;
}

/* ── CONFIRMATION ────────────────────────────────────────── */
.phl-confirmation {
  text-align: center;
  padding: 48px 20px;
}

.phl-confirm-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1a7a6e;
  color: #fff;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.phl-confirmation h2 {
  font-size: 1.7rem;
  margin: 0 0 24px;
}

.phl-confirm-details {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  margin-bottom: 20px;
}

.phl-confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.95rem;
}

.phl-confirm-row:last-child { border-bottom: none; }
.phl-confirm-row span { color: #666; }
.phl-confirm-row strong { font-size: 1rem; }

.phl-confirm-contact {
  color: #555;
  font-size: 0.88rem;
  margin-top: 8px;
}

.phl-confirm-note {
  color: #888;
  font-size: 0.85rem;
}

/* ── PROCESSING ──────────────────────────────────────────── */
.phl-processing {
  text-align: center;
  padding: 80px 20px;
}

/* ── MANAGE BOOKING ──────────────────────────────────────── */
.phl-booking-details {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.phl-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.phl-detail-row:last-child { border-bottom: none; }
.phl-detail-row span { color: #666; }

.phl-status-confirmed { color: #1a7a6e; }
.phl-status-pending   { color: #e07b2a; }
.phl-status-cancelled { color: #c0392b; }

.phl-policy-note {
  background: #fff8f0;
  border: 1px solid #f5d9b5;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #7a4a00;
  margin-bottom: 16px;
}

.phl-cancel-confirm {
  background: #fdf0ef;
  border-radius: 10px;
  padding: 20px;
  margin-top: 12px;
}

.phl-cancel-confirm p { margin: 0 0 16px; }

.phl-cancelled-box {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

/* ── GUIDE PAGES ─────────────────────────────────────────── */
.phl-guide .phl-guide-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

.phl-guide .phl-guide-header h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
}

.phl-guide-subtitle {
  color: #888;
  font-size: 0.88rem;
  margin: 0;
}

.phl-guide-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.phl-guide-filter label {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}

.phl-guide-filter input[type="date"] {
  padding: 9px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 7px;
  font-size: 0.9rem;
}

.phl-guide-summary {
  background: #1a7a6e;
  color: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.phl-guide-summary h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #fff;
}

.phl-guide-totals {
  display: flex;
  gap: 24px;
}

.phl-stat {
  font-size: 0.95rem;
}

.phl-stat strong {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 2px;
}

.phl-guide-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}

.phl-guide-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: #f8f8f8;
  border-bottom: 1px solid #e8e8e8;
}

.phl-booking-num {
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a7a6e;
  letter-spacing: 1px;
}

.phl-guest-count {
  font-weight: 700;
  font-size: 0.9rem;
  background: #1a7a6e;
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
}

.phl-guide-card-body {
  padding: 16px 18px;
}

.phl-guest-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.phl-guest-breakdown {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 8px;
}

.phl-contact {
  font-size: 0.9rem;
  color: #333;
}

.phl-dietary {
  margin-top: 8px;
  background: #fff3e0;
  color: #7a4a00;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.phl-guide-empty {
  text-align: center;
  padding: 48px;
  color: #888;
}

/* ── MEDIA UPLOAD ────────────────────────────────────────── */
.phl-media-intro {
  color: #555;
  font-size: 0.92rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .phl-field-row {
    grid-template-columns: 1fr;
  }
  .phl-contact-tabs {
    flex-direction: column;
  }
  .phl-guide-totals {
    flex-direction: column;
    gap: 12px;
  }
  .phl-guide-filter {
    flex-direction: column;
    align-items: flex-start;
  }
}
