/* registrasi.css — Styling Modern Mobile-First Form Pendaftaran Publik Sirkumboy */
:root {
  --primary: #000000;
  --primary-hover: #1a1a1a;
  --accent-blue: #0d74ce;
  --bg-gradient-start: #f8fafc;
  --bg-gradient-end: #edf5ff;
  --surface-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #0d74ce;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --danger: #ef4444;
  --success: #16a34a;
  --warning: #f59e0b;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  touch-action: manipulation;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 12px;
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Header Brand */
.header-card {
  text-align: center;
  margin-bottom: 24px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 116, 206, 0.1);
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.header-card h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.header-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Card Form */
.form-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.section-title svg {
  color: var(--accent-blue);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-group label span.req {
  color: var(--danger);
  margin-left: 2px;
}

.form-group label span.opt {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
  margin-left: 4px;
}

.input-control,
.select-control,
.textarea-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px; /* 16px prevents iOS Safari & Chrome mobile from auto-zooming on focus */
  font-family: inherit;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.input-control:focus,
.select-control:focus,
.textarea-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(13, 116, 206, 0.15);
}

/* Time Slot Chips */
.time-chips-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.time-chip {
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.time-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.time-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Custom Calendar Date Picker Widget */
.calendar-widget {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fafafa;
  margin-top: 6px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-header h3 {
  font-size: 14px;
  font-weight: 600;
}

.btn-icon-cal {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-day-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  min-width: 0;
  overflow: hidden;
}

.cal-cell:hover:not(.disabled) {
  border-color: var(--accent-blue);
  background: #f0f7ff;
}

.cal-cell.selected {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.cal-cell.disabled {
  background: #f1f5f9;
  color: #cbd5e1;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal-cell.holiday {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fee2e2;
  cursor: not-allowed;
}

.cal-badge {
  font-size: 9px;
  line-height: 1;
  margin-top: 2px;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-badge.available {
  background: #dcfce7;
  color: #166534;
}

.cal-badge.full {
  background: #fee2e2;
  color: #991b1b;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
  background: var(--primary-hover);
}

.btn-submit:active {
  transform: scale(0.99);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Modal Confirmation */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(10px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.modal-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.receipt-box {
  background: #f8fafc;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  font-size: 13px;
  margin-bottom: 20px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.receipt-row:last-child {
  margin-bottom: 0;
}

.receipt-label {
  color: var(--text-muted);
}

.receipt-val {
  font-weight: 600;
  color: var(--text-main);
}

.btn-secondary {
  width: 100%;
  padding: 12px;
  background: #f1f5f9;
  color: var(--text-main);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
}

/* Package CTA Cards */
.package-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.package-card {
  position: relative;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.package-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.package-card.active {
  border-color: var(--accent-blue);
  background: rgba(13, 116, 206, 0.04);
  box-shadow: 0 0 0 3px rgba(13, 116, 206, 0.15);
}

.package-card.active::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  background: var(--accent-blue);
  color: #ffffff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.package-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.badge-star {
  background: #fef3c7;
  color: #92400e;
}

.badge-popular {
  background: #e0e7ff;
  color: #3730a3;
}

.badge-gold {
  background: #fef9c3;
  color: #854d0e;
}

.badge-silver {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.badge-social {
  background: #dcfce7;
  color: #166534;
}

.package-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.package-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 6px;
}

.package-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── SESI SUNAT & INTERACTIVE TIME SLIDER STYLES ─── */
.session-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.session-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.session-card {
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.session-card:hover:not(.disabled) {
  border-color: var(--accent-blue);
  background: #f8fbff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 116, 206, 0.08);
}

.session-card.active {
  border-color: var(--accent-blue);
  background: #f0f7ff;
  box-shadow: 0 0 0 3px rgba(13, 116, 206, 0.15);
}

.session-card.disabled {
  opacity: 0.55;
  background: #f1f5f9;
  border-color: #e2e8f0;
  cursor: not-allowed;
  pointer-events: none;
}

.session-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.session-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.session-quota-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
}

.session-quota-badge.available {
  background: #dcfce7;
  color: #15803d;
}

.session-quota-badge.limited {
  background: #fef3c7;
  color: #b45309;
}

.session-quota-badge.full {
  background: #fee2e2;
  color: #b91c1c;
}

.session-time-range {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Time Picker Card */
.time-picker-card {
  background: #ffffff;
  border: 1.5px solid #e0e7ff;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(13, 116, 206, 0.05);
}

.time-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.time-header-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.session-badge-pill {
  font-size: 12px;
  font-weight: 700;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 3px 10px;
  border-radius: 12px;
}

.selected-time-display {
  text-align: center;
  margin: 10px 0 16px 0;
}

.selected-time-display span:first-child {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  background: #eff6ff;
  padding: 4px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid #bfdbfe;
}

.time-zone-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-left: 6px;
}

/* Custom Slider */
.slider-wrapper {
  margin: 16px 0 14px 0;
  position: relative;
}

.custom-time-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: #e2e8f0;
  outline: none;
  transition: background 0.2s;
  cursor: pointer;
}

.custom-time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(13, 116, 206, 0.4);
  cursor: grab;
  transition: transform 0.1s, box-shadow 0.2s;
}

.custom-time-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(13, 116, 206, 0.6);
}

.custom-time-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(13, 116, 206, 0.4);
  cursor: grab;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 6px;
}

/* Stepper Actions */
.stepper-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-stepper:hover:not(:disabled) {
  background: #f8fafc;
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.btn-stepper:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-stepper:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Quick Time Chips */
.quick-time-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.time-chip-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.time-chip-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: #f0f7ff;
}

.time-chip-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

.time-info-note {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* ─── MOBILE RESPONSIVE FIXES (PREVENT HORIZONTAL SCROLL & ZOOM) ─── */
@media (max-width: 480px) {
  body {
    padding: 12px 8px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .header-card h1 {
    font-size: 22px;
  }

  .form-card {
    padding: 16px 12px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Input 16px font-size prevents iOS Safari & Mobile Chrome auto-zoom on focus */
  .input-control,
  .select-control,
  .textarea-control {
    font-size: 16px !important;
    padding: 11px 12px;
  }

  .package-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .package-card {
    padding: 14px 12px;
  }

  .time-chips-container {
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 6px;
  }

  .time-chip {
    padding: 8px 2px;
    font-size: 12px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .calendar-widget {
    padding: 8px 4px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .calendar-grid {
    gap: 2px;
    width: 100%;
  }

  .cal-cell {
    font-size: 12px;
    border-radius: 4px;
    min-width: 0;
  }

  .cal-badge {
    font-size: 8px;
    padding: 1px 2px;
    max-width: 100%;
  }

  .modal-card {
    padding: 20px 16px;
  }
}
