/* Travelbells Immigration Branding - Light Premium Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg-primary: #f4f7f9;
  --bg-secondary: #ffffff;
  --brand-navy: #102d5e;
  --brand-blue: #0170B9;
  --brand-red: #cf2a2f;
  --brand-red-hover: #a81c21;
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border-color: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-main: 'Montserrat', -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --transition-smooth: all 0.25s ease-in-out;
  --shadow-premium: 0 10px 30px rgba(16, 45, 94, 0.06), 0 1px 3px rgba(16, 45, 94, 0.02);
  --color-success: #10b981;
  --color-danger: #ef4444;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 20px;
  line-height: 1.5;
  background-image: 
    radial-gradient(at 0% 0%, rgba(1, 112, 185, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(207, 42, 47, 0.04) 0px, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-primary) 100%);
  background-attachment: fixed;
}

/* Layout container */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

header {
  text-align: center;
  margin-bottom: 35px;
}

header h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 500;
}

/* Elegant Light Card */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue), var(--brand-red));
}

/* Service Tiers Selection */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 580px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.service-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(1, 112, 185, 0.08);
}

.service-card.selected {
  border-color: var(--brand-navy);
  background: rgba(16, 45, 94, 0.03);
  box-shadow: 0 5px 15px rgba(16, 45, 94, 0.08);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--brand-navy);
  font-weight: 600;
}

.service-card .duration {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.service-card .price {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--brand-red);
  margin-top: auto;
}

.service-card .price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Wizard steps animation */
.step-container {
  display: none;
}

.step-container.active {
  display: block;
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step Headers & Layout */
.step-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-navy);
}

.step-number {
  background: var(--brand-navy);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

/* Calendar styling */
.calendar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .calendar-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

.calendar-widget {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

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

.calendar-header h3 {
  font-family: var(--font-heading);
  color: var(--brand-navy);
  font-size: 1.1rem;
}

.calendar-header button {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--brand-navy);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.calendar-header button:hover {
  background: var(--bg-primary);
  border-color: var(--brand-navy);
}

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

.calendar-day-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 0;
  text-transform: uppercase;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
  color: var(--text-primary);
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day.disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.3;
}

.calendar-day.active-day:not(.disabled) {
  background: #ffffff;
  border: 1px solid transparent;
}

.calendar-day.active-day:not(.disabled):hover {
  background: rgba(1, 112, 185, 0.08);
  color: var(--brand-blue);
  font-weight: 600;
}

.calendar-day.selected-day {
  background: var(--brand-blue) !important;
  color: #ffffff !important;
  font-weight: 600;
}

/* Time Slot Picker */
.slots-container {
  display: flex;
  flex-direction: column;
}

.slots-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--brand-navy);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 270px;
  overflow-y: auto;
  padding-right: 4px;
}

.slot-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}

.slot-btn:hover:not(.disabled) {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(1, 112, 185, 0.03);
}

.slot-btn.selected {
  background: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
  font-weight: 600;
}

.slot-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

.no-slots-msg {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  grid-column: span 2;
  margin-top: 20px;
  font-size: 0.9rem;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-control {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: var(--transition-smooth);
  width: 100%;
}

select.form-control {
  cursor: pointer;
  background-color: #ffffff;
  appearance: menulist !important;
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  height: 48px;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(1, 112, 185, 0.1);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Payments step */
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.pay-method-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pay-method-card:hover {
  border-color: var(--brand-blue);
}

.pay-method-card.selected {
  border-color: var(--brand-navy);
  background: rgba(16, 45, 94, 0.03);
}

.pay-method-card i {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: block;
  color: var(--brand-navy);
}

.pay-method-card.selected i {
  color: var(--brand-red);
}

.pay-method-card span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.payment-details-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 16px;
}

/* Simulated Credit Card form styles */
.credit-card-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}

.credit-card-form .form-group:first-child {
  grid-column: span 3;
}

/* E-transfer layout */
.etransfer-instructions {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.etransfer-instructions ul {
  margin-top: 10px;
  margin-left: 20px;
  margin-bottom: 16px;
}

.etransfer-instructions li {
  margin-bottom: 6px;
}

.copyable-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px dashed var(--brand-blue);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--brand-navy);
  margin: 10px 0;
  font-weight: 600;
}

.copyable-field button {
  background: var(--brand-navy);
  border: none;
  color: #ffffff;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--font-main);
  transition: var(--transition-smooth);
}

.copyable-field button:hover {
  background: var(--brand-blue);
}

/* Footer / Action Row */
.action-row {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}

.btn {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--brand-navy);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(16, 45, 94, 0.15);
  flex-grow: 1;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--brand-blue);
  box-shadow: 0 6px 15px rgba(1, 112, 185, 0.2);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: var(--bg-primary);
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Summary Card */
.summary-widget {
  background: rgba(16, 45, 94, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.summary-item:last-child {
  margin-bottom: 0;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-navy);
}

.summary-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Success Screen Details */
.success-card {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--color-success);
  color: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  animation: pulseSuccess 2s infinite;
}

@keyframes pulseSuccess {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.success-card h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--brand-navy);
  margin-bottom: 12px;
}

.success-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.booking-ref-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: inline-block;
  margin-bottom: 24px;
}

.booking-ref-box span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.booking-ref-box strong {
  font-size: 1.6rem;
  color: var(--brand-red);
  letter-spacing: 0.05em;
}

.next-steps-list {
  text-align: left;
  background: rgba(16, 45, 94, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.next-steps-list h4 {
  font-family: var(--font-heading);
  color: var(--brand-navy);
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

.next-steps-list ol {
  margin-left: 20px;
}

.next-steps-list li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Nav links for Demo pages */
.demo-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 35px;
  font-size: 0.85rem;
}

.demo-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
  border-bottom: 1px dashed var(--text-muted);
  padding-bottom: 2px;
  font-weight: 500;
}

.demo-nav a:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

/* Admin Dashboard CSS Specifics */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 800px) {
  .admin-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.admin-list-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.admin-header-row h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--brand-navy);
  font-weight: 600;
}

.status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.status-badge.confirmed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.status-badge.pending_payment {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

.status-badge.cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
}

.booking-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

.booking-item:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(16, 45, 94, 0.03);
}

.booking-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.booking-item-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.booking-item-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.booking-item-meta i {
  color: var(--brand-blue);
}

.booking-item-notes {
  background: var(--bg-primary);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  border-left: 3px solid var(--brand-navy);
}

.booking-item-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.admin-login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-form-box {
  width: 100%;
  max-width: 400px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-premium);
}

/* Integration Guide Styling */
.integration-section {
  margin-bottom: 30px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.integration-section h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.integration-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.code-block-wrapper {
  position: relative;
  margin-bottom: 16px;
}

pre {
  background: #2d3748 !important;
  border: 1px solid #1a202c;
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
