/* ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
   SorbiTech form modals â Inquiry + TDS Request
   Hidden by default. JS toggles the `hidden` attribute.
   Palette tokens inherited from main.css (--st-navy, --st-blue, etc.).
   ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */

.sbc-modal[hidden] { display: none !important; }

.sbc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: sbcFadeIn .18s ease-out;
}

@keyframes sbcFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sbc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 92, 0.55);   /* Navy at 55% */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sbc-modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #FFF;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 42, 92, 0.25);
  animation: sbcSlideUp .22s cubic-bezier(.2,.7,.3,1);
}

@keyframes sbcSlideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.sbc-modal__close {
  position: absolute;
  top: 10px; right: 12px;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  color: var(--st-light-gray, #6B6B6B);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sbc-modal__close:hover,
.sbc-modal__close:focus-visible {
  background: var(--st-off-white, #F5F5F5);
  color: var(--st-navy, #0F2A5C);
  outline: none;
}

.sbc-modal__header {
  padding: 28px 28px 12px;
  border-bottom: 1px solid var(--st-hairline-gray, #D0D5DD);
}
.sbc-modal__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--st-navy, #0F2A5C);
  letter-spacing: -0.01em;
}
.sbc-modal__sub {
  margin: 0;
  font-size: 0.92rem;
  color: var(--st-light-gray, #6B6B6B);
  line-height: 1.5;
}

.sbc-modal__body {
  padding: 20px 28px 24px;
}

/* ââ Form layout âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */

.sbc-modal-form { display: grid; gap: 14px; }

.sbc-modal-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.sbc-modal-form__row { display: grid; gap: 14px; }
.sbc-modal-form__row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 540px) {
  .sbc-modal-form__row--2 { grid-template-columns: 1fr; }
}

.sbc-modal-form__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sbc-modal-form__field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--st-dark-gray, #434343);
}
.sbc-modal-form__field label span[aria-hidden="true"] {
  color: var(--st-error-red, #B91C1C);
  margin-left: 2px;
}
.sbc-modal-form__field input,
.sbc-modal-form__field select,
.sbc-modal-form__field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--st-dark-gray, #434343);
  background: #FFF;
  border: 1px solid var(--st-hairline-gray, #D0D5DD);
  border-radius: 4px;
  transition: border-color .15s, box-shadow .15s;
}
.sbc-modal-form__field input:focus,
.sbc-modal-form__field select:focus,
.sbc-modal-form__field textarea:focus {
  outline: none;
  border-color: var(--st-blue, #2F66C4);
  box-shadow: 0 0 0 3px rgba(47, 102, 196, 0.18);
}

/* Compact native select â remove OS chrome, add chevron */
.sbc-modal-form__field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23434343' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  cursor: pointer;
  height: auto;
}
.sbc-modal-form__field input[readonly] {
  background: var(--st-off-white, #F5F5F5);
  cursor: text;
}
.sbc-modal-form__field textarea { resize: vertical; min-height: 80px; }

.sbc-modal-form__hint {
  font-size: 0.78rem;
  color: var(--st-light-gray, #6B6B6B);
}

.sbc-modal-form__status {
  font-size: 0.9rem;
  padding: 0;
  min-height: 0;
}
.sbc-modal-form__status:not(:empty) {
  padding: 10px 12px;
  border-radius: 4px;
  background: var(--st-off-white, #F5F5F5);
  border-left: 4px solid var(--st-blue, #2F66C4);
  color: var(--st-dark-gray, #434343);
}
.sbc-modal-form__status.is-ok    { border-left-color: var(--st-green, #1F6B3A); }
.sbc-modal-form__status.is-err   { border-left-color: var(--st-error-red, #B91C1C); }

.sbc-modal-form__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.sbc-modal-form__actions .st-btn { min-width: 140px; }
.sbc-modal-form__actions .st-btn--ghost {
  background: transparent;
  color: var(--st-light-gray, #6B6B6B);
  border: 1px solid var(--st-hairline-gray, #D0D5DD);
}
.sbc-modal-form__actions .st-btn--ghost:hover {
  color: var(--st-navy, #0F2A5C);
  border-color: var(--st-navy, #0F2A5C);
}

.sbc-modal-form__note {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--st-light-gray, #6B6B6B);
  line-height: 1.5;
}

/* While submitting */
.sbc-modal-form.is-submitting [type="submit"] { opacity: 0.6; cursor: progress; }
.sbc-modal-form.is-submitting input,
.sbc-modal-form.is-submitting select,
.sbc-modal-form.is-submitting textarea { pointer-events: none; opacity: 0.85; }

/* Body scroll lock when a modal is open */
body.sbc-modal-open { overflow: hidden; }

/* Make the Turnstile widget shrink-friendly inside the modal */
.sbc-modal-form .cf-turnstile { min-height: 0; }
