/* ═══════════════════════════════════════════════════
   Veasy — shared.css
   Styles shared across 2 or more pages.
   Page-specific overrides remain in each HTML file.
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

/* ── 1. CSS custom properties ── */
:root {
  --brand:        #4f8be8;
  --brand-dark:   #1e3a8a;
  --brand-light:  #eff6ff;
  --brand-border: #bfdbfe;
  --brand-mid:    #60a5fa;
  --brand-deep:   #1e3a8a;
}

/* ── 2. Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent any element from causing horizontal scroll */
html {
  overflow-x: hidden;
}

/* ── 3. Body ── */
body {
  font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f3;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Images and media never exceed their container */
img,
video,
iframe,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

/* ── 4. Nav + Logo ── */
.nav {
  background: #fff;
  border-bottom: 1px solid #e8e8e4;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.logo span {
  color: #4f8be8;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 14px;
  color: #666;
}
.nav-links a {
  text-decoration: none;
  color: #666;
}
.nav-links a:hover {
  color: #1a1a1a;
}
.nav-cta {
  background: #4f8be8;
  color: #fff;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

/* ── 5. Buttons ── */
.btn {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #ddd;
  background: #fafaf8;
  color: #555;
  transition: all 0.15s;
}
.btn:hover {
  background: #f0f0ec;
}
.btn-confirm {
  background: #4f8be8;
  color: #fff;
  border-color: #4f8be8;
  font-weight: 600;
}
.btn-confirm:hover {
  background: #4f8be8;
}

/* ── 6. Form fields ── */
.field {
  margin-bottom: 1rem;
}
.field label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}
.req {
  color: #e24b4a;
  font-size: 10px;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fafaf8;
  color: #1a1a1a;
  font-family: inherit;
  transition: border-color 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #4f8be8;
  background: #fff;
}
.field .hint {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  line-height: 1.5;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── 7. Cards / containers ── */
.section {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e4;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

/* ── 8. Modal overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  max-width: 440px;
  width: 100%;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
.modal-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.modal-sub {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.modal-field {
  margin-bottom: 1rem;
}
.modal-field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}
.modal-field select {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fafaf8;
  font-family: inherit;
}
.modal-actions {
  display: flex;
  gap: 8px;
}

/* ── 9. Chips / badges ── */
.chip {
  background: #f5f5f3;
  border: 1px solid #e8e8e4;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12px;
  color: #555;
}
.chip.verified {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}
.badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
  flex-shrink: 0;
}
.badge.pending {
  background: #fffbf0;
  color: #7a4f00;
  border: 1px solid #f5d58a;
}
.badge.confirmed {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}
.badge.cancelled {
  background: #f5f5f3;
  color: #888;
  border: 1px solid #ddd;
}
.badge.flagged {
  background: #fff5f5;
  color: #791f1f;
  border: 1px solid #f5aaaa;
}
.badge.buyer_cancelled {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #dbeafe;
}
.badge.no_show {
  background: #fff7ed;
  color: #7c2d12;
  border: 1px solid #fed7aa;
}

/* ── 10. Mobile navigation (hamburger) ── */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #555;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #e8e8e4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  z-index: 99;
  padding: 0.25rem 1.5rem 1.25rem;
  flex-direction: column;
}
.nav-drawer.open {
  display: flex;
}
.nav-drawer-links {
  display: flex;
  flex-direction: column;
}
.nav-drawer-links a {
  padding: 11px 0;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0ec;
}
.nav-drawer-links a:last-child {
  border-bottom: none;
}
.nav-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 0.75rem;
}
.nav-drawer-actions a {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  padding: 3px 0;
}
.nav-drawer-actions button {
  width: 100%;
  text-align: center;
}
.nav-drawer-actions .nav-cta {
  padding: 10px 16px;
  font-size: 14px;
}

/* ── 11. Responsive ── */
@media (max-width: 640px) {
  .nav-burger {
    display: flex;
  }
  .nav-links,
  .nav-actions,
  .nav-right {
    display: none !important;
  }
  /* Prevent edge-to-edge content */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  /* Stack two-column form rows */
  .field-row {
    grid-template-columns: 1fr;
  }
  /* Clamp anything that might still overflow */
  * {
    max-width: 100%;
  }
  /* …except elements that must be wider than the viewport (fixed overlays etc.) */
  .modal-overlay,
  .nav-drawer {
    max-width: none;
  }
}
