/*
 * The Smile Code booking form. Every colour, radius and family is one of the
 * variables below, taken from the site's Avada palette (--awb-color1..8) and
 * type tokens as measured on 2026-12-03. A restyle changes these variables or
 * the rules in this file; contact-form.js and halcy-contact-form.php set no
 * visual property.
 *
 * Dark is the default: /contact-us/ places the form on --awb-color6 (#404943)
 * and the off-canvas panel on black. Popup 1816 has a light card and uses
 * [halcy_contact_form theme="light"], which swaps the variables only.
 *
 * Borders use --awb-color2 rather than the theme's --form_border_color
 * (#5b6059): that one is 1.5:1 against #404943, below the 3:1 a control's
 * outline needs to be seen.
 */
.halcy-contact-wrap {
  --halcy-contact-text: #ffffff;
  --halcy-contact-muted: #c9cbc2;
  --halcy-contact-border: #a4a69b;
  --halcy-contact-field-bg: transparent;
  --halcy-contact-accent: #a4a69b;
  --halcy-contact-accent-text: #000000;
  --halcy-contact-accent-hover: #ffffff;
  --halcy-contact-radius: 6px;
  --halcy-contact-font: 'Red Hat Display', Arial, Helvetica, sans-serif;
  --halcy-contact-button-font: termina, Arial, Helvetica, sans-serif;
  color: var(--halcy-contact-text);
  font: 400 16px/1.5 var(--halcy-contact-font);
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.halcy-contact-wrap.halcy-contact--light {
  --halcy-contact-text: #1b2417;
  --halcy-contact-muted: #4a4f48;
  --halcy-contact-border: #5b6059;
  --halcy-contact-field-bg: #ffffff;
  --halcy-contact-accent: #1b2417;
  --halcy-contact-accent-text: #ffffff;
  --halcy-contact-accent-hover: #404943;
}
.halcy-contact-wrap *,
.halcy-contact-wrap *::before,
.halcy-contact-wrap *::after {
  box-sizing: border-box;
}
.halcy-contact {
  margin: 0;
  padding: 0;
}
.halcy-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.halcy-contact-field {
  margin: 0 0 16px;
}
.halcy-contact-fields .halcy-contact-field {
  margin: 0;
}
.halcy-contact label,
.halcy-contact legend {
  display: block;
  color: var(--halcy-contact-text);
  font: 500 15px/1.4 var(--halcy-contact-font);
  margin: 0 0 6px;
  padding: 0;
}
.halcy-contact-required {
  margin-left: 2px;
}
.halcy-contact-optional {
  color: var(--halcy-contact-muted);
  font-weight: 400;
}
.halcy-contact .halcy-contact-field :is(input, textarea) {
  display: block;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--halcy-contact-border);
  border-radius: var(--halcy-contact-radius);
  background: var(--halcy-contact-field-bg);
  color: var(--halcy-contact-text);
  font: 400 16px/1.4 var(--halcy-contact-font);
  padding: 12px 14px;
  margin: 0;
  box-shadow: none;
}
.halcy-contact textarea {
  min-height: 112px;
  resize: vertical;
}
.halcy-contact fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  min-width: 0;
}
.halcy-contact-choices {
  display: flex;
  gap: 24px;
}
.halcy-contact .halcy-contact-choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin: 0;
  cursor: pointer;
}
.halcy-contact input[type='radio'] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--halcy-contact-accent);
}
.halcy-contact button[data-send] {
  position: relative;
  display: inline-grid;
  min-height: 50px;
  font: 700 14px/1.4 var(--halcy-contact-button-font);
  color: var(--halcy-contact-accent-text);
  background: var(--halcy-contact-accent);
  border: 1px solid var(--halcy-contact-accent);
  border-radius: var(--halcy-contact-radius);
  padding: 13px 28px;
  margin: 0;
  cursor: pointer;
}
.halcy-contact button[data-send]:hover:not(:disabled) {
  background: var(--halcy-contact-accent-hover);
  border-color: var(--halcy-contact-accent-hover);
}
.halcy-contact button[data-send] > :is([data-send-label], .halcy-contact-send-size) {
  grid-area: 1 / 1;
}
.halcy-contact-send-size {
  visibility: hidden;
}
.halcy-contact-send-spinner {
  position: absolute;
  left: 8px;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border: 2px solid var(--halcy-contact-accent-text);
  border-right-color: transparent;
  border-radius: 50%;
  animation: halcy-contact-spin 800ms linear infinite;
}
@keyframes halcy-contact-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .halcy-contact-send-spinner {
    animation: none;
  }
}
.halcy-contact button:disabled {
  cursor: default;
  opacity: 0.6;
}
.halcy-contact :is(input, textarea) {
  scroll-margin-top: var(--halcy-contact-header-offset, 140px);
}
/* The theme strips outlines (fusion-disable-outline); keyboard focus must survive it. */
.halcy-contact :is(input, textarea, button):focus-visible {
  outline: 2px solid var(--halcy-contact-text) !important;
  outline-offset: 2px;
}
.halcy-contact .halcy-contact-error {
  color: var(--halcy-contact-text);
  border-left: 3px solid var(--halcy-contact-accent);
  padding-left: 12px;
  font-size: 15px;
  margin: 0 0 16px;
}
.halcy-contact-wrap a {
  color: inherit;
  text-decoration: underline;
}
.halcy-contact-confirmation {
  border: 1px solid var(--halcy-contact-border);
  border-radius: var(--halcy-contact-radius);
  padding: 20px 24px;
}
.halcy-contact-confirmation:focus {
  outline: none;
}
.halcy-contact-confirmation p {
  color: var(--halcy-contact-text);
  margin: 0;
}
.halcy-contact-confirmation .halcy-contact-confirmation-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.halcy-contact-wrap [hidden] {
  display: none !important;
}
.halcy-contact-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .halcy-contact-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .halcy-contact button[data-send] {
    width: 100%;
  }
}
