/* ═══════════════════════════════════════════════════════════════
   SANTOO — FLOATING ELEMENTS
   FAB buttons · Modals · Cookie consent · Form styles
   Append to main stylesheet or link as separate file
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables (inherits from site, fallbacks here) ─────────── */
:root {
  --santoo-burgundy:    #5B1A2E;
  --santoo-burgundy-dk: #4A1525;
  --santoo-white:       #FFFFFF;
  --santoo-offwhite:    #F8F6F7;
  --santoo-text:        #1A1A1A;
  --santoo-muted:       #6B6B6B;
  --santoo-border:      #E8E0E3;
  --santoo-radius:      8px;
  --santoo-shadow:      0 8px 40px rgba(91,26,46,.18);
  --santoo-fab-size:    58px;
}

/* ── FAB Group ───────────────────────────────────────────────── */
.santoo-fab-group {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 9000;
}

.santoo-fab {
  display: flex;
  align-items: center;
  height: var(--santoo-fab-size);
  width: var(--santoo-fab-size);
  min-width: var(--santoo-fab-size);
  padding: 0;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
  transition: width 0.25s ease, min-width 0.25s ease, padding-right 0.25s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}

.santoo-fab__icon {
  flex: 0 0 var(--santoo-fab-size);
  width: var(--santoo-fab-size);
  height: var(--santoo-fab-size);
  display: flex;
  align-items: center;
  justify-content: center;
}

.santoo-fab__label {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, max-width 0.25s ease;
  pointer-events: none;
}

.santoo-fab:hover,
.santoo-fab:focus-visible {
  width: auto;
  min-width: 0;
  padding-right: 20px;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,.22);
}

.santoo-fab:hover .santoo-fab__label,
.santoo-fab:focus-visible .santoo-fab__label {
  opacity: 1;
  max-width: 200px;
}

.santoo-fab:focus-visible {
  outline: 3px solid var(--santoo-burgundy);
  outline-offset: 3px;
}

.santoo-fab--callback {
  background: var(--santoo-burgundy);
  color: var(--santoo-white);
}
.santoo-fab--callback:hover {
  background: var(--santoo-burgundy-dk);
}

.santoo-fab--whatsapp {
  background: #1DA851;
  color: var(--santoo-white);
}
.santoo-fab--whatsapp:hover {
  background: #178C43;
}

/* ── Modal Base ──────────────────────────────────────────────── */
.santoo-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.santoo-modal[hidden] { display: none; }

.santoo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 16, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: santooFadeIn 0.2s ease;
}

.santoo-modal__panel {
  position: relative;
  background: var(--santoo-white);
  border-radius: var(--santoo-radius);
  box-shadow: var(--santoo-shadow);
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: santooSlideUp 0.25s ease;
  z-index: 1;
}

.santoo-modal__panel--narrow {
  max-width: 400px;
}

.santoo-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--santoo-muted);
  border-radius: 4px;
  line-height: 0;
  transition: color 0.15s, background 0.15s;
}
.santoo-modal__close:hover { background: var(--santoo-offwhite); color: var(--santoo-text); }

.santoo-modal__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--santoo-burgundy);
  margin-bottom: 8px;
}

.santoo-modal__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--santoo-text);
  margin: 0 0 8px;
  line-height: 1.2;
}

.santoo-modal__sub {
  font-size: 14px;
  color: var(--santoo-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

/* ── Form Elements ───────────────────────────────────────────── */
.santoo-form__row {
  margin-bottom: 16px;
}

.santoo-form__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--santoo-text);
  margin-bottom: 6px;
}
.santoo-form__label span { color: var(--santoo-burgundy); }

.santoo-form__input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--santoo-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--santoo-text);
  background: var(--santoo-white);
  transition: border-color 0.15s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.santoo-form__input:focus {
  outline: none;
  border-color: var(--santoo-burgundy);
  box-shadow: 0 0 0 3px rgba(91,26,46,.1);
}
.santoo-form__input::placeholder { color: #B0A0A6; }
.santoo-form__input.is-error { border-color: #c0392b; }

.santoo-form__textarea {
  height: auto;
  padding: 10px 14px;
  resize: vertical;
  line-height: 1.5;
}

.santoo-form__submit {
  width: 100%;
  height: 48px;
  background: var(--santoo-burgundy);
  color: var(--santoo-white);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  transition: background 0.15s, transform 0.1s;
}
.santoo-form__submit:hover { background: var(--santoo-burgundy-dk); }
.santoo-form__submit:active { transform: scale(0.99); }
.santoo-form__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-spinner svg {
  animation: santoSpin 0.8s linear infinite;
}

.santoo-form__result {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  border-radius: 6px;
  padding: 10px 14px;
}
.santoo-form__result--ok {
  background: #f0faf4;
  color: #1a7a3a;
  border: 1px solid #b7e4c7;
}
.santoo-form__result--err {
  background: #fdf0f0;
  color: #8b1a1a;
  border: 1px solid #f5c6c6;
}

/* ── Cookie Banner ───────────────────────────────────────────── */
.santoo-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--santoo-burgundy);
  color: var(--santoo-white);
  z-index: 8900;
  padding: 20px 24px;
  box-shadow: 0 -4px 30px rgba(0,0,0,.2);
  animation: santooSlideUp 0.3s ease;
}
.santoo-cookie[hidden] { display: none; }

.santoo-cookie__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.santoo-cookie__text {
  flex: 1;
  min-width: 280px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.92;
}

.santoo-cookie__link {
  color: var(--santoo-white);
  text-decoration: underline;
}

.santoo-cookie__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.santoo-cookie__btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,.5);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.santoo-cookie__btn--accept {
  background: var(--santoo-white);
  color: var(--santoo-burgundy);
  border-color: var(--santoo-white);
}
.santoo-cookie__btn--accept:hover { background: var(--santoo-offwhite); }

.santoo-cookie__btn--decline,
.santoo-cookie__btn--prefs {
  background: transparent;
  color: var(--santoo-white);
}
.santoo-cookie__btn--decline:hover,
.santoo-cookie__btn--prefs:hover { background: rgba(255,255,255,.12); }

/* Cookie Prefs Toggle */
.santoo-cookie-pref__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--santoo-border);
}
.santoo-cookie-pref__item p { margin: 4px 0 0; font-size: 13px; color: var(--santoo-muted); }
.santoo-cookie-pref__badge {
  font-size: 12px;
  color: var(--santoo-muted);
  white-space: nowrap;
}

.santoo-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.santoo-toggle input { opacity: 0; width: 0; height: 0; }
.santoo-toggle__track {
  position: absolute;
  inset: 0;
  background: var(--santoo-border);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
}
.santoo-toggle__track::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.santoo-toggle input:checked + .santoo-toggle__track { background: var(--santoo-burgundy); }
.santoo-toggle input:checked + .santoo-toggle__track::before { transform: translateX(20px); }

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes santooFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes santooSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes santoSpin     { to { transform: rotate(360deg); } }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .santoo-fab-group  { bottom: 20px; right: 16px; }
  .santoo-modal__panel { padding: 32px 20px 28px; }
  .santoo-cookie__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .santoo-cookie__actions { width: 100%; }
}
