/* Reed Dental Dentist Access – Elementor-aligned buttons v0.2.6-test.
   Scoped to our own classes; no global Elementor/ WooCommerce overrides. */
.rd-dentist-registration {
  display: flow-root;
  position: relative;
  width: 100%;
  max-width: 860px;
  height: auto;
  margin: 0 auto;
  padding: 0 0 2rem;
  box-sizing: border-box;
  clear: both;
}
.rd-dentist-registration .rd-registration-title {
  margin: 0 0 1.5rem;
  padding: 0;
  color: inherit;
  font-family: inherit;
  line-height: 1.25;
}
.rd-dentist-registration *,
.rd-dentist-registration *::before,
.rd-dentist-registration *::after { box-sizing: border-box; }
.rd-dentist-registration .rd-application-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 1.75rem);
  row-gap: 1.35rem;
  align-items: start;
  width: 100%;
  height: auto;
  max-height: none;
  position: static;
  overflow: visible;
  margin: 0;
  padding: 0;
}
.rd-dentist-registration .rd-field { width: 100%; min-width: 0; margin: 0; padding: 0; }
.rd-dentist-registration .rd-field--half { grid-column: span 1; }
.rd-dentist-registration .rd-field--full,
.rd-dentist-registration .rd-privacy,
.rd-dentist-registration .rd-actions,
.rd-dentist-registration .rd-login-link,
.rd-dentist-registration .rd-honeypot { grid-column: 1 / -1; }
.rd-dentist-registration .rd-field label {
  display: block;
  margin: 0 0 .5rem;
  padding: 0;
  font-family: inherit;
  font-size: clamp(.95rem, 1vw, 1.04rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .01em;
  color: inherit;
}
.rd-dentist-registration .rd-field input:not([type="hidden"]),
.rd-dentist-registration .rd-field select {
  display: block;
  width: 100%;
  height: 52px;
  min-height: 0;
  margin: 0;
  padding: .65rem .9rem;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(245,246,247,.32);
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .16s ease, background-color .16s ease;
}
.rd-dentist-registration .rd-field input:hover,
.rd-dentist-registration .rd-field select:hover { border-color: rgba(245,246,247,.65); }
.rd-dentist-registration .rd-field select:focus,
.rd-dentist-registration .rd-field select:focus-visible,
.rd-dentist-registration .rd-field input:focus,
.rd-dentist-registration .rd-field input:focus-visible {
  border-color: #6cc3c9;
  background: rgba(255,255,255,.045);
  outline: 2px solid #6cc3c9;
  outline-offset: 2px;
  box-shadow: none;
}
.rd-dentist-registration .rd-privacy {
  margin: .25rem 0 0;
  font-size: .85rem;
  line-height: 1.65;
  opacity: .8;
}
.rd-dentist-registration .rd-actions { margin: 0; }
/* Geometry only: colours, typography, border, radius and hover all come from Elementor. */
.rd-dentist-registration .rd-submit { width: 100%; cursor: pointer; }
.rd-dentist-registration .rd-login-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 0;
  font-size: .92rem;
  line-height: 1.6;
  text-align: center;
}
.rd-message { padding: 1rem; border: 1px solid currentColor; margin-bottom: 1rem; }
.rd-error { color: #e08e8e; }
.rd-success { color: inherit; }
.rd-honeypot { position: absolute !important; left: -9999px !important; top: -9999px !important; }
.rd-gate { margin: 1rem 0; }
.rd-gate p { margin: .65rem 0; }
.rd-awaiting { font-size: .9em; opacity: .8; }
.rd-gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.rd-gate .rd-login-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.rd-gate .elementor-button, .rd-dentist-registration .elementor-button { text-decoration: none; }
.rd-gate-pending { padding: 1rem; border: 1px solid currentColor; }
.rd-gate-pending strong { display: block; }
.rd-gate-pending p { margin-bottom: 0; }
.rd-awaiting { display: inline-block; padding: .6rem .9rem; border: 1px solid currentColor; }

/* Let the Elementor shortcode and its containing layout contribute their actual
   height to normal document flow instead of clipping the registration form. */
@supports selector(:has(*)) {
  .elementor-widget-shortcode:has(.rd-dentist-registration),
  .elementor-widget-shortcode:has(.rd-dentist-registration) > .elementor-widget-container,
  .elementor-widget-shortcode:has(.rd-dentist-registration) .elementor-shortcode,
  .elementor .e-con:has(.rd-dentist-registration),
  .elementor .elementor-section:has(.rd-dentist-registration) {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
@media (max-width: 767px) {
  .rd-dentist-registration { padding-bottom: 1.5rem; }
  .rd-dentist-registration .rd-application-form { grid-template-columns: minmax(0, 1fr); row-gap: 1.1rem; }
  .rd-dentist-registration .rd-field--half { grid-column: 1 / -1; }
  .rd-dentist-registration .rd-field input:not([type="hidden"]),
.rd-dentist-registration .rd-field select { height: 50px; }
  .rd-gate-actions { flex-direction: column; align-items: stretch; }
  .rd-gate-actions > .elementor-button { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-dentist-registration input { transition: none; }
}

.rd-dentist-registration .rd-field select { appearance: auto; color-scheme: dark; }
.rd-dentist-registration .rd-field select option { color: #111; background: #fff; }
