/* Full-screen quote form (Views/Shared/_QuoteModal*.cshtml) + mobile tab bar. Shared by both layouts. */
.quote-modal {
  position: fixed; inset: 0; z-index: 10000; display: none;
  padding: 90px 16px 30px; overflow-y: auto; overscroll-behavior: contain;
  background-color: rgba(17, 28, 43, 0.97);
}
.quote-modal.is-open { display: flex; }
body.quote-modal-open { overflow: hidden; }

.quote-modal__close {
  position: fixed; top: 24px; right: 24px; width: 54px; height: 54px; border: 0; border-radius: 50%;
  background-color: #0ea280; color: #fff; font-size: 22px; line-height: 54px; cursor: pointer; transition: transform .2s ease;
}
.quote-modal__close:hover { transform: rotate(90deg); }

.quote-form { position: relative; width: 100%; max-width: 760px; margin: auto; animation: quote-in .25s ease; }
@keyframes quote-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.quote-form__title { color: #fff; text-align: center; margin: 0 0 10px; }
.quote-form__intro { color: rgba(255, 255, 255, .8); text-align: center; margin: 0 0 28px; }
.quote-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quote-form__wide { grid-column: 1 / -1; }

.quote-form input:not([type=checkbox]),
.quote-form select,
.quote-form textarea {
  display: block; width: 100%; height: 56px; padding: 0 24px; font-size: 16px; color: #fff;
  background-color: transparent; border: 2px solid rgba(255, 255, 255, .35); border-radius: 50px; outline: 0; color-scheme: dark;
}
.quote-form textarea { height: auto; min-height: 110px; padding: 16px 24px; border-radius: 26px; resize: vertical; }
.quote-form select option { color: #222; background-color: #fff; }
.quote-form input::placeholder, .quote-form textarea::placeholder { color: rgba(255, 255, 255, .75); }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: #0ea280; box-shadow: 0 0 0 3px rgba(14, 162, 128, .3); }
.quote-form .is-invalid { border-color: #ff8f8f !important; }

.quote-form__error { display: block; color: #ff8f8f; font-size: 13px; line-height: 1.4; padding: 6px 0 0 24px; }
.quote-form__error:empty { display: none; }

.quote-form__consent { position: relative; margin: 20px 0; padding-left: 30px; }
.quote-form__consent input[type=checkbox] { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; accent-color: #0ea280; }
.quote-form__consent label { color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.5; margin: 0; }
.quote-form__consent a { color: #5fe0c1; text-decoration: underline; }
.quote-form__consent .quote-form__error { padding-left: 0; }
.quote-form__consent { margin-bottom: 8px; }
.quote-form__notice { color: rgba(255, 255, 255, .7); font-size: 13px; line-height: 1.5; margin: 0 0 20px; }
.quote-form__notice a { color: #5fe0c1; text-decoration: underline; }

.quote-form .cf-turnstile { margin-bottom: 16px; }
.quote-form__submit {
  display: block; width: 100%; height: 56px; font-size: 16px; font-weight: 700; color: #fff;
  background-color: #0ea280; border: 0; border-radius: 50px; transition: background-color .2s ease;
}
.quote-form__submit:hover { background-color: #0b8a6d; }
.quote-form__submit:disabled { opacity: .6; cursor: wait; }

.swal2-container { z-index: 100000 !important; }

@media (max-width: 767px) {
  .quote-modal { padding-top: 76px; }
  .quote-modal__close { top: 14px; right: 14px; width: 46px; height: 46px; line-height: 46px; font-size: 20px; }
  .quote-form__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .quote-form__intro { margin-bottom: 20px; }
}

/* Mobile tab bar (below lg): quote form + WhatsApp, fixed to the bottom of the screen */
.mobile-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; display: flex; box-shadow: 0 -4px 14px rgba(0, 0, 0, .12); }
.mobile-tabbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 8px 10px; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; }
.mobile-tabbar i { font-size: 20px; }
.mobile-tabbar__quote { background-color: #0ea280; color: #fff; }
.mobile-tabbar__quote:hover, .mobile-tabbar__quote:focus { color: #fff; background-color: #0b8a6d; }
.mobile-tabbar__whatsapp { background-color: #fff; color: #222; }
.mobile-tabbar__whatsapp i { color: #25d366; }
.mobile-tabbar__whatsapp:hover, .mobile-tabbar__whatsapp:focus { color: #0ea280; }
@media (max-width: 1199px) {
  body { padding-bottom: 56px; }
}
