/* Rockland Beauty — shared ContactDialog styles (standalone).
   One stylesheet for the rounded "Contact Rockland Beauty" dialog on every
   page (Home, /about, /treatments, ...). Colors are self-contained so the
   dialog renders identically regardless of the page's own design tokens. */

.index2-dialog,
.index2-dialog-layer {
  --cd-cream: #fdf9f2;
  --cd-cream-2: #f6edde;
  --cd-cream-3: #efe3d1;
  --cd-plum: #413033;
  --cd-plum-2: #573f43;
  --cd-muted: #7a6a68;
  --cd-line: rgba(65, 48, 51, .12);
  --cd-gold: #e7c091;
  --cd-radius-lg: 40px;
}

/* mode fieldsets rely on the hidden attribute; flex display would override it */
.index2-dialog [hidden] { display: none !important; }

.index2-dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(44, 31, 33, .5);
  opacity: 0;
  transition: opacity .3s ease;
}
.index2-dialog-layer.is-open { opacity: 1; }
.index2-dialog {
  position: fixed;
  z-index: 90;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%) scale(.98);
  width: min(560px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  /* The strip is hidden; wheel and touch still scroll the dialog. */
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
  background: var(--cd-cream);
  color: var(--cd-plum);
  border-radius: var(--cd-radius-lg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  font-family: "HelveticaNowDisplay-Regular", Arial, sans-serif;
  text-align: left;
}

.index2-dialog::-webkit-scrollbar { width: 0; height: 0; display: none; }
.index2-dialog.is-open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.index2-dialog a { color: inherit; }
.index2-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px !important;
  border: 1px solid var(--cd-line);
  background: var(--cd-cream-2);
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.index2-dialog__close::before,
.index2-dialog__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--cd-plum);
  border-radius: 2px;
}
.index2-dialog__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.index2-dialog__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.index2-dialog__close:hover { background: var(--cd-cream-3); transform: rotate(90deg); }
.index2-dialog__inner { padding: clamp(28px, 5vw, 48px); }
.index2-dialog__title {
  font-family: "Hatton-Medium", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
.index2-dialog__intro {
  color: var(--cd-muted);
  margin: 0 0 26px;
}
.index2-dialog__modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 26px;
}
.index2-dialog__modes input { position: absolute; opacity: 0; pointer-events: none; }
.index2-dialog__modes label {
  display: block;
  text-align: center;
  padding: 15px 12px;
  border: 1px solid var(--cd-line);
  border-radius: 999px;
  cursor: pointer;
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.index2-dialog__modes input:checked + label {
  background: var(--cd-plum);
  color: var(--cd-cream);
  border-color: var(--cd-plum);
}
.index2-dialog__modes input:focus-visible + label {
  outline: 3px solid var(--cd-gold);
  outline-offset: 2px;
}
.index2-dialog__fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 0;
  padding: 0;
  margin: 0 0 6px;
}
.index2-field { display: flex; flex-direction: column; gap: 8px; }
.index2-field label {
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: .94rem;
}
.index2-field label span { color: var(--cd-muted); font-weight: 400; }
.index2-field input,
.index2-field textarea {
  border: 1px solid var(--cd-line) !important;
  border-radius: 14px !important;
  background: var(--cd-cream-2) !important;
  padding: 14px 16px !important;
  font-size: 1rem;
  color: var(--cd-plum);
  font-family: "HelveticaNowDisplay-Regular", Arial, sans-serif;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.index2-field textarea { min-height: 96px; resize: vertical; }
.index2-field input:focus,
.index2-field textarea:focus {
  border-color: var(--cd-plum) !important;
  box-shadow: 0 0 0 3px rgba(65, 48, 51, .12);
  outline: none;
}
.index2-dialog__note {
  font-size: .9rem;
  color: var(--cd-muted);
  margin: 18px 0 22px;
}
/* Submit button: full pill definition so the dialog renders correctly on
   pages that do not load the Home stylesheet. */
.index2-dialog .index2-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 1.12em 1.95em;
  border-radius: 999px !important;
  border: 0;
  cursor: pointer;
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--cd-cream);
  background: var(--cd-plum);
  box-shadow: 0 16px 30px -18px rgba(46, 32, 34, .6);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.index2-dialog .index2-button:hover {
  transform: translateY(-2px);
  background: var(--cd-plum-2);
  box-shadow: 0 22px 40px -20px rgba(46, 32, 34, .55);
}
.index2-dialog .index2-button:focus-visible {
  outline: 3px solid var(--cd-gold);
  outline-offset: 3px;
}
.index2-ripple__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  white-space: inherit;
}
.index2-ripple__ink {
  position: absolute;
  border-radius: 50%;
  background: rgba(231, 192, 145, .5);
  transform: scale(0);
  animation: cd-ripple .7s ease-out forwards;
  pointer-events: none;
}
@keyframes cd-ripple {
  to { transform: scale(1); opacity: 0; }
}
.index2-dialog__status {
  margin-top: 14px;
  font-size: .94rem;
  color: var(--cd-plum);
  min-height: 1em;
}
.index2-dialog__direct {
  margin: 22px 0 0;
  font-size: .96rem;
  color: var(--cd-muted);
}
.index2-dialog__direct a { color: var(--cd-plum); font-weight: 500; }
body.index2-dialog-open { overflow: hidden; }
