/* Scoped CI EN #freeEstimateModal parity (port of Repo C booking-modal.css).
   Do not import full CI Bootstrap / style.css bundles. */

.zc-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(18, 68, 99, 0.55);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

.zc-quote-modal__dialog {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

@media (min-width: 576px) {
  .zc-quote-modal__dialog {
    max-width: 671px !important;
  }
}

.zc-quote-modal__content {
  background: #fff;
  border-radius: 20px;
  padding: 5px 20px 20px;
  margin-top: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  overflow: auto;
  max-height: calc(100vh - 2rem);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.zc-quote-modal__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  padding: 15px;
  border: 0;
}

.zc-quote-modal__title {
  margin: 0 auto;
  color: #ffc738 !important;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--zc-font-heading, "Inter", sans-serif);
  position: relative;
  padding-bottom: 8px;
  text-align: center;
  width: 100%;
  pointer-events: none;
}

.zc-quote-modal__close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em;
  color: #000;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center / 1em auto no-repeat;
  border: 0;
  border-radius: 0.25rem;
  cursor: pointer;
  filter: invert(31%) sepia(96%) saturate(7483%) hue-rotate(355deg) brightness(102%)
    contrast(108%);
  opacity: 1;
  margin: 0;
  z-index: 2;
}

body.zc-quote-open {
  overflow: hidden !important;
}

.zc-booking-modal {
  display: block;
}

.zc-booking-modal__row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
  row-gap: 0.75rem;
}

.zc-booking-modal__col-6,
.zc-booking-modal__col-12,
.zc-booking-modal__col-8,
.zc-booking-modal__col-4 {
  padding: 0 0.5rem;
  width: 100%;
  margin-top: 5px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .zc-booking-modal__col-6 {
    width: 50%;
  }

  .zc-booking-modal__col-8 {
    width: 66.6667%;
  }

  .zc-booking-modal__col-4 {
    width: 33.3333%;
  }
}

.zc-booking-modal label:not(.zc-booking-modal__check):not(.zc-booking-modal__lang-option):not(
    .zc-booking-modal__whatsapp-label
  ) {
  display: block;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--zc-font-body, "Poppins", sans-serif);
  color: #12364a;
  margin-bottom: 4px;
}

.zc-booking-modal input[type="text"],
.zc-booking-modal input[type="tel"],
.zc-booking-modal input[type="email"],
.zc-booking-modal input[type="number"],
.zc-booking-modal textarea,
.zc-booking-modal select {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px !important;
  font-size: 15px;
  font-family: var(--zc-font-body, "Poppins", sans-serif);
  background-color: #eaf7ff;
  color: #12364a;
  box-sizing: border-box;
  appearance: auto;
}

.zc-booking-modal input::placeholder,
.zc-booking-modal textarea::placeholder {
  color: #7a9bb0;
  opacity: 1;
}

.zc-booking-modal input:focus,
.zc-booking-modal textarea:focus,
.zc-booking-modal select:focus {
  outline: 2px solid #45b8ff;
  outline-offset: 0;
}

.zc-booking-modal textarea.zc-booking-modal__message {
  padding: 10px;
  border: none !important;
  border-radius: 5px;
  font-size: 15px;
  background-color: #eaf7ff;
  min-height: 96px;
  resize: vertical;
}

.zc-booking-modal__actions {
  width: 100%;
  text-align: center;
  padding: 0 0.5rem;
  margin-top: 5px;
}

.zc-booking-modal__submit {
  height: 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  color: #000;
  background: linear-gradient(180deg, #ffeb38, #ffc738);
  padding: 5px 18px;
  border: none !important;
  margin-top: 10px;
  cursor: pointer;
  font-family: var(--zc-font-heading, "Inter", sans-serif);
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.zc-booking-modal__submit:hover:not(:disabled) {
  background: #ffffff !important;
  color: black !important;
  border: 2px solid #ffeb38 !important;
}

.zc-booking-modal__submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.zc-booking-modal__btn-text {
  font-size: 18px;
}

.zc-booking-modal__phone-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.zc-booking-modal__phone-group select {
  max-width: 180px;
  flex: 0 0 auto;
}

.zc-booking-modal__phone-group input {
  flex: 1 1 auto;
  min-width: 0;
}

.zc-booking-modal__whatsapp-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0 0.5rem;
  margin-top: 0.25rem;
}

.zc-booking-modal__check {
  position: relative;
  display: inline-flex;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}

.zc-booking-modal__check input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.zc-booking-modal__checkmark {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 2px solid #1aa7ff;
  background: #fff;
  box-sizing: border-box;
}

.zc-booking-modal__check input:checked + .zc-booking-modal__checkmark {
  background: #1aa7ff;
  box-shadow: inset 0 0 0 3px #fff;
}

.zc-booking-modal__whatsapp-label {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--zc-font-body, "Poppins", sans-serif);
  color: #12364a;
  cursor: pointer;
}

.zc-booking-modal__lang-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.zc-booking-modal__lang-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--zc-font-body, "Poppins", sans-serif);
  color: #12364a;
  cursor: pointer;
}

.zc-en-quote-modal-notice {
  margin: 0.75rem 0.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #eaf7ff;
  color: #124463;
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .zc-booking-modal__submit {
    height: 40px;
    font-size: 15px;
    min-width: 0;
    width: 100%;
  }

  .zc-booking-modal__btn-text {
    font-size: 15px;
  }

  .zc-booking-modal__phone-group {
    flex-direction: column;
  }

  .zc-booking-modal__phone-group select {
    max-width: none;
  }
}
