/* ================================================================
   TARABA BizComm — Contact modal ("Let's Talk" popup)
   css/modal.css | Shared by every page that includes #contactModal.
   Moved out of css/pages/home.css during the showroom rebuild.
================================================================ */

/* CONTACT MODAL POPUP */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(13, 27, 62, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(13, 27, 62, 0.22);
  transform: translateY(32px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal__head {
  padding: 28px 32px 20px;
  border-bottom: 1px solid #e5e9f2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1;
  border-radius: 20px 20px 0 0;
}
.modal__title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0d1b3e;
  margin-bottom: 3px;
}
.modal__sub {
  font-size: 13px;
  color: #6b7280;
}
.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4f7ff;
  border: 1.5px solid #e5e9f2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 18px;
  color: #6b7280;
  transition: all 220ms ease;
}
.modal__close:hover {
  background: #eaa221;
  border-color: #eaa221;
  color: #fff;
}
.modal__body {
  padding: 24px 32px 32px;
}
.modal__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.modal__form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.modal__label {
  font-size: 13px;
  font-weight: 600;
  color: #0d1b3e;
}
.modal__label span {
  color: #eaa221;
}
.modal__input,
.modal__select,
.modal__textarea {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  color: #0d1b3e;
  background: #f4f7ff;
  border: 1.5px solid #e5e9f2;
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
  -webkit-appearance: none;
}
.modal__input:focus,
.modal__select:focus,
.modal__textarea:focus {
  border-color: #eaa221;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(234, 162, 33, 0.1);
}
.modal__input::placeholder,
.modal__textarea::placeholder {
  color: #9ca3af;
}
.modal__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.modal__textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}
.modal__method-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.modal__cm-option {
  display: none;
}
.modal__cm-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid #e5e9f2;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 220ms ease;
}
.modal__cm-label:hover {
  border-color: #eaa221;
  color: #eaa221;
}
.modal__cm-option:checked + .modal__cm-label {
  background: #eaa221;
  border-color: #eaa221;
  color: #fff;
}
.modal__submit {
  margin-top: 24px;
}
.modal__submit .btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 15px;
}
.modal__note {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-top: 10px;
}
.modal__success {
  display: none;
  text-align: center;
  padding: 40px 24px;
}
.modal__success.show {
  display: block;
}
.modal__success-icon {
  font-size: 52px;
  margin-bottom: 14px;
}
.modal__success-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0d1b3e;
  margin-bottom: 8px;
}
.modal__success-text {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.65;
}
.modal__promise {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fdf3e1;
  border: 1px solid rgba(234, 162, 33, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
}
.modal__promise-text {
  font-size: 12.5px;
  color: #0d1b3e;
  line-height: 1.5;
}
.modal__promise-text strong {
  color: #eaa221;
}
@media (max-width: 600px) {
  .modal__head {
    padding: 20px 20px 16px;
  }
  .modal__body {
    padding: 18px 20px 24px;
  }
  .modal__form-row {
    grid-template-columns: 1fr;
  }
}


/* 44×44 minimum tap target for the close button on phones */
@media (max-width: 480px) {
  .modal__close {
    width: 44px;
    height: 44px;
  }
}
