/* =============================
   UNI DENTAL - Appointment Page
   Author: ChatGPT
   ============================= */

:root {
  --primary: #0057ff;
  --muted: #64748b;
  --border: #e5e7eb;
  --bg: #f9fafb;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
.header-bar {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-logo {
  height: 42px;
  width: auto;
}

.header-brand h5 {
  color: #0057ff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0;
}
.clinic-actions .btn {
  min-width: 150px; /* hoặc auto nếu muốn nút co theo chữ */
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.header-hotline {
  font-size: 15px;
}

.header-hotline i {
  font-size: 16px;
  color: #0057ff;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: #0f172a;
  margin: 0;
  padding: 0;
}

/* ----- Banner ----- */
.banner {
  margin-top: 24px !important;
}

/* ----- Clinic Info ----- */
.info {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rating {
  font-weight: 600;
  font-style: Semi Bold;
  font-size: 14px;
  color: #111827cc;
  line-height: 22px;
  letter-spacing: 0px;
  vertical-align: middle;
}
.clinic-info {
  padding: 20px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}
.clinic-banner {
  padding-left: 20px;
  padding-right: 20px;
}

.clinic-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}

.clinic-logo {
  width: 163px;
  height: 163px;
  border-radius: 10px;
  object-fit: cover;
}

.clinic-details h3 {
  font-weight: 600;
  font-style: Semi Bold;
  font-size: 24px;
  color: #16205b;

  line-height: 32px;
  letter-spacing: 0px;
  vertical-align: middle;
}

.clinic-details p {
  font-weight: 400;
  font-style: Regular;
  font-size: 14px;
  color: #111827cc;

  line-height: 22px;
  letter-spacing: 0px;
  vertical-align: middle;
}
.clinic-details i {
  font-size: 20px;
  color: #111827cc;
}

.info-line {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: #475569;
  margin-top: 8px;
}

.info-line i {
  color: #16205b;
  margin-right: 4px;
}
.info-line .info-label {
  font-weight: 500;
  font-style: Medium;
  font-size: 14px;
  color: #16205b;
  line-height: 22px;
  letter-spacing: 0px;
  vertical-align: middle;
}
.info-line span {
  font-size: 14px;

  line-height: 22px;
  letter-spacing: 0px;
  vertical-align: middle;
}

.clinic-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  min-width: 160px;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  border-radius: 8px;
  color: #fff;
  transition: 0.2s;
}

.btn-primary:hover {
  background-color: #004ae6;
}

.btn-outline-primary {
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  transition: 0.2s;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
}

/* ----- Booking Form ----- */
.booking-card {
  width: 100%;
  max-width: 900px;
  background: #fff;
  margin: 32px auto;
  padding: 32px 24px;
  border-radius: 16px;
  box-sizing: border-box;
}

.head-form-title {
  font-weight: 700;
  font-size: 28px;
  line-height: 42px;
  text-align: center;
  color: #16205b;
  margin-bottom: 24px;
}

label.form-label {
  font-size: 13px;
  color: #374151;
  font-weight: 600;
}

.form-control,
.form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  padding: 10px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1);
}

/* ----- Datetime Picker ----- */
.datetime-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 22px;
}

.calendar-col,
.slots-col {
  flex: 1 1 45%;
  background: #fff;
  /* border: 1px solid #eef3fb;
  border-radius: 12px; */
  padding: 16px;
  box-sizing: border-box;
}
.slots-col {
  background: #e9f1fb;
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 8px;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.calendar-weekdays div {
  padding: 4px 0;
}
.cal-btn {
  border: none;
  background: #f1f5f9;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

.calendar-grid .day {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 42px;
  border-radius: 50%;
  text-align: center;
  font-size: 14px;
  color: #0f172a;
  background: #f2f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.calendar-grid .day {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 42px;
  border-radius: 50%;
  text-align: center;
  font-size: 14px;
  color: #0f172a;
  background: #f2f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.calendar-grid .day.disabled {
  color: #94a3b8;
  cursor: not-allowed;
  pointer-events: none;
  border-radius: 50%;
}

.calendar-grid .day:hover {
  background: #e7f0ff;
  color: #0057ff;
}

.calendar-grid .day.empty {
  visibility: hidden;
}

.calendar-grid .day.active {
  background: #0057ff;
  color: white;
}

.slot-box h6 {
  color: #1e40af;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 14px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.slot {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
  padding: 8px 0;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.slot:hover {
  background: #f0f6ff;
  border-color: var(--primary);
  color: var(--primary);
}

.slot.active {
  background: var(--primary);
  color: #fff;
}

/* ----- Captcha + Submit ----- */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-top: 24px;
  background: #fff;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.captcha-row .btn {
  white-space: nowrap;
  height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#otp-checking {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: space-between;
  margin-top: 24px;
}
#otp-checking .btn {
  white-space: nowrap;
  height: 40px;
  padding: 0 20px;
  line-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hidden {
  display: none !important;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-bar {
    padding: 10px 12px;
  }

  .header-logo {
    height: 36px;
  }

  .header-hotline {
    font-size: 14px;
  }

  .header-brand small {
    display: none; /* Ẩn tagline trên mobile cho gọn */
  }
  .banner {
    height: 220px;
    border-radius: 0;
  }

  .clinic-info {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 12px;
  }

  .clinic-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .clinic-actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  .clinic-actions .btn {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    font-size: 15px;
    border-radius: 8px;
    padding: 10px 0;
  }

  .booking-card {
    padding: 20px;
    margin: 24px auto;
    border-radius: 12px;
  }

  .head-form-title {
    font-size: 22px;
  }

  .datetime-picker {
    flex-direction: column;
    gap: 16px;
  }

  .calendar-col,
  .slots-col {
    width: 100%;
  }

  .slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slot {
    font-size: 13px;
    padding: 10px 0;
  }

  .captcha-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: 16px;
  }
  .mobile-logo {
    display: flex;
    gap: 8px;
  }
  .mobile-logo .clinic-logo {
    width: 80px;
    height: 80px;
  }
  .captcha-row .btn {
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    height: 48px;
  }
}
