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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f0f4f8;
  color: #333;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
}

h1 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #1a1a2e;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  gap: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 70px;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.step span {
  font-size: 0.75rem;
  color: #888;
}

.step.active .step-icon {
  background: #4a90d9;
  color: white;
}

.step.active span {
  color: #4a90d9;
  font-weight: 600;
}

.step.completed .step-icon {
  background: #4caf50;
  color: white;
}

.step.completed span {
  color: #4caf50;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  max-width: 60px;
  margin-bottom: 20px;
}

/* Card */
.card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #4a90d9;
}

.input-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-with-icon .icon {
  font-size: 1.2rem;
}

.input-with-icon select,
.input-with-icon .searchable-select {
  flex: 1;
}

/* Searchable doctor select */
.searchable-select {
  position: relative;
}

.searchable-select input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
}

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-list.hidden {
  display: none;
}

.dropdown-item {
  padding: 10px 14px;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #f0f4f8;
}

.selected-doctor {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #4a90d9;
  font-weight: 500;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: #7ec8e3;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  margin-top: 8px;
}

.btn-primary:hover:not(:disabled) {
  background: #5bb8d4;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 14px 24px;
  background: white;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.nav-buttons .btn-primary {
  flex: 1;
}

/* Slot layout */
.slot-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 20px;
}

.doctor-info h3,
.date-picker-section h3 {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 4px;
}

.doctor-info p {
  font-weight: 600;
  margin-bottom: 12px;
}

.slot-group {
  margin-bottom: 16px;
}

.slot-group h4 {
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: #555;
}

.slot-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-btn {
  padding: 8px 16px;
  border: 1px solid #4a90d9;
  border-radius: 6px;
  background: white;
  color: #4a90d9;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.slot-btn:hover {
  background: #e8f4fd;
}

.slot-btn.selected {
  background: #4a90d9;
  color: white;
}

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

/* Mobile input */
.mobile-input {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.country-code {
  padding: 12px 14px;
  background: #f8f8f8;
  border-right: 1px solid #ddd;
  white-space: nowrap;
  font-size: 0.9rem;
}

.mobile-input input {
  border: none;
  flex: 1;
  padding: 12px 14px;
}

.section-title {
  margin: 20px 0 12px;
  font-size: 0.95rem;
}

/* Payment summary */
.summary {
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.summary-row:last-child {
  border-bottom: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: #4a90d9;
}

.success-message {
  margin-top: 16px;
  padding: 16px;
  background: #e8f5e9;
  border-radius: 8px;
  color: #2e7d32;
  text-align: center;
  font-weight: 500;
}

.hidden {
  display: none !important;
}

.footer-link {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
}

.footer-link a {
  color: #4a90d9;
  text-decoration: none;
}

/* Admin styles */
.admin-container {
  max-width: 1100px;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 8px 8px 0 0;
  background: #f0f4f8;
  cursor: pointer;
  font-size: 0.85rem;
}

.tab.active {
  background: white;
  border-bottom-color: white;
  font-weight: 600;
  color: #4a90d9;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: #f8fafc;
  font-weight: 600;
  color: #555;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  background: white;
  margin-right: 4px;
}

.btn-sm.danger {
  color: #d32f2f;
  border-color: #d32f2f;
}

.btn-sm.primary {
  color: #4a90d9;
  border-color: #4a90d9;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
}

.admin-form input,
.admin-form select {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .slot-layout {
    grid-template-columns: 1fr;
  }
}
