/* Contact and privacy pages. They have no mockup of their own, so they take the product page's look
   (sections/platform.css, design/reference/principles.png): one glass panel with a lit bottom edge, lit icon tiles, a cool
   haze behind the panel, and the closing call to action's pale glowing pill for the main button. */

/* ===== shared: the haze behind the panels ===== */

.teo-website-contact-section, .teo-website-privacy-section {
  overflow: hidden;
  isolation: isolate;
}

.teo-website-contact-section::before, .teo-website-privacy-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(34% 46% at 74% 42%, rgba(14, 66, 190, 0.3), rgba(14, 66, 190, 0) 72%),
    radial-gradient(22% 34% at 100% 30%, rgba(3, 105, 243, 0.28), rgba(3, 105, 243, 0) 72%),
    radial-gradient(28% 30% at 0% 92%, rgba(4, 59, 141, 0.32), rgba(4, 59, 141, 0) 72%);
  pointer-events: none;
}

/* the glass panel of the principles: dark on the left, bluer on the right, a lit line along the bottom */
.teo-website .teo-website-contact-form, .teo-website-privacy-panel {
  position: relative;
  overflow: visible;
  border-radius: 18px;
  border: 1px solid rgba(77, 164, 255, 0.24);
  border-right-color: rgba(13, 107, 194, 0.85);
  background: linear-gradient(100deg, rgba(1, 12, 30, 0.72) 0%, rgba(2, 18, 44, 0.64) 55%, rgba(4, 40, 104, 0.56) 100%);
  box-shadow: inset 0 1px 0 rgba(160, 210, 255, 0.08), 0 1px 0 rgba(77, 164, 255, 0.45), 0 22px 50px -22px rgba(42, 107, 255, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.teo-website-contact-form::after, .teo-website-privacy-panel::after {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(77, 164, 255, 0), rgba(77, 164, 255, 0.75) 22%, rgba(144, 215, 255, 0.9) 50%, rgba(77, 164, 255, 0.75) 78%, rgba(77, 164, 255, 0));
  box-shadow: 0 0 10px 1px rgba(42, 107, 255, 0.55);
  pointer-events: none;
}

/* the lit icon tile of the principles */
.teo-website-contact-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 50px;
  border-radius: 13px;
  border: 1px solid rgba(77, 164, 255, 0.5);
  border-top-color: #4481bc;
  border-left-color: #4481bc;
  background: linear-gradient(135deg, #0a2142, #020f1f);
  box-shadow: inset 0 0 12px rgba(77, 164, 255, 0.15);
  color: #ace2fb;
  font-size: 22px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.teo-website-contact-icon i {
  line-height: 1;
}

/* ===== contact ===== */

.teo-website .teo-website-contact-split {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.teo-website-contact-side {
  padding-top: clamp(8px, 1.6vw, 24px);
}

.teo-website .teo-website-contact-side-title {
  color: #fff;
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.teo-website-contact-points {
  display: grid;
  gap: 20px;
  margin: clamp(26px, 2.8vw, 38px) 0 0;
  padding: 0;
  list-style: none;
}

.teo-website-contact-points li {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #c4e0f8;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
}

.teo-website-contact-points li:hover .teo-website-contact-icon, .teo-website-contact-mail:hover .teo-website-contact-icon {
  border-color: rgba(144, 215, 255, 0.85);
  box-shadow: inset 0 0 14px rgba(77, 164, 255, 0.25), 0 0 18px rgba(42, 107, 255, 0.45);
}

/* the address, set apart from the points by a short fading rule */
.teo-website .teo-website-contact-mail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(30px, 3.4vw, 46px);
  padding-top: clamp(26px, 3vw, 38px);
  color: #fff;
}

.teo-website-contact-mail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: min(100%, 320px);
  height: 1px;
  background: linear-gradient(90deg, rgba(77, 164, 255, 0.5), rgba(77, 164, 255, 0));
}

.teo-website-contact-mail-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.teo-website-contact-mail-text span {
  color: var(--teo-website-eyebrow);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.teo-website-contact-mail-text strong {
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 600;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.teo-website-contact-mail:hover strong {
  color: var(--teo-website-accent-light);
}

/* the form */
.teo-website .teo-website-contact-form {
  gap: 20px 18px;
  padding: clamp(24px, 3.2vw, 44px);
}

.teo-website-contact-form .teo-website-field {
  color: #b9cbe6;
  font-size: 14px;
  font-weight: 500;
}

.teo-website-contact-form .teo-website-field input, .teo-website-contact-form .teo-website-field select,
.teo-website-contact-form .teo-website-field textarea {
  min-height: 48px;
  border-color: rgba(120, 175, 245, 0.28);
  background-color: rgba(2, 9, 26, 0.6);
  box-shadow: inset 0 1px 0 rgba(160, 210, 255, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.teo-website-contact-form .teo-website-field textarea {
  min-height: 124px;
  resize: vertical;
}

/* the select draws its own chevron, so it matches the inputs */
.teo-website-contact-form .teo-website-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2390d7ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  cursor: pointer;
}

.teo-website-contact-form .teo-website-field input:hover, .teo-website-contact-form .teo-website-field select:hover,
.teo-website-contact-form .teo-website-field textarea:hover {
  border-color: rgba(150, 200, 255, 0.46);
}

.teo-website-contact-form .teo-website-field input:focus, .teo-website-contact-form .teo-website-field select:focus,
.teo-website-contact-form .teo-website-field textarea:focus {
  outline: none;
  border-color: #6cb8ff;
  background-color: rgba(4, 16, 44, 0.78);
  box-shadow: 0 0 0 3px rgba(77, 164, 255, 0.2), 0 0 22px rgba(42, 107, 255, 0.35);
}

.teo-website-contact-form .teo-website-field-invalid input, .teo-website-contact-form .teo-website-field-invalid select,
.teo-website-contact-form .teo-website-field-invalid textarea {
  border-color: var(--teo-website-danger);
  box-shadow: 0 0 0 3px rgba(255, 138, 138, 0.14);
}

.teo-website-contact-form .teo-website-consent-check {
  color: #b9cbe6;
  line-height: 1.55;
}

.teo-website-contact-form .teo-website-consent-check input {
  flex: none;
  margin-top: 2px;
  accent-color: var(--teo-website-accent);
}

.teo-website-contact-form .teo-website-consent-check a {
  color: var(--teo-website-accent-light);
}

.teo-website-contact-form .teo-website-consent-check.teo-website-field-invalid {
  color: var(--teo-website-danger);
}

/* the closing call to action's pale glowing pill */
.teo-website .teo-website-contact-submit {
  justify-self: start;
  min-width: 220px;
  min-height: 54px;
  gap: 14px;
  padding: 0 40px;
  border-color: rgba(225, 243, 255, 0.9);
  background: #c8e9ff;
  color: #0b1838;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(170, 215, 255, 0.6), 0 0 26px rgba(60, 140, 255, 0.45), 0 16px 44px -6px rgba(30, 110, 255, 0.75);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.teo-website .teo-website-contact-submit:hover {
  border-color: #fff;
  background: #dcf2ff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(200, 230, 255, 0.8), 0 0 34px rgba(80, 155, 255, 0.6), 0 18px 50px -6px rgba(30, 110, 255, 0.9);
}

.teo-website .teo-website-contact-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 999px;
}

/* the result of sending, beside the button */
.teo-website-contact-form .teo-website-form-message {
  align-self: center;
  min-height: 0;
  line-height: 1.5;
}

/* ===== privacy ===== */

.teo-website-privacy-panel {
  margin: 0;
  padding: clamp(6px, 1vw, 12px) clamp(22px, 3.6vw, 52px);
  list-style: none;
}

/* number, heading and text in one row */
.teo-website-privacy-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 0.36fr) minmax(0, 1fr);
  gap: 8px clamp(20px, 3vw, 44px);
  align-items: baseline;
  padding: clamp(24px, 2.8vw, 36px) 0;
}

/* a divider between the rows, fading at the panel's ends */
.teo-website-privacy-item + .teo-website-privacy-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(77, 164, 255, 0), rgba(77, 164, 255, 0.36) 14%, rgba(77, 164, 255, 0.36) 86%, rgba(77, 164, 255, 0));
}

.teo-website-privacy-number {
  color: #7fb6ff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.teo-website .teo-website-privacy-heading {
  color: #fff;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.teo-website-privacy-body {
  max-width: 68ch;
  margin: 0;
  color: #c4d6ee;
  font-size: 16px;
  line-height: 1.7;
}

/* ===== narrower screens ===== */

@media (max-width: 900px) {
  /* the points above the form */
  .teo-website .teo-website-contact-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .teo-website-contact-side {
    padding-top: 0;
  }

  /* the text drops under the number and the heading */
  .teo-website-privacy-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .teo-website-privacy-body {
    grid-column: 2;
  }
}

@media (max-width: 600px) {
  .teo-website .teo-website-contact-submit {
    justify-self: stretch;
  }

  .teo-website-contact-points li {
    align-items: flex-start;
  }

  .teo-website-contact-icon {
    width: 46px;
    height: 44px;
    border-radius: 12px;
    font-size: 20px;
  }

  .teo-website-privacy-panel {
    padding: 4px 20px;
  }

  .teo-website-privacy-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .teo-website-privacy-body {
    grid-column: 1;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teo-website-contact-icon, .teo-website-contact-mail-text strong, .teo-website .teo-website-contact-submit,
  .teo-website-contact-form .teo-website-field input, .teo-website-contact-form .teo-website-field select,
  .teo-website-contact-form .teo-website-field textarea {
    transition: none;
  }

  .teo-website .teo-website-contact-submit:hover {
    transform: none;
  }
}
