
:root {
  --tcs-green: #92c267;
  --tcs-teal: #0bb29d;
  --tcs-blue: #00afe7;
  --tcs-soft-yellow: #dfe08d;
  --tcs-ink: #082f35;
}

body.tcs-modal-open {
  overflow: hidden;
}

.tcs-contact-modal,
.tcs-contact-modal * {
  box-sizing: border-box;
}

.tcs-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: Inter, Arial, sans-serif;
}

.tcs-contact-modal.is-open {
  display: flex;
}

.tcs-contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 30, 34, 0.76);
  backdrop-filter: blur(4px);
  animation: tcsBackdropIn 0.25s ease both;
}

.tcs-contact-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 42px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  animation: tcsDialogIn 0.3s ease both;
}

.tcs-contact-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 47, 53, 0.07);
  color: var(--tcs-ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.tcs-contact-close:hover,
.tcs-contact-close:focus {
  background: var(--tcs-teal);
  color: #ffffff;
}

.tcs-contact-heading {
  padding-right: 48px;
  margin-bottom: 28px;
}

.tcs-contact-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--tcs-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tcs-contact-heading h2 {
  margin: 0 0 10px;
  color: var(--tcs-ink);
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.tcs-contact-heading p {
  margin: 0;
  color: #5c6b6e;
  font-size: 16px;
  line-height: 1.6;
}

.tcs-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.tcs-field label,
.tcs-interest-group legend {
  display: block;
  margin-bottom: 7px;
  color: var(--tcs-ink);
  font-size: 14px;
  font-weight: 750;
}

.tcs-field label span {
  color: #bf3030;
}

.tcs-field input,
.tcs-field select,
.tcs-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(8, 47, 53, 0.18);
  border-radius: 11px;
  background: #ffffff;
  color: #1d1d1d;
  font: inherit;
}

.tcs-field textarea {
  min-height: 116px;
  resize: vertical;
}

.tcs-field input:focus,
.tcs-field select:focus,
.tcs-field textarea:focus {
  outline: 3px solid rgba(11, 178, 157, 0.18);
  border-color: var(--tcs-teal);
}

.tcs-field.is-invalid input,
.tcs-field.is-invalid select,
.tcs-field.is-invalid textarea {
  border-color: #bf3030;
}

.tcs-interest-group {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.tcs-interest-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #354f54;
  font-size: 14px;
}

.tcs-interest-group input {
  margin-top: 4px;
  accent-color: var(--tcs-teal);
}

.tcs-form-status {
  min-height: 24px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
}

.tcs-form-status.is-error {
  color: #a32626;
}

.tcs-form-status.is-success {
  padding: 13px 15px;
  border-radius: 10px;
  background: rgba(146, 194, 103, 0.18);
  color: #24582f;
}

.tcs-submit-button {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--tcs-teal);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(11, 178, 157, 0.24);
}

.tcs-submit-button:hover,
.tcs-submit-button:focus {
  background: var(--tcs-blue);
}

.tcs-submit-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.tcs-submit-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: tcsSpin 0.7s linear infinite;
}

.tcs-submit-button.is-loading .tcs-submit-spinner {
  display: inline-block;
}

.tcs-contact-privacy {
  margin: 12px 0 0;
  text-align: center;
  color: #718084;
  font-size: 12px;
}

.tcs-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@keyframes tcsDialogIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes tcsSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .tcs-contact-modal {
    padding: 12px;
    align-items: flex-start;
  }

  .tcs-contact-dialog {
    max-height: calc(100vh - 24px);
    margin-top: 12px;
    padding: 30px 20px 24px;
    border-radius: 18px;
  }

  .tcs-contact-heading {
    padding-right: 36px;
  }

  .tcs-form-grid {
    grid-template-columns: 1fr;
  }

  .tcs-field-full {
    grid-column: auto;
  }
}
