/* =====================================================
   RESET
===================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  font-family: "Poppins", sans-serif;

  color: #fff;

  overflow-x: hidden;
}

/* =====================================================
   NAVBAR
===================================================== */

#site-header {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 50;

  background: rgba(10, 9, 7, 0.55);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(16px);

  -webkit-backdrop-filter: blur(16px);
}

.navbar {
  max-width: 1200px;

  margin: 0 auto;

  height: 76px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0 24px;
}

.nav-logo {
  text-decoration: none;
}

.logo-text {
  font-family: "Playfair Display", serif;

  font-size: 22px;

  font-weight: 500;

  color: #fff;
}

.logo-text span {
  color: #d6a94a;
}

.nav-menu {
  display: flex;

  align-items: center;

  gap: 32px;

  list-style: none;
}

.nav-link {
  position: relative;

  text-decoration: none;

  color: rgba(255, 255, 255, 0.75);

  font-size: 13px;

  font-weight: 500;

  letter-spacing: 0.3px;

  transition: color 0.25s ease;
}

.nav-link:hover {
  color: #d6a94a;
}

.nav-link.active {
  color: #d6a94a;
}

.nav-link.active::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -8px;

  height: 2px;

  background: #d6a94a;

  border-radius: 2px;
}

#menu-open-button,
#menu-close-button {
  display: none;

  border: 0;

  background: transparent;

  color: #fff;

  font-size: 22px;

  cursor: pointer;
}

#menu-close-button {
  align-self: flex-end;

  margin-bottom: 20px;
}

/* push page content below the fixed navbar */
.app {
  padding-top: 116px;
}

/* =====================================================
   MOBILE NAVBAR
===================================================== */

@media (max-width: 860px) {
  #menu-open-button {
    display: block;
  }

  .nav-menu {
    position: fixed;

    top: 0;
    right: -100%;

    height: 100vh;
    width: min(78vw, 320px);

    flex-direction: column;

    align-items: flex-start;

    gap: 22px;

    padding: 28px 26px;

    background: rgba(12, 10, 8, 0.97);

    border-left: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(18px);

    transition: right 0.35s ease;

    z-index: 60;
  }

  body.show-mobile-menu .nav-menu {
    right: 0;
  }

  #menu-close-button {
    display: block;
  }

  .app {
    padding-top: 96px;
  }
}

/* =====================================================
   BACKGROUND
===================================================== */

.background {
  position: fixed;

  inset: 0;

  z-index: -10;

  overflow: hidden;
}

.background-image {
  position: absolute;

  inset: -30px;

  background-image: url("../images/sanju_hero.png");

  background-size: cover;

  background-position: center;

  filter: blur(2px);

  transform: scale(1.04);
}

.background-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(8, 8, 8, 0.92),
    rgba(18, 14, 10, 0.82)
  );
}

/* =====================================================
   APP
===================================================== */

.app {
  width: 100%;

  min-height: 100vh;

  display: flex;

  justify-content: center;

  align-items: center;

  padding: 40px 20px;
}

/* =====================================================
   SCREEN
===================================================== */

.screen {
  display: none;

  width: 100%;

  max-width: 560px;

  animation: screenIn 0.6s ease forwards;
}

.screen.active {
  display: block;
}

@keyframes screenIn {
  from {
    opacity: 0;

    transform: translateY(25px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* =====================================================
   GLASS CARD
===================================================== */

.glass-card {
  width: 100%;

  padding: 42px;

  border-radius: 24px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.045)
  );

  border: 1px solid rgba(255, 255, 255, 0.18);

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(22px);

  -webkit-backdrop-filter: blur(22px);
}

/* =====================================================
   EYEBROW
===================================================== */

.eyebrow {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  margin-bottom: 18px;

  color: #d6a94a;

  font-size: 11px;

  font-weight: 600;

  letter-spacing: 3px;
}

.eyebrow span {
  width: 35px;

  height: 1px;

  background: #d6a94a;
}

/* =====================================================
   HEADINGS
===================================================== */

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

/* =====================================================
   BUTTONS
===================================================== */

button {
  font-family: inherit;
}

.gold-button,
.outline-button {
  min-height: 54px;

  border-radius: 12px;

  padding: 0 22px;

  font-size: 13px;

  font-weight: 600;

  cursor: pointer;

  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.gold-button {
  width: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  border: 1px solid rgba(255, 255, 255, 0.12);

  background: linear-gradient(135deg, #e2b95f, #b98529);

  color: #15110a;

  box-shadow: 0 12px 30px rgba(184, 133, 41, 0.25);
}

.gold-button:hover {
  transform: translateY(-2px);

  box-shadow: 0 16px 38px rgba(184, 133, 41, 0.35);
}

.gold-button:disabled {
  opacity: 0.6;

  cursor: not-allowed;

  transform: none;
}

.outline-button {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  border: 1px solid rgba(255, 255, 255, 0.28);

  background: rgba(255, 255, 255, 0.05);

  color: #fff;

  text-decoration: none;
}

.outline-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.text-button {
  display: block;

  margin: 22px auto 0;

  border: 0;

  background: transparent;

  color: rgba(255, 255, 255, 0.65);

  font-size: 13px;

  cursor: pointer;
}

.text-button:hover {
  color: #d6a94a;
}

/* =====================================================
   BOOKING HEADER
===================================================== */

.top-heading {
  text-align: center;
}

.top-heading h2 {
  font-size: 34px;

  font-weight: 500;

  margin-bottom: 8px;
}

.top-heading p {
  color: rgba(255, 255, 255, 0.58);

  font-size: 13px;
}

/* =====================================================
   PROGRESS
===================================================== */

.progress {
  display: flex;

  align-items: center;

  margin: 30px 0;
}

.progress-step {
  display: flex;

  align-items: center;

  gap: 8px;

  color: rgba(255, 255, 255, 0.35);

  font-size: 11px;
}

.progress-step span {
  width: 28px;

  height: 28px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.2);

  font-size: 11px;
}

.progress-step.active {
  color: #d6a94a;
}

.progress-step.active span {
  border-color: #d6a94a;

  background: rgba(214, 169, 74, 0.1);
}

.progress-line {
  flex: 1;

  height: 1px;

  margin: 0 12px;

  background: rgba(255, 255, 255, 0.15);
}

/* =====================================================
   FORM
===================================================== */

.form-group {
  margin-bottom: 19px;
}

.form-group label {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-bottom: 8px;

  color: rgba(255, 255, 255, 0.82);

  font-size: 12px;

  font-weight: 500;
}

.form-group label i {
  color: #d6a94a;

  width: 15px;
}

.form-group input,
.form-group select {
  width: 100%;

  height: 50px;

  padding: 0 14px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 10px;

  outline: none;

  background: rgba(0, 0, 0, 0.24);

  color: #fff;

  font-family: inherit;

  font-size: 13px;

  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group select:focus {
  border-color: #d6a94a;

  background: rgba(0, 0, 0, 0.32);
}

.form-group select option {
  color: #111;

  background: #fff;
}

/* ---- multi-select service list (replaces the old single <select>) ---- */
.service-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.24);
}
/* dark-themed scrollbar (webkit) so it doesn't show the browser's
   default white scrollbar on this dark panel */
.service-check-list::-webkit-scrollbar {
  width: 8px;
}
.service-check-list::-webkit-scrollbar-track {
  background: transparent;
}
.service-check-list::-webkit-scrollbar-thumb {
  background: rgba(214, 169, 74, 0.4);
  border-radius: 8px;
}
.service-check-list::-webkit-scrollbar-thumb:hover {
  background: rgba(214, 169, 74, 0.65);
}
.service-check-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 169, 74, 0.5) transparent;
}
.service-loading {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  padding: 6px 4px;
}
.service-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-size: 13px;
  color: #fff;
}
.service-check-item[hidden] {
  display: none;
}
.service-check-item:hover {
  border-color: rgba(214, 169, 74, 0.5);
}
.service-check-item:has(input:checked) {
  border-color: #d6a94a;
  background: rgba(214, 169, 74, 0.08);
}
.service-check-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* custom checkbox (dark box + gold check) instead of the browser's
   default white square */
.service-check-left input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.service-check-left input[type="checkbox"]:hover {
  border-color: #d6a94a;
}
.service-check-left input[type="checkbox"]:checked {
  background: #d6a94a;
  border-color: #d6a94a;
}
.service-check-left input[type="checkbox"]:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #1a1a1a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.service-check-price {
  color: #d6a94a;
  font-size: 12.5px;
  white-space: nowrap;
}
.service-total-row[hidden] {
  display: none;
}
.service-total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(214, 169, 74, 0.1);
  border: 1px solid rgba(214, 169, 74, 0.3);
  font-size: 13px;
  color: #fff;
}
.service-total-row span:last-child {
  color: #d6a94a;
  font-weight: 600;
}
.field-hint {
  font-size: 12px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.5);
}
.field-hint-error {
  color: #ff6b6b;
}

/* =====================================================
   DATE INPUT
===================================================== */

input[type="date"] {
  color-scheme: dark;
}

/* =====================================================
   TIME NOTE
===================================================== */

.time-note {
  display: flex;

  align-items: center;

  gap: 7px;

  margin-top: 8px;

  color: rgba(255, 255, 255, 0.4);

  font-size: 10px;
}

.available-dot {
  width: 7px;

  height: 7px;

  border-radius: 50%;

  background: #6bcf7f;

  box-shadow: 0 0 8px rgba(107, 207, 127, 0.6);
}

/* =====================================================
   ERROR
===================================================== */

.error-message {
  margin: 15px 0;

  padding: 12px 14px;

  border: 1px solid rgba(255, 90, 90, 0.3);

  border-radius: 9px;

  background: rgba(255, 70, 70, 0.08);

  color: #ffaaaa;

  font-size: 12px;

  line-height: 1.5;
}

/* =====================================================
   CONFIRMATION
===================================================== */

.confirmation-card {
  text-align: center;
}

.confirmation-icon {
  width: 68px;

  height: 68px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 0 auto 20px;

  border-radius: 50%;

  border: 1px solid rgba(214, 169, 74, 0.4);

  background: rgba(214, 169, 74, 0.1);

  color: #d6a94a;

  font-size: 26px;
}

.confirmation-card h2 {
  font-size: 34px;

  font-weight: 500;

  margin-bottom: 8px;
}

.confirmation-intro {
  color: rgba(255, 255, 255, 0.55);

  font-size: 13px;

  margin-bottom: 28px;
}

/* =====================================================
   DETAILS
===================================================== */

.details-list {
  display: grid;

  grid-template-columns: 1fr;

  margin-bottom: 25px;

  text-align: left;

  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.details-list div {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  padding: 13px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.details-list dt {
  color: rgba(255, 255, 255, 0.45);

  font-size: 11px;
}

.details-list dd {
  color: #fff;

  font-size: 12px;

  font-weight: 500;

  text-align: right;
}

/* =====================================================
   CONFIRMATION BUTTONS
===================================================== */

.confirmation-buttons {
  display: grid;

  grid-template-columns: 0.8fr 1.6fr;

  gap: 12px;
}

.confirmation-buttons .gold-button {
  width: 100%;
}

/* =====================================================
   THANK YOU
===================================================== */

.thankyou-card {
  text-align: center;

  padding: 55px 40px;
}

.success-icon {
  width: 85px;

  height: 85px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 0 auto 25px;

  border-radius: 50%;

  background: linear-gradient(135deg, #e2b95f, #b98529);

  color: #17120a;

  font-size: 35px;

  box-shadow: 0 15px 40px rgba(184, 133, 41, 0.28);
}

.thankyou-card h1 {
  font-size: 55px;

  font-weight: 500;

  margin-bottom: 2px;
}

.thankyou-card h3 {
  color: #d6a94a;

  font-size: 22px;

  font-weight: 400;

  margin-bottom: 18px;
}

.thankyou-card > p {
  max-width: 420px;

  margin: 0 auto 30px;

  color: rgba(255, 255, 255, 0.62);

  font-size: 13px;

  line-height: 1.8;
}

.thankyou-note {
  margin: -14px auto 30px;

  color: rgba(255, 255, 255, 0.62);

  font-size: 13px;
}

.thankyou-note-link {
  color: var(--gold, #d4af5a);

  text-decoration: underline;
}

.thankyou-buttons {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;
}

.thankyou-buttons .gold-button {
  width: 100%;
}

/* =====================================================
   LOADING
===================================================== */

.loading-overlay {
  position: fixed;

  inset: 0;

  z-index: 100;

  display: none;

  align-items: center;

  justify-content: center;

  background: rgba(0, 0, 0, 0.65);

  backdrop-filter: blur(10px);
}

.loading-overlay.active {
  display: flex;
}

/* ===== Auth gate screens (checking login / login required) ===== */
.auth-gate-card {
  text-align: center;
  padding: 50px 30px;
}

.auth-gate-card .loader {
  margin-bottom: 18px;
}

.auth-gate-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.auth-gate-card .confirmation-icon {
  margin: 0 auto 16px;
}

.auth-gate-card h2 {
  margin: 10px 0 8px;
}

.auth-gate-card .confirmation-intro {
  margin-bottom: 22px;
}

.auth-gate-card .gold-button {
  display: inline-flex;
}

.loader-box {
  text-align: center;
}

.loader {
  width: 42px;

  height: 42px;

  margin: 0 auto 15px;

  border: 3px solid rgba(255, 255, 255, 0.15);

  border-top-color: #d6a94a;

  border-radius: 50%;

  animation: spin 0.8s linear infinite;
}

.loader-box p {
  color: rgba(255, 255, 255, 0.75);

  font-size: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {
  .app {
    padding: 96px 12px 20px;
  }

  .glass-card {
    padding: 30px 22px;

    border-radius: 20px;
  }

  .top-heading h2,
  .confirmation-card h2 {
    font-size: 29px;
  }

  .thankyou-card {
    padding: 45px 24px;
  }

  .thankyou-card h1 {
    font-size: 45px;
  }

  .confirmation-buttons,
  .thankyou-buttons {
    grid-template-columns: 1fr;
  }

  .progress-step {
    font-size: 9px;
  }

  .progress-step span {
    width: 25px;

    height: 25px;
  }

  .details-list dd {
    max-width: 55%;

    word-break: break-word;
  }
}

/* =====================================================
   BARBER PHOTO CARDS
===================================================== */

.barber-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
}

.barber-cards-loading {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.barber-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease,
    transform 0.2s ease;
}

.barber-card:hover {
  border-color: rgba(214, 169, 74, 0.5);
  transform: translateY(-2px);
}

.barber-card.selected {
  border-color: #d6a94a;
  background: rgba(214, 169, 74, 0.1);
  box-shadow: 0 0 0 1px #d6a94a;
}

.barber-card-photo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.barber-card-initial {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 169, 74, 0.15);
  color: #d6a94a;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 600;
  border: 1px solid rgba(214, 169, 74, 0.3);
}

.barber-card-name {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

.barber-card.selected .barber-card-name {
  color: #d6a94a;
}

@media (max-width: 600px) {
  .barber-cards {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  }
  .barber-card-photo,
  .barber-card-initial {
    width: 46px;
    height: 46px;
  }
}

/* Reveals the rest of the booking form once a barber card is picked */
.rest-of-booking-fields[hidden] {
  display: none;
}
.rest-of-booking-fields {
  animation: revealFields 0.4s ease;
}
@keyframes revealFields {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.barber-picked-hint {
  margin: -4px 0 19px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}
