/* =========================================================
   BambooCraft Events - Quick Enquiry Modal Styles
   Editorial warm luxury theme (matte charcoal + antique gold)
   ========================================================= */

.bc-enquiry-modal {
  z-index: 100060 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.modal-backdrop {
  z-index: 100050;
}

.bc-enquiry-modal .modal-dialog {
  max-width: 860px;
  margin: 1.25rem auto;
  padding: 0 12px;
}

.bc-enquiry-modal .modal-content {
  background: #ffffff;
  border: 1px solid #e7e1d5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 19, 24, 0.24);
  padding: 0;
}

.bc-enquiry-modal .modal-body {
  padding: 0 !important;
}

.bc-modal-grid {
  position: relative;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 510px;
}

/* ---------- Left Visual Panel ---------- */
.bc-modal-visual {
  position: relative;
  background: #1e1c19;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 22px 24px;
}

.bc-modal-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 !important;
  border-radius: 0 !important;
}

.bc-modal-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 17, 15, 0.42) 0%,
    rgba(18, 17, 15, 0.14) 40%,
    rgba(18, 17, 15, 0.88) 100%
  );
  pointer-events: none;
}

.bc-visual-top,
.bc-visual-bottom {
  position: relative;
  z-index: 2;
}

.bc-visual-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 8px;
  background: rgba(20, 20, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.bc-visual-brand img {
  height: 24px;
  width: auto;
  display: block;
}

.bc-visual-brand span {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6efe0;
  line-height: 1;
}

.bc-visual-rule {
  width: 34px;
  height: 2px;
  background: #f6b600;
  margin-bottom: 10px;
}

.bc-visual-bottom h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 8px 0;
  float: none !important;
  width: auto !important;
}

.bc-visual-bottom p {
  font-family: "Nunito", sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 14px 0;
}

.bc-visual-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-family: "Montserrat", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #f3dfb0;
}

.bc-visual-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bc-visual-stats i {
  color: #f6b600;
  font-size: 12px;
}

/* ---------- Right Form Panel ---------- */
.bc-modal-form-pane {
  position: relative;
  background: #ffffff;
  padding: 26px 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bc-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e6e0d4;
  background: #f6f4ef;
  color: #26282c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  z-index: 3;
}

.bc-modal-close:hover {
  background: #222222;
  color: #ffffff;
  border-color: #222222;
}

.bc-form-header {
  margin-bottom: 16px;
  padding-right: 34px;
}

.bc-form-kicker {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a67600;
  margin-bottom: 5px;
}

.bc-form-title {
  font-family: "Montserrat", sans-serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #1b1d20 !important;
  margin: 0 0 4px 0 !important;
  float: none !important;
  width: 100% !important;
}

.bc-form-sub {
  font-family: "Nunito", sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: #63676f;
  margin: 0;
}

/* ---------- Form Grid & Fields ---------- */
.bc-enquiry-form {
  margin: 0;
}

.bc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.bc-field-full {
  grid-column: 1 / -1;
}

.bc-floating {
  position: relative;
}

.bc-enquiry-modal .bc-input,
.bc-enquiry-modal .bc-select,
.bc-enquiry-modal .bc-textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #fbfaf8 !important;
  border: 1px solid #dedad0 !important;
  border-radius: 10px !important;
  font-family: "Nunito", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1c1e22 !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  margin: 0 !important;
}

.bc-enquiry-modal .bc-input {
  height: 48px !important;
  padding: 18px 14px 5px !important;
  line-height: 1.3 !important;
}

.bc-enquiry-modal .bc-select {
  height: 48px !important;
  padding: 0 36px 0 14px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%2355585f'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 12px 12px !important;
  cursor: pointer;
  color: #6b6f78 !important;
}

.bc-enquiry-modal .bc-select.has-value {
  color: #1c1e22 !important;
}

.bc-enquiry-modal .bc-textarea {
  min-height: 92px !important;
  height: 92px !important;
  padding: 20px 14px 8px !important;
  resize: vertical;
  line-height: 1.45 !important;
}

.bc-floating label {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-family: "Nunito", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #6b6f78;
  pointer-events: none;
  margin: 0 !important;
  padding: 0 !important;
  transition: top 0.16s ease, transform 0.16s ease, font-size 0.16s ease, color 0.16s ease;
  line-height: 1;
}

.bc-floating--textarea label {
  top: 15px;
  transform: none;
}

.bc-floating .bc-input:focus,
.bc-floating .bc-select:focus,
.bc-floating .bc-textarea:focus {
  border-color: #b58300 !important;
  background-color: #ffffff !important;
}

.bc-floating .bc-input:focus + label,
.bc-floating .bc-input:not(:placeholder-shown) + label {
  top: 7px;
  transform: none;
  font-size: 10.5px;
  font-weight: 700;
  color: #9e7000;
}

.bc-floating--textarea .bc-textarea:focus + label,
.bc-floating--textarea .bc-textarea:not(:placeholder-shown) + label {
  top: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #9e7000;
}

/* ---------- reCAPTCHA Container ---------- */
.bc-recaptcha-wrap {
  margin-top: 2px;
  min-height: 78px;
}

/* ---------- Status Alert ---------- */
.bc-form-status {
  display: none;
  font-family: "Nunito", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  border-radius: 10px;
  padding: 10px 13px;
  margin-top: 2px;
}

.bc-form-status.is-error {
  display: block;
  background: #fdf2f2;
  border: 1px solid #efc6c6;
  color: #8b2020;
}

.bc-form-status.is-success {
  display: block;
  background: #eff8f2;
  border: 1px solid #bce0c8;
  color: #195c34;
}

/* ---------- Submit Row ---------- */
.bc-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.bc-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 170px;
  height: 46px;
  padding: 0 24px !important;
  border-radius: 10px !important;
  border: 1px solid #dfb012 !important;
  background: #f6b600 !important;
  color: #1b1d20 !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: none !important;
  text-transform: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bc-submit-btn:hover:not(:disabled) {
  background: #e2a700 !important;
  border-color: #cf9900 !important;
  color: #111214 !important;
}

.bc-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.bc-quick-call {
  font-family: "Nunito", sans-serif;
  font-size: 12.5px;
  color: #63676f;
  white-space: nowrap;
}

.bc-quick-call a {
  color: #1b1d20 !important;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #f6b600;
}

.bc-quick-call a:hover {
  color: #a67600 !important;
}

/* ---------- Subtle Right-Edge Floating Tab (Desktop / Tablet) ---------- */
.bc-floating-enquiry-tab {
  position: fixed;
  right: 0;
  top: 52%;
  transform: translateY(-50%);
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform-origin: center;
  background: #1f2125;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-right: none;
  border-left: 3px solid #f6b600;
  border-radius: 10px 0 0 10px;
  padding: 14px 9px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  transition: background-color 0.2s ease, padding-right 0.2s ease;
}

.bc-floating-enquiry-tab i {
  color: #f6b600;
  font-size: 13px;
}

.bc-floating-enquiry-tab:hover {
  background: #2c2f35;
  padding-right: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bc-enquiry-modal .modal-dialog {
    max-width: 95%;
  }

  .bc-modal-grid {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .bc-modal-form-pane {
    padding: 24px 22px 22px;
  }
}

@media (max-width: 767px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  .bc-floating-enquiry-tab {
    display: none !important;
  }

  .bc-enquiry-modal .modal-dialog {
    margin: 10px auto !important;
    width: min(calc(100% - 20px), calc(100vw - 20px), 440px) !important;
    max-width: 440px !important;
    padding: 0 !important;
    min-height: calc(100% - 20px);
    box-sizing: border-box !important;
  }

  .bc-enquiry-modal .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 14px;
    overflow: hidden !important;
  }

  .bc-modal-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    min-height: 0;
  }

  .bc-modal-visual {
    min-width: 0;
    width: 100%;
    min-height: 112px;
    padding: 12px 14px;
  }

  .bc-visual-brand {
    padding: 5px 10px 5px 7px;
    gap: 7px;
  }

  .bc-visual-brand img {
    height: 20px;
  }

  .bc-visual-brand span {
    font-size: 10px;
  }

  .bc-visual-rule {
    margin-bottom: 6px;
  }

  .bc-visual-bottom h3 {
    font-size: 16.5px;
    margin-bottom: 0;
  }

  .bc-visual-bottom p,
  .bc-visual-stats {
    display: none;
  }

  .bc-modal-form-pane {
    min-width: 0;
    width: 100%;
    padding: 14px 14px 16px;
  }

  .bc-modal-close {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.45);
  }

  .bc-form-header {
    padding-right: 0;
    margin-bottom: 10px;
  }

  .bc-form-kicker {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .bc-form-title {
    font-size: 18px !important;
    margin-bottom: 2px !important;
  }

  .bc-form-sub {
    font-size: 12.5px;
    line-height: 1.35;
  }

  .bc-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .bc-floating {
    min-width: 0;
  }

  .bc-enquiry-modal .bc-input,
  .bc-enquiry-modal .bc-select {
    height: 43px !important;
    font-size: 13px !important;
  }

  .bc-enquiry-modal .bc-input {
    padding: 15px 10px 4px !important;
  }

  .bc-enquiry-modal .bc-select {
    padding: 0 28px 0 10px !important;
    background-position: right 10px center !important;
  }

  .bc-floating label {
    left: 10px;
    font-size: 12.5px;
  }

  .bc-floating .bc-input:focus + label,
  .bc-floating .bc-input:not(:placeholder-shown) + label {
    top: 5px;
    font-size: 10px;
  }

  .bc-enquiry-modal .bc-textarea {
    min-height: 68px !important;
    height: 68px !important;
    padding: 18px 10px 6px !important;
    font-size: 13px !important;
  }

  .bc-floating--textarea label {
    top: 12px;
  }

  .bc-floating--textarea .bc-textarea:focus + label,
  .bc-floating--textarea .bc-textarea:not(:placeholder-shown) + label {
    top: 5px;
    font-size: 10px;
  }

  .bc-recaptcha-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .bc-submit-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .bc-submit-btn {
    width: 100%;
    height: 43px;
  }

  .bc-quick-call {
    text-align: center;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .bc-recaptcha-wrap {
    min-height: 70px;
    height: 70px;
  }

  #bcPopupRecaptcha {
    width: 304px;
    transform: scale(0.89);
    transform-origin: left top;
  }
}

@media (max-width: 359px) {
  .bc-modal-visual {
    min-height: 98px;
    padding: 10px 12px;
  }

  .bc-visual-bottom h3 {
    font-size: 15px;
  }

  .bc-modal-form-pane {
    padding: 12px 12px 14px;
  }

  .bc-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .bc-recaptcha-wrap {
    min-height: 64px;
    height: 64px;
  }

  #bcPopupRecaptcha {
    transform: scale(0.82);
  }
}
