/* Listing contact sheet — primary contact + language desks on same screen */

.c-contact-sheet {
  padding: 0;
  border: 0;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  background: transparent;
  color: #0f172a;
}

.c-contact-sheet[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-contact-sheet::backdrop {
  background: rgba(15, 23, 42, 0.48);
}

.c-contact-sheet__panel {
  width: min(440px, calc(100vw - 24px));
  max-height: min(88vh, 720px);
  margin: 0;
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

.c-contact-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.c-contact-sheet__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.c-contact-sheet__close {
  appearance: none;
  border: 0;
  background: #f1f5f9;
  color: #334155;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-contact-sheet__close:hover,
.c-contact-sheet__close:focus {
  background: #e2e8f0;
  color: #0f172a;
}

.c-contact-sheet__section {
  padding: 14px 18px 16px;
}

.c-contact-sheet__section + .c-contact-sheet__section {
  border-top: 1px solid #e2e8f0;
}

.c-contact-sheet__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #067a45;
}

.c-contact-sheet__subtitle {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.c-contact-sheet__langs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.c-contact-sheet__lang {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.c-contact-sheet__lang:hover,
.c-contact-sheet__lang:focus {
  border-color: #003893;
  background: #f3f6fc;
  outline: none;
}

.c-contact-sheet__lang.is-preferred:not(.is-active) {
  border-color: #94a3b8;
}

.c-contact-sheet__lang.is-active {
  border-color: #003893;
  background: #eef3fb;
  box-shadow: inset 0 0 0 1px #003893;
}

.c-contact-sheet__lang-flag {
  font-size: 22px;
  line-height: 1;
}

.c-contact-sheet__lang-label {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.c-contact-sheet__alt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

/* display:flex overrides bare [hidden] in some resets */
.c-contact-sheet [hidden],
.c-contact-sheet__alt-list[hidden],
.c-contact-sheet__person[hidden],
.c-contact-sheet__alt-list.is-collapsed,
.c-contact-sheet__person.is-collapsed,
.c-contact-sheet__lang.is-collapsed,
.c-contact-sheet__lang[hidden] {
  display: none !important;
}

.c-contact-sheet__person {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.c-contact-sheet__person--primary {
  border-color: #169455;
  background: linear-gradient(160deg, #067a45 0%, #07824b 100%);
  color: #fff;
}

.c-contact-sheet__person--primary .c-contact-sheet__person-name,
.c-contact-sheet__person--primary .c-contact-sheet__person-phone {
  color: #fff;
}

.c-contact-sheet__person-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.c-contact-sheet__lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.c-contact-sheet__lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.c-contact-sheet__lang-pills--primary .c-contact-sheet__lang-pill {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.c-contact-sheet__lang-pill-flag {
  font-size: 13px;
  line-height: 1;
}

.c-contact-sheet__person-phone {
  display: inline-block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #003893;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.c-contact-sheet__person-phone:hover,
.c-contact-sheet__person-phone:focus {
  text-decoration: underline;
}

.c-contact-sheet__person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c-contact-sheet__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
}

button.c-contact-sheet__action {
  appearance: none;
}

.c-contact-sheet__action--call {
  background: #003893;
  color: #fff;
  border: 1px solid #003893;
}

.c-contact-sheet__person--primary .c-contact-sheet__action--call {
  background: #fff;
  color: #067a45;
  border-color: #fff;
}

.c-contact-sheet__action--mail {
  background: transparent;
  color: #003893;
  border: 1px solid #003893;
}

.c-contact-sheet__person--primary .c-contact-sheet__action--mail {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.c-contact-sheet__action--call:hover,
.c-contact-sheet__action--call:focus {
  opacity: 0.92;
  color: #fff;
}

.c-contact-sheet__person--primary .c-contact-sheet__action--call:hover,
.c-contact-sheet__person--primary .c-contact-sheet__action--call:focus {
  color: #067a45;
  background: #f0fdf4;
}

.c-contact-sheet__action--mail:hover,
.c-contact-sheet__action--mail:focus {
  background: #f3f6fc;
  color: #003893;
}

.c-contact-sheet__person--primary .c-contact-sheet__action--mail:hover,
.c-contact-sheet__person--primary .c-contact-sheet__action--mail:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.c-contact-sheet__optional {
  font-style: normal;
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

.c-contact-sheet .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.c-contact-sheet__phone-row {
  display: grid;
  grid-template-columns: minmax(110px, 34%) 1fr;
  gap: 8px;
}

.c-contact-sheet__dial select,
.c-contact-sheet__phone-row input {
  appearance: none;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
}

.c-contact-sheet__subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c-contact-sheet__subject {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.25;
  text-align: left;
}

.c-contact-sheet__subject:hover,
.c-contact-sheet__subject:focus {
  border-color: #003893;
  background: #f3f6fc;
  outline: none;
}

.c-contact-sheet__subject.is-active {
  border-color: #003893;
  background: #eef3fb;
  box-shadow: inset 0 0 0 1px #003893;
  color: #003893;
}

.c-contact-sheet__gdpr {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.c-contact-sheet__gdpr a {
  color: #003893;
  font-weight: 600;
  text-decoration: underline;
}

.c-contact-sheet__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: #475569;
  cursor: pointer;
}

.c-contact-sheet__consent input {
  margin-top: 2px;
  flex: 0 0 auto;
}

.c-contact-sheet__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-contact-sheet__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.c-contact-sheet__field input,
.c-contact-sheet__field textarea {
  appearance: none;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
}

.c-contact-sheet__field textarea {
  resize: vertical;
  min-height: 96px;
}

.c-contact-sheet__field input:focus,
.c-contact-sheet__field textarea:focus {
  outline: none;
  border-color: #003893;
  box-shadow: 0 0 0 3px rgba(0, 56, 147, 0.12);
}

.c-contact-sheet__form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c-contact-sheet__form-status {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.c-contact-sheet__form-status.is-ok {
  color: #067a45;
}

.c-contact-sheet__form-status.is-error {
  color: #b91c1c;
}

.c-contact-sheet__mailto-fallback {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

.c-contact-sheet__mailto-fallback a {
  color: #003893;
  font-weight: 600;
  word-break: break-all;
}

.c-contact-sheet__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .c-contact-sheet[open] {
    align-items: stretch;
    justify-content: flex-end;
  }

  .c-contact-sheet__panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }

  .c-contact-sheet__langs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
