@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f7f7fa;
  color: #232323;
  margin: 0;
  padding: 2rem;
}

/* Price List Sections */
section {
  margin-bottom: 2.5em;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 24px rgba(0,0,0,0.03);
  padding: 2em 1.5em;
}

h2 {
  text-align: left;
  color: #c04073;
  font-size: 1.4em;
  margin-bottom: 0.2em;
  font-weight: 700;
}

/* Pricing Table Structure */
.pricelist-table {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) 2fr;
  gap: 0.6em 2em;
}

.pricelist-row {
  display: contents; /* Keeps grid alignment, no flex here */
}

/* Treatment Name */
.pricelist-treatment {
  font-weight: 600;
  padding: 0.2em 0 0.3em 0;
  letter-spacing: 0.01em;
  color: #5a1300;
}

/* Price and Time Chips/Options - Desktop */
.pricelist-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: baseline;
  padding-bottom: 0.5em;
}

.option-chip {
  display: inline-block;
  background: #fffdf1;
  color: #5a1300;
  padding: 0.36em 0.7em;
  border-radius: 20px;
  font-size: 1em;
  box-shadow: 0 1px 0 #dad8ed;
  font-weight: 500;
  transition: background 0.2s;
}

.option-chip:hover,
.option-chip:focus {
  background: #ecdeec;
  outline: none;
}

/* Diver: subtle row separation */
.pricelist-treatment:not(:last-child) {
  border-bottom: 1px solid #f1eaf6;
}

/* Responsive: Collapse to two-row per treatment on mobile */
@media (max-width: 700px) {
  section {
    padding: 1.3em 0.7em;
  }
  .pricelist-table {
    grid-template-columns: 1fr;
    gap: 0.25em 0;
  }
  .pricelist-row {
    display: block;
    border-bottom: 1px solid #ede6e7;
    margin-bottom: 0.7em;
  }
  .pricelist-treatment {
    padding-bottom: 0.2em;
    font-size: 1.08em;
  }
  .pricelist-options {
    padding: 0 0 0.6em 0;
    gap: 0.5em 1.5em;
    font-size: 1.01em;
  }
}

/* Accessibility & Focus */
option-chip:focus {
  outline: 2px dashed #9e3488;
}

/* Print Styles */
@media print {
  body {
    background: #fff;
    color: #111;
    padding: 0.5em;
  }
  section,
  .pricelist-table,
  .option-chip {
    background: none;
    box-shadow: none;
    border: none;
    color: #111;
  }
  .pricelist-row,
  .pricelist-treatment,
  .pricelist-options {
    padding: 0.08em 0;
    margin: 0;
    border: none;
  }
}


/* web3forms*/
.invalid-feedback,
.empty-feedback {
  display: none;
}

.was-validated :placeholder-shown:invalid ~ .empty-feedback {
  display: block;
}

.was-validated :not(:placeholder-shown):invalid ~ .invalid-feedback {
  display: block;
}

.is-invalid,
.was-validated :invalid {
  border-color: #dc3545;
}

/* Added following to fix in page menu links to stop menu overwriting toip line */
html{scroll-behavior:smooth;}
[id] { scroll-margin-top:150px;}

/* Added following to add floating message */
.floating-message {
  position: fixed;
  bottom: 220px;
  right: -300px;            /* start off-screen to the right */
  background: #ff4081;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 9999;
  opacity: 0;               /* start invisible */
  transition: right 3.8s ease, opacity 3.8s ease;
}
/* This also for floating message */
/* When active, slide in and show */
.floating-message.active {
  right: 50px;
  opacity: 1;
}

/* Following for floating message saying sorry can't book this treatment online etc */
:root {
  --modal-bg: rgba(0,0,0,0.45);
  --panel-bg: #ffffff;
  --panel-radius: 10px;
  --accent: #B36B8F; /* change to your chosen hex */
  --max-width: 520px;
  --gap: 1rem;
  font-family: inherit;
}
/* Add to your stylesheet */
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.45); padding: 1rem; z-index: 9999; }
.modal[hidden] { display: none !important; } /* critical so hidden works */
.modal-panel { background: #fff; border-radius: 10px; max-width: 520px; width: 100%; padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.modal-close { margin-top: 0.75rem; background:#B36B8F; color:#fff; border:none; padding:0.5rem 0.75rem; border-radius:6px; cursor:pointer; }
@media (max-width:480px) { .modal-panel { margin: 0 0.5rem; font-size:0.95rem; } }


