/* =============================================================================
   /styles/index_style.css
   Single stylesheet (ordered + annotated)
   Order: 1) GLOBAL, 2) HEAD (header/nav), 3) BODY (main/index sections),
          4) FOOT (footer), 5) APPOINTMENT (modal & toast), 6) RESPONSIVE
   Upload location: /styles/index_style.css
   ============================================================================= */

/* =========================
   GLOBAL / RESET / UTILITIES
   - tokens, resets, container utility
   ========================= */
:root{
  --bg:#fff7f6;
  --warm-1:#ff6b6b;
  --warm-2:#ff8a5b;
  --muted:#6b7280;
  --card:#ffffff;
  --rounded:18px;
  --container:1100px;
  --accent:#ff6a00;
  --footer-bg:#544545;
  --footer-accent:#ff6a00;
  --muted-white:#f4efec;
  --muted-gray:#cfc6c4;

  --header-max:1100px;
  --header-left-width:220px;
  --header-right-width:220px;
  --header-gap:12px;

  --modal-accent:#146bff; /* blue for hover underline */
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  color:#071233;
  background:
    radial-gradient(900px 350px at 10% 12%, rgba(255,107,107,0.03), transparent 18%),
    radial-gradient(700px 300px at 88% 80%, rgba(255,138,91,0.02), transparent 14%),
    var(--bg);
}

/* shared container used in header/main/footer for alignment */
.container{ max-width:var(--container); margin:0 auto; padding:20px; }

/* small utilities */
.hidden{ display:none !important; }

/* =============================================================================
   HEAD SECTION (HEADER / NAV)
   ============================================================================= */
.site-header{
  width:100%;
  background:#fff;
  border-bottom:1px solid rgba(12,20,30,0.04);
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 6px 20px rgba(8,16,28,0.04);
  -webkit-font-smoothing:antialiased;
}

.header-inner{
  max-width:var(--header-max);
  margin:0 auto;
  display:grid;
  grid-template-columns: var(--header-left-width) 1fr var(--header-right-width);
  align-items:center;
  gap:var(--header-gap);
  padding:18px 20px;
}

.logo img{
  height:56px;
  width:auto;
  display:block;
  object-fit:contain;
}

.nav-links {
  display:flex;
  justify-content:center;
  gap:28px;
  align-items:center;
  margin:0;
  padding:0;
  list-style:none;
  white-space:nowrap;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.nav-links .nav-book { display: none; }

.nav-links a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#444c51;
  font-weight:600;
  font-size:17px;
  line-height:1.2;
  padding:8px 16px;
  border-radius:999px; /* pill radius */
  position:relative;    /* for underline */
  transition: color 0.25s ease;
}
.nav-links a span { display:inline-block; text-align:center; }

/* animated blue underline on hover/focus-visible */
.nav-links a::after {
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0%;
  height:3px;
  background-color: var(--modal-accent);
  border-radius:2px;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width:100%;
}

/* Active page remains orange pill with shadow */
.nav-links a.active {
  background: var(--accent);
  color:#fff;
  box-shadow: 0 4px 12px rgba(255,106,0,0.25);
}

/* remove old background hover */
.nav-links a:hover,
.nav-links a:focus {
  background:none;
  color:inherit;
  transform:none;
}

/* CTA (head-right) */
.cta{ display:flex; justify-content:flex-end; align-items:center; }
.appointment-btn{
  background: linear-gradient(180deg, #3f8bff, #0f5fe6);
  color:#fff;
  font-weight:800;
  font-size:15px;
  padding:10px 18px;
  border-radius:12px;
  box-shadow:0 16px 44px rgba(15,95,230,0.16);
  border:none;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.appointment-btn:hover{ transform: translateY(-3px); box-shadow: 0 22px 54px rgba(15,95,230,0.22); }

.menu-toggle{
  display:none;
  background:none;
  border:none;
  font-size:22px;
  cursor:pointer;
  color:#333;
}

/* keep accessible outlines but prefer focus-visible for link underline logic */
.nav-links a:focus, .menu-toggle:focus, .appointment-btn:focus{
  outline:3px solid rgba(20,96,255,0.12);
  outline-offset:3px;
}

/* responsive breakpoints */
@media (max-width:1000px){
  .header-inner{ grid-template-columns:160px 1fr 160px; padding:14px 16px; }
  .logo img{ height:50px; }
  .nav-links{ gap:24px; }
  .nav-links a{ font-size:16px; padding:7px 12px; }
  .appointment-btn{ padding:8px 14px; font-size:14px; }
}

@media (max-width:760px){
  .header-inner{ grid-template-columns:1fr auto auto; padding:10px 12px; }
  .logo{ justify-self:start; }
  .logo img{ height:44px; }

  .nav-links{
    display:none;
    flex-direction:column;
    position:fixed;
    top:68px;
    left:12px;
    right:12px;
    background:#fff;
    padding:12px;
    gap:12px;
    border-radius:12px;
    border:1px solid rgba(8,16,28,0.04);
    box-shadow:0 22px 60px rgba(4,12,24,0.12);
    z-index:1400;
    white-space:normal;
    overflow:visible;
  }

  .nav-links .nav-book { display: block; }

  .nav-links a{ padding:10px 14px; font-size:16px; color:#111; display:block; border-radius:8px; }
  .cta{ display:none; }
  .menu-toggle{ display:inline-block; justify-self:end; }

  .site-header.active .nav-links{ display:flex; }

  /* Make sure the active link always shows the orange pill on mobile */
  .site-header .nav-links a.active {
    background: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255,106,0,0.25);
    border-radius: 8px;
    padding: 10px 14px;
  }

  /* Prevent double-styling: remove blue focus outline on the active pill when menu is open.
     Focus is intentionally moved to the nav container by JS for accessibility, so this
     rule is a defensive visual tweak only. */
  .site-header.active .nav-links a.active:focus {
    outline: none !important;
    box-shadow: 0 6px 18px rgba(255,106,0,0.18) !important;
  }

  .nav-links .nav-book {
    background: linear-gradient(180deg, #3f8bff, #0f5fe6);
    color: #fff;
    font-weight:700;
    text-align:center;
    padding:10px 12px;
    border-radius:10px;
  }
}

@media (max-width:520px){
  .nav-links{ gap:12px; }
  .header-inner{ grid-template-columns:1fr auto; }
  .menu-toggle{ order:3; }
}

.site-header { z-index:1200; }


/* ==========================================================================
   ATNAC Fitness — Contact / Map / FAQ / Hours
   ========================================================================== */

/* ---------------------------- Shared helpers ----------------------------- */
:root{
  --atnac-max: 1100px;
  --atnac-radius: 14px;
  --atnac-gap: 20px;
  --teal-900: #063f35;
  --teal-700: #047857;
  --teal-500: #10b981;
  --teal-400: #34d399;
  --muted-700: #334b48;
  --bg-soft: #f7faf9;
}

/* ============================ CTA ============================ */
.ctabox-section {
  padding: 40px 20px;
  background: var(--bg-soft);
  color: var(--teal-900);
  margin-bottom: -20px;
  position: relative;
}
.ctabox-section::after{
  content: "";
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 20px;
  background: linear-gradient(120deg, rgba(6,95,70,0.18), rgba(6,95,70,0.08), transparent);
  background-size: 200% 100%;
  animation: shimmer-shared 6s linear infinite;
  pointer-events: none;
}

.ctabox-container {
  max-width: var(--atnac-max);
  margin: 0 auto;
  padding: 34px 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--atnac-gap);

  background: linear-gradient(135deg, #0e7490, #0891b2);
  color: #fff;
  border-radius: calc(var(--atnac-radius) - 2px);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 22px rgba(2,6,23,0.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ctabox-container:hover{ transform: translateY(-4px); box-shadow: 0 14px 32px rgba(2,6,23,0.22); }

.ctabox-text{ flex: 1 1 50%; min-width: 220px; }
.ctabox-title{ font-size: 1.9rem; margin: 0 0 6px; line-height:1.1; font-weight: 800; }
.ctabox-text p{ margin: 0; opacity: .95; font-weight: 500; }

.ctabox-buttons{
  flex: 1 1 45%;
  display:flex; gap:12px; flex-wrap: wrap; justify-content:flex-end;
}
.ctabox-btn{
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight:700;
  text-decoration:none;
  display:inline-flex; align-items:center; gap:8px;
  box-shadow: 0 4px 10px rgba(2,6,23,0.12);
  transition: transform .14s ease, opacity .14s ease;
  color: var(--teal-900);
}
.ctabox-btn:hover{ transform: translateY(-3px); opacity: .98; }

/* button tones */
.call-btn{ background: #a7f3d0; }
.whatsapp-btn{ background: #bbf7d0; }
.callback-btn{ background: #e6fffa; color: var(--teal-900); }

@media (max-width: 768px){
  .ctabox-buttons {
    position: sticky;
    bottom: 10px;
    z-index: 30;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    background: transparent; /* fix */
  }
  .ctabox-btn{ flex:1; text-align:center; }
}

/* ============================ Map ============================ */
.mapbox-section{
  padding: 40px 20px;
  background: var(--bg-soft);
  margin-bottom: -20px;
  position: relative;
}
.mapbox-section::after{
  content: "";
  position: absolute; bottom: -1px; left: 0; width:100%; height:20px;
  background: linear-gradient(120deg, rgba(6,95,70,0.12), rgba(6,95,70,0.06), transparent);
  background-size: 200% 100%;
  animation: shimmer-shared 6s linear infinite;
  pointer-events:none;
}

.mapbox-container{
  max-width: var(--atnac-max);
  margin: 0 auto;
  display:flex; flex-wrap:wrap; gap:24px;
}
.mapbox-map, .mapbox-details{
  flex: 1 1 48%;
  min-height: 350px;
  background: #fff;
  border: 1px solid #e6eef0;
  border-radius: var(--atnac-radius);
  box-shadow: 0 8px 20px rgba(2,6,23,0.06);
  padding: 18px;
  display:flex; flex-direction: column; justify-content: center;
  transition: box-shadow .2s ease;
}
.mapbox-map:hover, .mapbox-details:hover{ box-shadow: 0 14px 30px rgba(2,6,23,0.08); }

.mapbox-map iframe{ flex:1; border:none; border-radius: 10px; width:100%; height:100%; }

/* Address box */
.mapbox-details{ text-align:left; align-items:flex-start; }
.mapbox-title {
  position: relative;
  font-size: 1.6rem;
  margin-bottom: 14px;
  color: #044e3b;
  font-weight: 800;
  text-align: center;
  width: 100%;
}

/* underline element */
.mapbox-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 60%;
  height: 3px;
  background-color: #10b981; /* ATNAC teal */
  animation: underlineGrow 0.6s ease forwards;
}

/* keyframes for the draw-in */
@keyframes underlineGrow {
  to {
    transform: translateX(-50%) scaleX(1);
  }
}

.mapbox-sub{ color: var(--muted-700); margin-bottom:12px; }
.mapbox-list{ list-style:none; padding:0; margin:0; font-size:1rem; width:100%; }
.mapbox-list li{ margin-bottom:12px; display:flex; gap:12px; align-items:flex-start; }
.mapbox-icon{ font-size:20px; line-height:1; }

/* ============================ FAQ + Hours ============================ */
.faqhours-section{
  padding: 40px 20px;
  background: var(--bg-soft);
  position: relative;
}
.faqhours-section::after{
  content: "";
  position: absolute; bottom: -1px; left: 0; width:100%; height:20px;
  background: linear-gradient(120deg, rgba(72,187,120,0.12), rgba(72,187,120,0.06), transparent);
  background-size: 200% 100%;
  animation: shimmer-shared 6s linear infinite;
  pointer-events:none;
}

.faqhours-container{
  max-width: var(--atnac-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: stretch;
}

/* FAQ column */
.faqbox-wrap{
  background:#fff;
  border:1px solid #e6eef0;
  border-radius: calc(var(--atnac-radius) - 2px);
  padding: 18px;
  box-shadow: 0 8px 20px rgba(2,6,23,0.06);
  display:flex; flex-direction:column;
}
.faqbox-wrap:hover{ box-shadow: 0 14px 30px rgba(2,6,23,0.08); }

.faqbox-title{ font-size:1.7rem; margin:0 0 16px; text-align:center; color:var(--teal-900); }
.faqbox-accordion{ flex:1; overflow-y:auto; max-height:520px; padding-right:6px; }

.faqbox-item{ border-bottom:1px solid #eef6f5; }
.faqbox-question{
  width:100%; text-align:left; padding:14px; background:none; border:none;
  font-size:1.02rem; font-weight:700; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center;
  color: var(--teal-900);
}
.faqbox-icon{ font-size:20px; transition: transform .25s, font-size .25s; color: var(--teal-700); }

/* Answer box collapsed/expanded */
.faqbox-answer{
  max-height: 0;
  overflow: hidden;
  padding: 0 14px;
  margin: 0 14px 0;
  font-size:0.96rem; line-height:1.55; color: var(--muted-700);
  border-radius:8px; border:1px solid transparent; background:transparent;
  transition: max-height .36s ease, padding .28s ease, border .28s ease, background .28s ease;
}
.faqbox-answer.open{
  padding:14px;
  margin: 0 14px 14px;
  border:1px solid #e6eef0;
  background:#fff;
  box-shadow: 0 6px 12px rgba(2,6,23,0.04);
  max-height: 1000px; /* large enough for content */
}

/* ============================ Hours styles ============================ */
.hoursbox-wrap{
  background:#fff;
  border:1px solid #e6eef0;
  border-radius: calc(var(--atnac-radius) - 2px);
  padding:18px;
  box-shadow: 0 8px 20px rgba(2,6,23,0.06);
  display:flex; flex-direction:column; justify-content:flex-start;
}
.hoursbox-wrap:hover{ box-shadow: 0 14px 30px rgba(2,6,23,0.08); }

.hoursbox-title{ font-size:1.25rem; margin:0 0 12px; text-align:center; color:var(--teal-900); }
.hoursbox-status{
  font-size:1.1rem; margin-bottom:14px; font-weight:700;
  display:flex; justify-content:center; align-items:center; gap:8px;
}
.hoursbox-dot{ display:inline-block; width:14px; height:14px; border-radius:50%; }
.hoursbox-dot.open{ background: var(--teal-500); box-shadow: 0 0 6px var(--teal-500); }
.hoursbox-dot.closed{ background: #ef4444; box-shadow: 0 0 6px #ef4444; }
#hoursbox-text.open{ color: var(--teal-500); }
#hoursbox-text.closed{ color: #ef4444; }

.hoursbox-table{ width:100%; margin:0 auto; border-collapse:collapse; font-size:0.95rem; }
.hoursbox-table td{ padding:8px 10px; }

.hoursbox-next{
  margin-top:14px; font-size:0.98rem; font-weight:700; color: var(--teal-700);
  text-align:center; background: rgba(16,185,129,0.06);
  border: 1px solid rgba(4,120,87,0.12); border-radius:8px;
  padding:8px 12px; display:inline-block; box-shadow: 0 4px 10px rgba(4,120,87,0.06);
}
.hoursbox-next.pulse{ animation: pulseGlow 2s infinite; }

/* ============================ Animations & misc ============================ */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 4px rgba(16,185,129,0.4); }
  50% { box-shadow: 0 0 12px rgba(16,185,129,0.7); }
  100% { box-shadow: 0 0 4px rgba(16,185,129,0.4); }
}
@keyframes shimmer-shared { 0%{ background-position:200% 0 } 100%{ background-position:-200% 0 } }

/* ============================ Responsive tweaks ============================ */
@media (max-width: 992px){
  .mapbox-map, .mapbox-details{ min-height: 300px; }
  .ctabox-title{ font-size: 1.6rem; }
}
@media (max-width: 768px){
  .faqhours-container{ grid-template-columns: 1fr; }
  .faqbox-accordion{ max-height: none; overflow: visible; padding-right: 0; }
  .hoursbox-wrap{ text-align:center; }
  .mapbox-container{ align-items:flex-start; }
  .mapbox-details{ max-height:none; overflow:visible; text-align:left; }
}

/* Accessibility: focus states */
.faqbox-question:focus, .ctabox-btn:focus, .mapbox-details a:focus {
  outline: 3px solid rgba(16,185,129,0.18);
  outline-offset: 3px;
}

/* Small utility */
.hidden-visually { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }



/* =============================================================================
   FOOT SECTION (FOOTER)
   - contact block, footer nav, copyright, small meta
   - edit here to change footer look/spacing
   ============================================================================= */
/* =============================================================================
   FOOT SECTION (FOOTER)
   Harmonized with header + body (light background, dark text, accent orange)
   Layout:
     - Top row: left logo + right social icons
     - Middle: contact block
     - Nav
     - Bottom: copyright
   ============================================================================= */
.site-footer {
  background: #ffffff; /* clean white to match header/body */
  color: #444c51;      /* dark gray text */
  padding: 28px 20px;
  text-align: center;
  border-top: 2px solid rgba(0,0,0,0.05); /* subtle divider */
  box-sizing: border-box;
}

.site-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Top row: logo + centered contact + social icons --- */
.footer-top,
.footer-row {
  /* support both class names (you used footer-top earlier, footer-row later) */
  display: flex;
  align-items: center;            /* vertically align logo, contact, socials */
  justify-content: space-between; /* logo left, socials right, contact center */
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* Logo sizing */
.footer-logo img {
  height: 56px;
  width: auto;
  display: block;
}

/* Center contact block (keeps centered and vertically aligned) */
.contact-block {
  flex: 1 1 520px;    /* grow/shrink with a comfortable min width */
  text-align: center;
  padding: 6px 12px;
}
.contact-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #071233;
}
.contact-details {
  font-size: 15px;
  color: #444c51;
  line-height: 1.6;
}

/* --- Social icons (clean SVGs or text inside circles) --- */
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

/* generic circle button */
.footer-social .circle,
.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  line-height: 1;
  box-shadow: none;
}

/* svg sizing inside */
.footer-social svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
}

/* brand colors */
.footer-social .email    { background: #6b7280; }                /* neutral gray */
.footer-social .upwork   { background: #6fda44; color: #0b2b0b; } /* Upwork green */
.footer-social .instagram{ background: linear-gradient(45deg,#feda75,#f776b3 50%,#3f0d91); } /* IG gradient */
.footer-social .youtube  { background: #ff0000; }                /* YouTube red */

/* hover effects */
.footer-social .circle:hover,
.footer-social a:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  text-decoration: none;
}

/* platform-specific hover tint (optional subtle tint / fallback) */
.footer-social a.upwork:hover    { filter: brightness(0.95); }
.footer-social a.youtube:hover   { filter: brightness(0.95); }
.footer-social a.instagram:hover { filter: saturate(1.05) brightness(0.98); }

/* --- Footer nav + copyright --- */
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}
.footer-nav a {
  position: relative;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 4px; /* space for underline */
  overflow: hidden;
}
/* create the underline (hidden by default) */
.footer-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%; /* start from center */
  width: 0;
  height: 2px;
  background: #2563eb; /* a crisp blue */
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}

/* animate underline on hover */
.footer-nav a:hover::after,
.footer-nav a:focus::after {
  width: 100%;
  left: 0;
}
.footer-nav a:hover,
.footer-nav a:focus { color: #e05600; transform: translateY(-2px); }

.site-footer .copyright {
  margin-top: 8px;
  color: #6b7280; /* muted gray */
  font-size: 14px;
  letter-spacing: 0.2px;
  line-height: 1.4;
}

/* --- AIWENS credit link styling (inline in copyright) --- */
.site-footer .copyright .aiwens-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  color: var(--accent);
  font-weight: 700;
  margin-left: 6px;
  transition: filter .12s ease, transform .12s ease;
  display: inline-block;
}

/* Hover and focus affordance (accessible) */
.site-footer .copyright .aiwens-link:hover,
.site-footer .copyright .aiwens-link:focus {
  filter: brightness(0.95);
  transform: translateY(-1px);
  outline: 3px solid rgba(37,99,235,0.12);
  outline-offset: 3px;
}

/* If user prefers reduced motion, reduce transform on hover */
@media (prefers-reduced-motion: reduce) {
  .site-footer .copyright .aiwens-link {
    transition: none;
  }
  .site-footer .copyright .aiwens-link:hover,
  .site-footer .copyright .aiwens-link:focus {
    transform: none;
  }
}

/* --- Mobile adjustments --- */
@media (max-width:1000px) {
  /* make the contact block full width earlier so logo and socials stack nicely */
  .contact-block { flex-basis:100%; order:2; }
  .footer-logo { order:1; width:100%; text-align:center; margin-bottom:8px; }
  .footer-social { order:3; width:100%; justify-content:center; margin-top:8px; }

  /* slightly increase tappable area for the credit link on small screens */
  .site-footer .copyright .aiwens-link {
    padding: 6px 8px;
    border-radius: 6px;
  }
}

@media (max-width:600px){
  .footer-top,
  .footer-row { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .footer-logo img { height: 48px; }
  .footer-social { justify-content: center; }
}


/* =============================================================================
   APPOINTMENT SECTION (MODAL + TOAST)
   - modal markup + form styles + toast
   - keep form validation/JS separate in /scripts/appointment.js
   ============================================================================= */
/* Appointment modal base (existing rules preserved + small enhancements) */
.appointment-modal[aria-hidden="true"]{ display:none; }

/* Container keeps a safe gutter so panel never touches viewport edges and allows page-level scrolling
   if the panel can't fit (prevents top/bottom overflow on desktop & mobile) */
.appointment-modal{
  position:fixed;
  inset:0;
  z-index:1400;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;               /* larger safe top/bottom gutter for desktop/laptop */
  box-sizing:border-box;
  overflow:auto;              /* allow page scroll when necessary */
  -webkit-overflow-scrolling:touch;
}

.appointment-backdrop{ position:absolute; inset:0; background:rgba(6,12,24,0.45); transition:opacity .2s ease; }

/* Panel: preserved look but constrained to viewport height and scrolls internally */
.appointment-panel{
  position:relative;
  width:92%;
  max-width:720px;
  background:#fff;
  border-radius:12px;
  box-shadow:0 20px 50px rgba(12,18,30,0.12);
  padding:24px 28px;         /* slightly larger padding on desktop */
  z-index:2;
  transform:translateY(12px);
  animation: modal-entrance .18s cubic-bezier(.2,.9,.2,1);

  /* keep panel within viewport and enable internal scrolling; larger vertical gap */
  max-height: calc(100vh - 120px); /* at least 60px gap top & bottom on desktop */
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

@keyframes modal-entrance{ from{ opacity:0; transform:translateY(24px) scale(.995)} to{ opacity:1; transform:translateY(0) scale(1) } }

.modal-close{ position:absolute; right:12px; top:12px; background:transparent; border:none; font-size:20px; line-height:1; cursor:pointer; color:#4b5259; }
#appointment-title{ margin:0 0 8px 0; font-size:20px; font-weight:700; color:#4b5259; }
#appointment-form{ display:grid; gap:12px; margin-top:6px }

/* Rows & fields (use .form-row and generic .field compatibility) */
.form-row, .field { display:flex; flex-direction:column; gap:6px; }
.form-row label, .field label{ font-size:13px; color:#4b5259; }
.form-row input, .form-row select, .form-row textarea,
.field input, .field select, .field textarea {
  padding:10px 12px;
  border-radius:8px;
  border:1px solid rgba(16,24,40,0.08);
  background:#fff;
  font-size:15px;
  outline:none;
  transition: box-shadow .12s ease, border-color .12s ease;
}

/* Date and time specific tweaks for better cross-browser appearance */
input[type="date"], input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  caret-color: auto;
}
input[type="time"] { width: 170px; max-width:100%; }

/* Focus styles (consistent with modal look) */
.form-row input:focus, .form-row select:focus, .form-row textarea:focus,
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow:0 6px 18px rgba(20,96,255,0.08);
  border-color:var(--modal-accent);
}

/* Hints (small helper text under fields) */
.form-row .hint, .field .hint, small.hint {
  display:block;
  font-size:12px;
  color:#64707a;
  margin-top:4px;
}

/* Form actions / buttons */
.form-actions{ display:flex; gap:10px; justify-content:flex-end; align-items:center; margin-top:6px; }
.btn.submit-btn{ background: linear-gradient(180deg, var(--modal-accent), #0a4dd1); color:#fff; padding:10px 16px; border-radius:10px; border:none; cursor:pointer; }
.btn.submit-btn[disabled]{ opacity:.6; cursor:not-allowed; }
.btn.btn-ghost{ background:transparent; color:#4b5259; border:1px solid rgba(16,24,40,0.06); }

/* Form status area (where we show errors & spinner) */
.form-status{
  min-height:20px;
  font-size:13px;
  color:#e03a3a; /* error-ish */
  margin-top:6px;
  display:flex;
  gap:8px;
  align-items:center;
}

/* Spinner used when submitting */
.spinner{
  display:inline-block;
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid rgba(0,0,0,0.08);
  border-top-color: rgba(0,0,0,0.28);
  animation: spin .9s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* toast */
.appointment-toast{ position:fixed; right:18px; bottom:18px; background:#fff; border-radius:10px; box-shadow:0 12px 36px rgba(12,18,30,0.12); padding:12px 14px; display:flex; gap:12px; align-items:center; z-index:1500; min-width:260px; max-width:360px; }
.appointment-toast[aria-hidden="true"]{ display:none; }

/* toast internals */
.appointment-toast .toast-message{ flex:1; font-size:14px; color:#21343b; line-height:1.2; }
.appointment-toast .toast-close{ background:transparent; border:none; font-size:18px; line-height:1; cursor:pointer; color:#4b5259; padding:0 6px; }

/* When JS sets inline border-left for error vs success, we allow it to show nicely */
.appointment-toast{ border-left: 4px solid transparent; }

/* Small utilities */
label.required::after{ content: " *"; color:#e03a3a; margin-left:2px; font-weight:600; font-size:12px; }

/* =============================================================================
   RESPONSIVE RULES (GROUPED) - preserved and lightly adjusted
   ============================================================================= */
@media (max-width:1000px){
  .two-col{ grid-template-columns:1fr; }
  .service-grid{ grid-template-columns: repeat(3,1fr); }
  .stats-wrap{ grid-template-columns:1fr; }
  .stats-panel{ flex-direction:column; gap:16px; }
  .container{ padding:16px; }
}

@media (max-width:720px){
  .service-grid{ grid-template-columns:1fr; gap:18px; }
  .service-card{ max-width:420px; margin:auto; }
  .why-cards{ grid-template-columns:1fr 1fr; gap:12px; }
  .hero-left{ padding:22px; min-height:auto; }
  .hero-right{ padding:18px; }
  .hero-h{ font-size:1.45rem; }
  .price-large{ font-size:36px; }
  .right-ctas{ flex-direction:column; gap:10px; }
  .stats-panel{ padding:16px; }
  .site-footer{ padding:18px 12px; }
  .site-footer .contact-title{ font-size:22px; }
  .site-footer .contact-details{ font-size:15px; }
  .site-footer .footer-nav a{ font-size:16px; }
  .menu-toggle{ display:block; }
  .nav-links{ display:none; } /* toggled by index.js adding .active to .site-header */
  .cta{ display:none; } /* desktop CTA hidden on mobile */

  /* Modal tweaks for small screens: compact floating card */
  .appointment-modal{ padding:32px; } /* keep nice gap at edges */
  .appointment-panel{
    width:95%;              /* take almost full width */
    max-width:500px;        /* allow wider card on modern phones */
    padding:14px 16px;      /* reduce padding to save height */
    border-radius:14px;
    max-height: calc(100vh - 80px); /* shorter vertically */
  }
  .form-actions{
    flex-direction:column-reverse;
    gap:8px;
    align-items:stretch;
  }
	  .btn.submit-btn, .btn.btn-ghost{
    width:100%;
    justify-content:center;
  }

  input[type="time"]{ width:100%; }

  /* slightly smaller typography for compactness */
  #appointment-title{ font-size:16px; }
  .form-row input, .form-row select, .form-row textarea,
  .field input, .field select, .field textarea { font-size:14px; padding:9px 10px; }
}

/* Additional tweak for very short viewports so panel padding shrinks a bit */
@media (max-height:600px){
  .appointment-panel{ padding:12px 14px; max-height: calc(100vh - 40px); }
}
@media (max-width:420px){
  .appointment-panel{
    max-width:380px;
    padding:10px 12px;
    max-height: calc(100vh - 60px);
  }
  #appointment-title{ font-size:16px; }
}


/* end of file */
