/*
 * Book a call or send a message block (wpta/contact-form), as in the Contact wireframe.
 *
 * - The tabs: two buttons in a pale teal tray, the chosen one deep teal.
 * - "Book a call" is the booking picker, styled in assets/css/components/booking.css with the fields, buttons and
 *   notices both forms share.
 * - "Send a message": the enquiry form's layout, its consent line and its notices.
 */


/* The tabs, and the room between them and the chosen panel */

.contact-tabs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-tabs__list:not([hidden]) {
  display: flex;
  gap: 6px;
  align-self: flex-start;
  padding: 6px;
  border-radius: 12px;
  background: var(--teal-pale);
}

.contact-tabs__tab {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--teal-darker);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.contact-tabs__tab[aria-selected="true"] {
  background: #0d3d39;
  color: var(--white);
  font-weight: 600;
}

.contact-tabs__tab:focus-visible,
.contact-tabs__panel:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* Land clear of the sticky header when a link jumps to a tab */

.contact-tabs__panel {
  scroll-margin-top: clamp(96px, 12vw, 132px);
}

/* Without the script, the message form follows the booking under a line */

.contact-tabs__panel + .contact-tabs__panel:not([hidden]) {
  padding-top: 24px;
  border-top: 1px solid #e8ebe5;
}

.contact-tabs__list:not([hidden]) ~ .contact-tabs__panel + .contact-tabs__panel {
  padding-top: 0;
  border-top: 0;
}

/* The message form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.contact-form__consent input {
  margin-top: 2px;
}

.contact-form__notice--success {
  border: 1px solid #78b99b;
  background: #e7f5ed;
  color: #125d3a;
}

.contact-form__title + .contact-form__notice {
  margin-top: 14px;
}

.contact-form__notice + .contact-form {
  margin-top: 14px;
}

.contact-form__title + .contact-form {
  margin-top: 14px;
}
