/* ==========================================
   SWIZOSOFT EXECUTIVE APPOINTMENT MANAGEMENT
   Visitor Booking & Tracking Stylesheet
   Design System: Human-Crafted, Enterprise Light Theme
   ========================================== */

/* Top Navigation Bar */
.portal-navbar {
  background-color: var(--swizo-deep-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  color: #FFFFFF;
}

.portal-navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--swizo-orange), #D95300);
  color: #FFFFFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(235, 103, 14, 0.3);
}

.portal-brand-name {
  font-family: 'Prata', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  display: block;
  line-height: 1.1;
}

.portal-brand-sub {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.portal-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-nav-link {
  color: #E2E8F0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.portal-nav-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.text-muted-link {
  background: transparent;
  color: #94A3B8;
}

.text-muted-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #E2E8F0;
}

/* Booking Header Hero */
.booking-header {
  background: linear-gradient(180deg, var(--swizo-deep-navy) 0%, #0D1652 100%);
  color: #FFFFFF;
  padding: 44px 0 74px 0;
  text-align: center;
  position: relative;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(235, 103, 14, 0.14);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: #FFB380;
  margin-bottom: 18px;
  border: 1px solid rgba(235, 103, 14, 0.3);
}

.hero-title {
  color: #FFFFFF;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  color: #CBD5E1;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 auto 24px auto;
  max-width: 620px;
}

.trust-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}

.trust-item {
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-item svg {
  color: var(--swizo-orange);
}

/* Booking Card Container */
.booking-container {
  margin-top: -46px;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}

.wizard-card {
  background-color: var(--surface-card);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 20px 40px -15px rgba(7, 12, 52, 0.08);
  padding: 36px 40px;
  max-width: 860px;
  margin: 0 auto;
}

/* Step Bar Progress Indicator */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  background: #F8FAFC;
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.55;
  transition: all 0.25s ease;
}

.step-item.active, .step-item.completed {
  opacity: 1;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 2px solid #CBD5E1;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.step-item.active .step-circle {
  background-color: var(--swizo-orange);
  border-color: var(--swizo-orange);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(235, 103, 14, 0.18);
}

.step-item.completed .step-circle {
  background-color: var(--swizo-royal-blue);
  border-color: var(--swizo-royal-blue);
  color: #FFFFFF;
}

.step-meta {
  display: flex;
  flex-direction: column;
}

.step-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--swizo-deep-navy);
  line-height: 1.2;
}

.step-sublabel {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}

.step-item.active .step-label {
  color: var(--swizo-orange);
}

.step-connector {
  flex: 1;
  height: 2px;
  background-color: #E2E8F0;
  margin: 0 16px;
}

/* Section Headings inside Wizard */
.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}

.section-icon-badge {
  width: 42px;
  height: 42px;
  background-color: #EFF6FF;
  color: var(--swizo-royal-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-heading h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--swizo-deep-navy);
  margin-bottom: 4px;
}

.section-heading p {
  font-size: 13.5px;
  color: #64748B;
  margin: 0;
}

/* Form Styles & Pickers */
.date-picker-group {
  max-width: 420px;
  margin-bottom: 28px;
}

.date-input-wrapper {
  position: relative;
}

.date-input {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--swizo-deep-navy);
  border-radius: 10px;
}

.booking-notice-pill {
  font-size: 12.5px;
  color: var(--swizo-royal-blue);
  background-color: #F0F4FF;
  border: 1px solid #D0DFFF;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Meeting Format Option Cards */
.meeting-format-section {
  margin-bottom: 30px;
}

.meeting-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.meeting-type-card {
  border: 2px solid #E2E8F0;
  background-color: #FFFFFF;
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.meeting-type-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.meeting-type-card.active {
  border-color: var(--swizo-royal-blue);
  background-color: #F8FAFC;
  box-shadow: 0 4px 16px rgba(42, 53, 130, 0.08);
}

.meeting-type-card input[type="radio"] {
  display: none;
}

.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navy-box {
  background-color: #EFF6FF;
  color: #1E40AF;
}

.purple-box {
  background-color: #F3E8FF;
  color: #6B21A8;
}

.card-details {
  flex: 1;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.card-title-text {
  font-weight: 700;
  font-size: 15px;
  color: var(--swizo-deep-navy);
}

.card-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.chip-navy {
  background-color: #DBEAFE;
  color: #1E40AF;
}

.chip-purple {
  background-color: #E9D5FF;
  color: #6B21A8;
}

.card-desc {
  font-size: 12.5px;
  color: #64748B;
  margin: 0;
  line-height: 1.4;
}

/* Time Slots Section */
.slots-section {
  margin-bottom: 30px;
}

.slot-loading-box {
  padding: 24px;
  text-align: center;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
}

.spinner-sm {
  width: 18px;
  height: 18px;
  border: 2px solid #CBD5E1;
  border-top-color: var(--swizo-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.empty-slots-placeholder {
  text-align: center;
  padding: 32px 16px;
  background-color: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: 12px;
  color: #64748B;
  margin-top: 10px;
}

.empty-slots-placeholder svg {
  margin-bottom: 8px;
  color: #94A3B8;
}

.empty-slots-placeholder p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
}

/* Slots Grid Buttons */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.slot-btn {
  padding: 14px 10px;
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
  background-color: #FFFFFF;
  color: var(--swizo-deep-navy);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--swizo-orange);
  background-color: #FFF8F3;
  color: var(--swizo-orange);
  box-shadow: 0 4px 12px rgba(235, 103, 14, 0.12);
}

.slot-btn.selected {
  border-color: var(--swizo-orange);
  background-color: var(--swizo-orange);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(235, 103, 14, 0.3);
}

.slot-btn:disabled {
  background-color: #F1F5F9;
  border-color: #E2E8F0;
  color: #94A3B8;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Visitor Details Form (Step 2) */
.slot-summary-banner {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.summary-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--swizo-royal-blue);
}

.summary-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748B;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.summary-value {
  font-size: 15px;
  color: var(--swizo-deep-navy);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  pointer-events: none;
}

.input-with-icon .form-control {
  padding-left: 42px;
}

/* OTP Verification Box (Step 3) */
.text-center-panel {
  text-align: center;
  padding: 16px 0;
}

.otp-header-icon {
  width: 60px;
  height: 60px;
  background-color: #FFF3E6;
  color: var(--swizo-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  border: 2px solid #FFE0C2;
}

.otp-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--swizo-deep-navy);
  margin-bottom: 6px;
}

.otp-desc {
  color: #64748B;
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto 24px auto;
  line-height: 1.5;
}

.otp-box-input {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}

.otp-digit {
  width: 48px;
  height: 56px;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  border: 2px solid #CBD5E1;
  border-radius: 12px;
  color: var(--swizo-deep-navy);
  outline: none;
  background-color: #FFFFFF;
  transition: all 0.2s ease;
}

.otp-digit:focus {
  border-color: var(--swizo-orange);
  box-shadow: 0 0 0 4px rgba(235, 103, 14, 0.18);
}

.resend-text {
  font-size: 13.5px;
  color: #64748B;
  margin-bottom: 28px;
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--swizo-royal-blue);
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  text-decoration: underline;
}

.btn-text-link:disabled {
  color: #94A3B8;
  cursor: not-allowed;
  text-decoration: none;
}

.otp-action-row {
  display: flex;
  justify-content: center;
}

/* Success Confirmation Screen (Step 4) */
.success-screen {
  text-align: center;
  padding: 20px 0;
}

.success-icon-wrapper {
  width: 76px;
  height: 76px;
  background-color: #DCFCE7;
  color: #16A34A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.2);
}

.success-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--swizo-deep-navy);
  margin-bottom: 8px;
}

.success-desc {
  color: #64748B;
  font-size: 15px;
  max-width: 540px;
  margin: 0 auto 24px auto;
  line-height: 1.5;
}

.ref-badge-card {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  max-width: 440px;
  margin: 0 auto 24px auto;
}

.ref-badge-label {
  font-size: 12px;
  color: #64748B;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.apt-reference-badge {
  font-size: 24px;
  font-weight: 800;
  color: var(--swizo-orange);
  letter-spacing: 1.5px;
  margin: 8px 0;
  font-family: monospace;
}

.ref-badge-hint {
  font-size: 12px;
  color: #94A3B8;
}

.notice-callout {
  background-color: #FFFBEB;
  border: 1px solid #FDE68A;
  padding: 16px 20px;
  border-radius: 12px;
  max-width: 580px;
  margin: 0 auto 28px auto;
  text-align: left;
  display: flex;
  gap: 14px;
  color: #92400E;
}

.notice-callout-icon {
  color: #D97706;
  flex-shrink: 0;
}

.notice-callout strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.notice-callout p {
  font-size: 13px;
  margin: 0;
  line-height: 1.45;
  color: #B45309;
}

/* Alert Notices */
.alert-notice {
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
}

.alert-warning {
  background-color: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.alert-info {
  background-color: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

/* Button & Action Enhancements */
.btn-outline {
  background-color: transparent;
  border: 1.5px solid #CBD5E1;
  color: var(--swizo-deep-navy);
}

.btn-outline:hover {
  border-color: var(--swizo-deep-navy);
  background-color: #F8FAFC;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
  border-radius: 10px;
}

/* Grid 2-column form rows */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Wizard Footer Actions */
.wizard-footer-actions {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #F1F5F9;
  padding-top: 24px;
}

/* Portal Footer */
.portal-footer {
  background-color: var(--swizo-deep-navy);
  color: #94A3B8;
  padding: 24px 0;
  font-size: 13px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-footer-inner p {
  margin: 0;
}

/* ==========================================
   RESPONSIVE MOBILE STYLES
   ========================================== */
@media (max-width: 768px) {
  .portal-navbar-container {
    padding: 0 16px;
  }

  .portal-brand-name {
    font-size: 16px;
  }

  .portal-nav-actions {
    gap: 8px;
  }

  .portal-nav-link {
    padding: 5px 10px;
    font-size: 12px;
  }

  .booking-header {
    padding: 32px 16px 60px 16px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 13.5px;
  }

  .wizard-card {
    padding: 24px 16px;
    border-radius: 12px;
    margin: 0 8px;
  }

  .wizard-steps {
    padding: 12px 14px;
    margin-bottom: 24px;
  }

  .step-sublabel {
    display: none;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .step-label {
    font-size: 12px;
  }

  .step-connector {
    margin: 0 8px;
  }

  .meeting-type-grid {
    grid-template-columns: 1fr;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .wizard-footer-actions {
    flex-direction: column-reverse;
    gap: 10px;
    align-items: stretch;
  }

  .wizard-footer-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 8px;
  }

  .slot-btn {
    padding: 11px 6px;
    font-size: 13px;
  }

  .otp-digit {
    width: 40px;
    height: 48px;
    font-size: 20px;
  }
}
