/* Formular rapid + bara fixa de contact pe mobil -- vezi partials/quick-lead.blade.php
   si partials/mobile-contact-bar.blade.php. Paleta: aceeasi oak/olive a site-ului. */

.quick-lead {
  background: #EDE5D8;
  padding: 56px 16px;
  scroll-margin-top: 90px; }

.quick-lead__box {
  max-width: 560px;
  margin: 0 auto; }

.quick-lead__title {
  font-family: 'Cormorant Garamond', serif;
  color: #2C1A0E;
  margin: 0 0 8px; }

.quick-lead__lead {
  color: #3D2B1F;
  margin: 0 0 20px; }

.quick-lead__form {
  display: grid;
  gap: 12px; }

.quick-lead__field {
  display: grid;
  gap: 4px;
  margin: 0;
  font-weight: 400;
  color: #3D2B1F; }

.quick-lead__field > span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7A6655; }

.quick-lead__field input,
.quick-lead__field select {
  min-height: 48px;
  font-size: 16px; /* 16px previne zoom-ul automat pe iOS */
  padding: 0 12px;
  border: 1px solid #D9CFC4;
  border-radius: 0;
  background: #fff;
  color: #3D2B1F;
  width: 100%; }

.quick-lead__field input:focus,
.quick-lead__field select:focus {
  outline: 2px solid #6B7A3A;
  outline-offset: 1px; }

.quick-lead__consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  color: #3D2B1F; }

.quick-lead__consent input { margin-top: 3px; flex: 0 0 auto; }
.quick-lead__consent a { color: #566329; text-decoration: underline; }

.quick-lead__submit {
  min-height: 52px;
  width: 100%;
  font-size: 17px;
  font-weight: 600;
  border: 0;
  border-radius: 0;
  background: #566329;
  color: #F7F2EB;
  cursor: pointer; }

.quick-lead__submit:hover { background: #6B7A3A; }
.quick-lead__submit:disabled { opacity: 0.7; cursor: default; }

.quick-lead__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0; }

.quick-lead__error {
  color: #b42318;
  font-size: 14px;
  margin: 0; }

.quick-lead__success h3 { font-family: 'Cormorant Garamond', serif; color: #2C1A0E; }
.quick-lead__success a { color: #566329; font-weight: 600; }

.quick-lead__alt { margin: 16px 0 0; font-size: 14px; color: #7A6655; }
.quick-lead__alt a { color: #566329; text-decoration: underline; }

[hidden].quick-lead__error,
[hidden].quick-lead__success,
[hidden].quick-lead__form,
[hidden].quick-lead__alt { display: none !important; }

.mobile-contact-bar { display: none; }

@media (max-width: 767px) {
  .mobile-contact-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000; /* sub dialogul Cookiebot (z-index ~1e9), care ramane deasupra pana la acceptare */
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12); }

  .mobile-contact-bar a.mobile-contact-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: #EDE5D8;
    color: #2C1A0E; }

  .mobile-contact-bar a.mobile-contact-bar__btn--call { background: #2C1A0E; color: #F7F2EB; }
  .mobile-contact-bar a.mobile-contact-bar__btn--form { background: #566329; color: #F7F2EB; }

  /* bara sa nu acopere finalul paginii (footer-ul) */
  body.has-mobile-contact-bar { padding-bottom: 72px; } }

/* varianta in interiorul unui .container (paginile MOD): fara padding lateral dublu */
.quick-lead-wrap { margin: 40px 0; }
.quick-lead-wrap .quick-lead { padding: 40px 16px; }

/* ── Panou de jos (bottom sheet) cu formularul rapid -- partials/quick-lead-sheet.blade.php,
   public/js/app/quick-lead-sheet.js. z-index peste bara (1000), sub Cookiebot (~1e9). ── */
.ql-sheet {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1100; }

.ql-sheet[hidden] { display: none !important; }

.ql-sheet__backdrop {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 250ms ease; }

.ql-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #EDE5D8;
  border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 250ms ease; }

.ql-sheet.is-open .ql-sheet__backdrop { opacity: 1; }
.ql-sheet.is-open .ql-sheet__panel { transform: translateY(0); }

.ql-sheet__close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2C1A0E;
  font-size: 30px;
  line-height: 1;
  cursor: pointer; }

.ql-sheet__close:focus-visible { outline: 2px solid #6B7A3A; outline-offset: -4px; }

/* formularul din panou: fara padding/fundal de sectiune */
.quick-lead--sheet {
  background: transparent;
  padding: 24px 16px 20px; }

.quick-lead--sheet .quick-lead__title { padding-right: 40px; font-size: 26px; }
.quick-lead--sheet .quick-lead__lead { margin-bottom: 16px; }

.quick-lead__close {
  min-height: 48px;
  width: 100%;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid #566329;
  border-radius: 0;
  background: transparent;
  color: #566329;
  cursor: pointer; }

/* pagina din spate blocata cat timp panoul e deschis (top negativ setat din JS) */
body.ql-sheet-locked { overflow: hidden; }

@media (min-width: 768px) {
  /* bara nu apare pe desktop, dar daca panoul e deschis (ex. din cardul Spa) e modal centrat */
  .ql-sheet__panel {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    width: calc(100% - 32px);
    max-width: 480px;
    border-radius: 16px;
    transform: translate(-50%, -40%);
    opacity: 0;
    transition: transform 250ms ease, opacity 250ms ease; }

  .ql-sheet.is-open .ql-sheet__panel { transform: translate(-50%, -50%); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ql-sheet__backdrop,
  .ql-sheet__panel { transition: none; } }
