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

body {
  font-family: Carlito, Calibri, Candara, "Segoe UI", Optima, Arial, sans-serif;
  font-size: 1.1em;
  color: #222;
  line-height: 1.8;
}

input, button, select, textarea {
  font-family: Carlito, Calibri, Candara, "Segoe UI", Optima, Arial, sans-serif;
}

a {
  color: #000;
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover {
  color: #555;
}

/* Navigation */
.navbar {
  position: fixed;
  width: 100%;
  background-color: #000;
  color: #fff;
  z-index: 1000;
  padding: 15px 0;
  top: 0;
}

.nav-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.logo:hover {
  color: #ccc;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ccc;
}

/* Hero Section */
.hero {
  background-color: #000;
  color: #fff;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 60px;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 0px;
}

.hero p {
  font-size: 1.2rem;
}

/* Sections */
.section {
  padding: 20px 20px 50px;
}

.section h2 {
  font-size: 2.4rem;
  margin-bottom: 0px;
  text-align: center;
}

.section h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  text-align: center;
}

.alt-bg {
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.bio {
  max-width: 650px;
  margin: 0 auto 50px;
  text-align: center;
}

/* Achievements */
.achievements {
  max-width: 650px;
  margin: 0 auto;
  list-style: disc;
  padding-left: 20px;
}

.achievements li {
  margin-bottom: 12px;
}

/* Calendar */
.calendar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0px;
  margin-top: 6px;
  margin-bottom: 8px;
}

.nav-btn {
  background-color: #469fd4;
  color: #fff;
  border: none;
  width: 90px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.nav-btn:hover {
  background-color: #3a7fa8;
}

.current-week {
  font-weight: bold;
  font-size: 1.2em;
  min-width: 180px;
  text-align: center;
}

.calendar-container {
  max-width: 900px;
  margin: 0 auto 30px;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.calendar-header {
  display: grid;
  grid-template-columns: 100px repeat(7, 1fr);
  background-color: #000;
  color: #fff;
  font-weight: bold;
  padding: 0;
  gap: 0;
}

.calendar-header div {
  padding: 10px;
  text-align: center;
  font-size: 0.9em;
  border: 0.25px solid #e8e8e8;
}

.calendar-grid {
  display: grid;
  grid-template-columns: 100px repeat(7, 1fr);
  gap: 0;
  background-color: transparent;
  padding: 0;
}

.time-slot {
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  font-size: 0.85em;
  border: 0.25px solid #e8e8e8;
  transition: background-color 0.2s ease;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.time-slot.available {
  background-color: #fff;
  color: #000;
}

.time-slot.available:hover {
  background-color: #e8f4f8;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.time-slot.unavailable {
  background-color: #e8e8e8;
  color: #999;
  cursor: not-allowed;
}

.time-slot.selected {
  background-color: #469fd4;
  color: #fff;
  font-weight: bold;
  margin: -1px;
  position: relative;
  z-index: 10;
}

.time-slot.selected:hover {
  background-color: #469fd4;
}

.time-label {
  background-color: #f5f5f5;
  padding: 10px;
  font-size: 0.85em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.25px solid #e8e8e8;
}

/* Form */
.form {
  max-width: 600px;
  margin: 0 auto 30px;
}

.form input,
.form select {
  width: 100%;
  padding: 10px 16px;
  margin-bottom: 18px;
  border: 1px solid #999;
  border-radius: 4px;
  font-size: 1em;
}

.form select {
  height: 44px;
}

.btn-submit {
  width: 100%;
  min-width: 72px;
  padding: 10px;
  background-color: #469fd4;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #3a7fa8;
}

.form-status {
  text-align: center;
  margin: 15px 0;
  font-weight: bold;
}

/* Selected slot display */
#selectedSlotDisplay {
  font-size: 0.9em;
}

/* Unavailable Times */
.unavailable-box {
  max-width: 600px;
  margin: 30px auto 0;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
}

.unavailable-box h4 {
  margin-bottom: 10px;
}

.unavailable-box ul {
  margin: 0;
  padding-left: 20px;
}

/* About */
.section ul {
    padding-left: 1.5rem;
}

.section h3 {
    margin-bottom: 5px;
    margin-top: 20px;
}

h3.first-heading {
    margin-top: 0;
}

/* Contact */
#contact {
  text-align: center;
}

#contact a {
  font-size: 1.3rem;
}

/* Footer */
footer {
  background-color: #ebebeb;
  padding: 30px 20px;
  text-align: center;
  color: #777;
  font-size: 0.9em;
}

/* Confirmation modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.modal-card h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.modal-card > p {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 20px;
}

.modal-details {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
}

.modal-row {
  display: flex;
  padding: 10px 14px;
  font-size: 0.95em;
  border-bottom: 1px solid #f0f0f0;
}

.modal-row:last-child {
  border-bottom: none;
}

.modal-label {
  font-weight: bold;
  width: 60px;
  flex-shrink: 0;
  color: #555;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-cancel {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 0.95em;
  font-family: inherit;
  transition: background-color 0.2s;
}

.modal-cancel:hover {
  background: #f5f5f5;
}

.modal-confirm {
  width: auto;
  padding: 10px 24px;
}

/* Mobile calendar */
.mobile-calendar {
  display: none;
  max-width: 600px;
  margin: 0 auto 15px;
}

.day-strip {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.day-strip::-webkit-scrollbar {
  display: none;
}

.day-chip {
  flex: 1;
  min-width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.day-chip.active {
  background-color: #469fd4;
  border-color: #469fd4;
  color: #fff;
}

.chip-day {
  font-size: 0.65rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chip-date {
  font-size: 1.15rem;
  font-weight: bold;
  margin-top: 2px;
  line-height: 1;
}

/* iOS-style wheel picker */
.wheel-wrapper {
  position: relative;
  height: 180px; /* 5 visible rows × 36px */
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 16px;
}

.wheel {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 72px 0; /* (180/2) - (36/2) = 72 → centers first/last item */
}

.wheel::-webkit-scrollbar {
  display: none;
}

.wheel-item {
  height: 36px;
  line-height: 36px;
  text-align: center;
  scroll-snap-align: center;
  font-size: 1em;
  color: #222;
  user-select: none;
}

.wheel-item.unavailable {
  color: #ccc;
}

.wheel-fade-top,
.wheel-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 72px;
  pointer-events: none;
  z-index: 2;
}

.wheel-fade-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95) 20%, rgba(255,255,255,0));
}

.wheel-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.95) 20%, rgba(255,255,255,0));
}

.wheel-highlight {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  border-top: 1px solid #469fd4;
  border-bottom: 1px solid #469fd4;
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}

.duration-picker {
  margin-top: 16px;
}

.duration-label {
  font-size: 0.9em;
  font-weight: bold;
  color: #555;
  margin-bottom: 8px;
}

.duration-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.duration-btn {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.78em;
  font-family: inherit;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.duration-btn.active {
  background-color: #469fd4;
  border-color: #469fd4;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
    font-size: 0.9em;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section h2 {
    font-size: 2.2rem;
  }

  .section h3 {
    font-size: 1.2rem;
  }

  .calendar-container {
    display: none;
  }

  .mobile-calendar {
    display: block;
  }

  
}
