/* A Smart Clinic appointment form — modern responsive presentation only. */

html.asc-booking-page,
body.asc-booking-page {
  max-width: 100%;
  overflow-x: clip !important;
}

.et_pb_row.asc-host-row {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.et_pb_row.asc-host-row > .et_pb_column,
.et_pb_module.asc-host-module,
.et_pb_module.asc-host-module .et_pb_code_inner {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.asc-booking {
  --asc-navy: #263D35;
  --asc-deep: #263D35;
  --asc-teal: #A44532;
  --asc-teal-dark: #81412F;
  --asc-green: #6E8069;
  --asc-aqua: #E4EBDF;
  --asc-surface: #FFFDF8;
  --asc-input: #FCFAF4;
  --asc-line: #D7D9CF;
  --asc-line-strong: #B8C1B4;
  --asc-muted: #5E6A63;
  --asc-danger: #A44532;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100svh;
  margin: 0;
  padding: clamp(18px, 2.2vw, 42px);
  overflow-x: clip;
  color: var(--asc-navy);
  background:
    radial-gradient(circle at 4% 2%, rgba(110, 128, 105, 0.18), transparent 29%),
    radial-gradient(circle at 98% 7%, rgba(164, 69, 50, 0.10), transparent 27%),
    linear-gradient(145deg, #FAF7EF 0%, #F3F4EA 52%, #E4EBDF 100%);
  font: 400 18px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

.asc-booking,
.asc-booking * {
  box-sizing: border-box;
}

.asc-booking .asc-card {
  position: relative;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(184, 193, 180, 0.90);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(38, 61, 53, 0.12);
  animation: asc-card-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.asc-booking .asc-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--asc-green), var(--asc-teal) 55%, var(--asc-navy));
}

.asc-booking .asc-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px 30px;
  padding: clamp(34px, 3vw, 56px) clamp(24px, 3.5vw, 68px) 0;
}

.asc-booking .asc-tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid #C8D2C4;
  border-radius: 999px;
  color: #263D35;
  background: var(--asc-aqua);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
}

.asc-booking .asc-heading p {
  max-width: 1080px;
  margin: 0;
  color: var(--asc-muted);
  font-size: clamp(16px, 1.05vw, 19px);
  line-height: 1.7;
}

.asc-booking .asc-facts {
  display: none !important;
}

.asc-booking h1 {
  margin: 0;
  padding: 0;
  color: var(--asc-navy);
  font-family: inherit;
  font-size: clamp(34px, 3.1vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
}

.asc-booking .asc-rule {
  grid-column: 1 / -1;
  height: 1px;
  margin-top: 10px;
  background: var(--asc-line);
}

.asc-booking .asc-rule::before {
  display: block;
  width: 132px;
  height: 4px;
  border-radius: 999px;
  content: "";
  transform: translateY(-1px);
  background: linear-gradient(90deg, var(--asc-green), var(--asc-teal));
}

.asc-booking .asc-form-body {
  width: 100%;
  min-width: 0;
  padding: 30px clamp(24px, 3.5vw, 68px) clamp(38px, 4vw, 70px);
}

.asc-booking .fluentform,
.asc-booking .fluentform form,
.asc-booking form > fieldset {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.asc-booking .asc-panel {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 78px);
  min-width: 0;
  margin: 0 0 26px;
  padding: clamp(28px, 2.4vw, 44px);
  border: 1px solid var(--asc-line);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #FFFDF8 100%);
  box-shadow: 0 14px 38px rgba(38, 61, 53, 0.055);
  animation: asc-panel-enter 0.45s ease-out both;
}

.asc-booking .asc-panel:nth-of-type(2) { animation-delay: 0.06s; }
.asc-booking .asc-panel:nth-of-type(3) { animation-delay: 0.12s; }

.asc-booking .asc-section {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  margin: 0;
}

.asc-booking .asc-section > span {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #C8D2C4;
  border-radius: 50%;
  color: #263D35;
  background: var(--asc-aqua);
  box-shadow: inset 0 0 0 4px rgba(255, 253, 248, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.asc-booking .asc-section h2 {
  margin: 2px 0 0;
  padding: 0;
  color: var(--asc-navy);
  font-family: inherit;
  font-size: clamp(22px, 1.55vw, 29px);
  font-weight: 760;
  line-height: 1.22;
  letter-spacing: -0.4px;
}

.asc-booking .asc-section p {
  margin: 8px 0 0;
  color: var(--asc-muted);
  font-size: 15px;
  line-height: 1.6;
}

.asc-booking .asc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 30px;
  align-items: start;
  min-width: 0;
}

.asc-booking .asc-fields > .asc-field {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}

.asc-booking .asc-fields > .asc-field-wide {
  grid-column: 1 / -1;
}

.asc-booking .asc-fields .ff-t-container,
.asc-booking .asc-field-wide .ff-t-container {
  display: flex;
  gap: 30px;
  width: 100%;
  min-width: 0;
}

.asc-booking .asc-fields .ff-t-cell,
.asc-booking .asc-field-wide .ff-t-cell {
  flex: 1;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
}

.asc-booking .asc-fields .ff-t-cell .ff-el-group {
  margin-bottom: 0;
}

.asc-booking .fluentform .ff-el-group {
  min-width: 0;
  margin-bottom: 24px;
}

.asc-booking .fluentform .ff-el-input--label {
  margin-bottom: 9px;
}

.asc-booking .fluentform .ff-el-input--label label {
  color: var(--asc-navy);
  font-family: inherit;
  font-size: 16px;
  font-weight: 680;
  line-height: 1.45;
}

.asc-booking .fluentform .ff-el-form-control {
  width: 100%;
  max-width: 100%;
  min-height: 58px;
  padding: 14px 17px !important;
  border: 1px solid var(--asc-line-strong) !important;
  border-radius: 13px !important;
  outline: none;
  color: var(--asc-navy) !important;
  background: var(--asc-input) !important;
  box-shadow: 0 2px 5px rgba(5, 37, 54, 0.03);
  font: 400 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s, transform 0.18s;
}

.asc-booking .fluentform .ff-el-form-control::placeholder {
  color: #7A827C;
  opacity: 1;
}

.asc-booking .fluentform .ff-el-form-control:hover {
  border-color: #B76B5B !important;
}

.asc-booking .fluentform .ff-el-form-control:focus {
  border-color: var(--asc-teal) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(164, 69, 50, 0.13), 0 6px 18px rgba(38, 61, 53, 0.07) !important;
}

.asc-booking .fluentform select.ff-el-form-control {
  padding-right: 42px !important;
}

.asc-booking .fluentform textarea.ff-el-form-control {
  min-height: 140px;
  resize: vertical;
}

.asc-booking .fluentform .ff-el-help-message,
.asc-booking .fluentform .ff-el-form-check-label,
.asc-booking [role="status"] {
  color: var(--asc-muted);
  font-size: 14px;
  line-height: 1.6;
}

.asc-booking .fluentform input[type="checkbox"],
.asc-booking .fluentform input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--asc-teal);
}

.asc-booking .ff-el-input--content {
  min-width: 0;
  max-width: 100%;
}

.asc-booking .ff-el-input--content:has(iframe),
.asc-booking .ff-el-input--content:has(.cf-turnstile),
.asc-booking .cf-turnstile {
  max-width: 100%;
  overflow: hidden;
}

.asc-booking iframe {
  max-width: 100%;
}

.asc-booking .asc-time-field {
  min-height: 100%;
  padding: 24px !important;
  border: 1px solid #C8D2C4;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--asc-aqua), #f8fcfb);
}


.asc-booking .asc-time-reminder {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #D2D8CE;
  color: var(--asc-muted);
}

.asc-booking .asc-time-reminder h3 {
  margin: 0 0 10px;
  color: var(--asc-navy);
  font-size: 16px;
  font-weight: 780;
  line-height: 1.4;
}

.asc-booking .asc-time-reminder ul {
  margin: 0;
  padding-left: 21px;
  font-size: 14px;
  line-height: 1.6;
}

.asc-booking .asc-time-reminder li + li {
  margin-top: 4px;
}

.asc-booking .asc-time-field::after {
  display: block;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #D2D8CE;
  color: #5E6A63;
  content: "Your time is reserved after you submit successfully. The clinic will confirm your appointment.";
  font-size: 14px;
  line-height: 1.65;
}

.asc-booking .asc-calendar {
  width: 100%;
  max-width: none;
  margin-top: 14px;
  padding: 22px;
  border: 1px solid var(--asc-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(38, 61, 53, 0.055);
}

.asc-booking .asc-calendar[hidden] { display: none; }

.asc-booking .asc-cal-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
}

.asc-booking .asc-cal-head select {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 8px 6px;
  border: 0;
  color: var(--asc-navy);
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.asc-booking .asc-cal-head select[aria-label="Calendar year"] { flex: 0.7; }

.asc-booking .asc-cal-head button {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--asc-line);
  border-radius: 12px;
  color: var(--asc-navy);
  background: var(--asc-input);
  font-size: 25px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.asc-booking .asc-cal-head button:hover:not(:disabled) {
  border-color: var(--asc-teal);
  background: var(--asc-aqua);
  transform: translateY(-1px);
}

.asc-booking .asc-cal-week,
.asc-booking .asc-cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  text-align: center;
}

.asc-booking .asc-cal-week {
  margin-bottom: 9px;
  color: var(--asc-muted);
  font-size: 14px;
  font-weight: 680;
}

.asc-booking .asc-cal-days button {
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--asc-navy);
  background: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}

.asc-booking .asc-cal-days button:hover:not(:disabled) {
  border-color: #C1CBBE;
  background: var(--asc-aqua);
  transform: translateY(-1px);
}

.asc-booking .asc-cal-days button[aria-pressed="true"] {
  border-color: var(--asc-navy) !important;
  color: #ffffff !important;
  background: var(--asc-navy) !important;
  box-shadow: 0 7px 16px rgba(38, 61, 53, 0.22);
}

.asc-booking .asc-cal-days button.asc-today { border-color: var(--asc-teal); }
.asc-booking .asc-calendar button:disabled { opacity: 0.3; cursor: default; }

.asc-booking .asc-cal-status {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--asc-line);
  color: var(--asc-muted);
  font-size: 14px;
  line-height: 1.6;
}

.asc-booking .asc-cal-clear {
  min-height: 42px;
  margin-top: 8px;
  padding: 7px 0;
  border: 0;
  color: var(--asc-teal-dark);
  background: none;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}


.asc-booking .asc-pre-submit-notice {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
  margin: 30px 0 8px;
  padding: 22px;
  border: 1px solid #C8D2C4;
  border-radius: 18px;
  background: #FAF7EF;
  box-shadow: 0 10px 28px rgba(38, 61, 53, 0.05);
}

.asc-booking .asc-pre-submit-notice.asc-health-only {
  grid-template-columns: 1fr;
}

.asc-booking .asc-reminder-copy,
.asc-booking .asc-health-card {
  min-width: 0;
}

.asc-booking .asc-reminder-kicker,
.asc-booking .asc-health-card > span {
  margin: 0 0 8px;
  color: var(--asc-teal-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1px;
}

.asc-booking .asc-pre-submit-notice h3 {
  margin: 0 0 10px;
  color: var(--asc-navy);
  font-size: 18px;
  font-weight: 780;
  line-height: 1.35;
}

.asc-booking .asc-pre-submit-notice ul {
  margin: 0;
  padding-left: 22px;
  color: var(--asc-muted);
}

.asc-booking .asc-pre-submit-notice li + li {
  margin-top: 4px;
}

.asc-booking .asc-health-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px;
  border: 1px solid #D9C1B8;
  border-radius: 14px;
  background: #FFFDF8;
}

.asc-booking .asc-health-card > span {
  flex: 0 0 auto;
  margin: 2px 0 0;
  padding: 7px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--asc-teal);
  font-size: 10px;
}

.asc-booking .asc-health-card h3 {
  color: var(--asc-teal-dark);
}

.asc-booking .asc-health-card p {
  margin: 0;
  color: var(--asc-navy);
  font-size: 15px;
  line-height: 1.55;
}

.asc-booking .fluentform .ff-btn-submit {
  display: block;
  width: auto;
  min-width: 290px;
  min-height: 60px;
  margin: 32px 0 0 auto;
  padding: 16px 34px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  background: linear-gradient(120deg, var(--asc-teal), var(--asc-teal-dark)) !important;
  box-shadow: 0 12px 26px rgba(129, 65, 47, 0.25);
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s, filter 0.18s;
}

.asc-booking .fluentform .ff-btn-submit:hover {
  filter: saturate(1.08);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(129, 65, 47, 0.32);
}

.asc-booking .fluentform .ff-btn-submit:disabled {
  opacity: 0.64;
  transform: none;
  cursor: wait;
}

.asc-booking .fluentform .error,
.asc-booking .fluentform .text-danger {
  color: var(--asc-danger) !important;
  font-size: 14px;
}

.asc-booking .fluentform .ff-el-is-error .ff-el-form-control {
  border-color: var(--asc-danger) !important;
  background: #FFF8F5 !important;
}

.asc-booking .ff-message-success {
  padding: 22px;
  border: 1px solid #BFCDBA;
  border-radius: 15px;
  color: #263D35;
  background: #EEF3EA;
  font-size: 16px;
}

.asc-booking .asc-notice {
  margin: 10px 0 22px;
  padding: 17px 19px;
  border: 1px solid var(--asc-line);
  border-radius: 13px;
  color: var(--asc-muted);
  background: var(--asc-input);
  font-size: 14px;
}

.asc-booking .asc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 26px;
  padding: 24px clamp(24px, 3.5vw, 68px);
  border-top: 1px solid var(--asc-line);
  color: var(--asc-muted);
  background: linear-gradient(90deg, #FAF7EF, #E4EBDF);
  font-size: 15px;
}

.asc-booking a {
  color: var(--asc-teal-dark);
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.asc-booking .asc-footnote {
  margin: 22px 0 0;
  color: var(--asc-muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
}

.asc-booking :focus-visible {
  outline: 3px solid rgba(164, 69, 50, 0.50);
  outline-offset: 3px;
}

@keyframes asc-card-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes asc-panel-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .asc-booking { padding: 18px; }
  .asc-booking .asc-panel { grid-template-columns: 1fr; gap: 26px; }
  .asc-booking .asc-heading { grid-template-columns: 1fr; gap: 15px; }
  .asc-booking .asc-rule { grid-column: auto; }
}

@media (max-width: 820px) {
  .asc-booking {
    min-height: auto;
    padding: 12px;
    font-size: 17px;
  }

  .asc-booking .asc-card { border-radius: 20px; }
  .asc-booking .asc-heading { padding: 32px 22px 0; }
  .asc-booking .asc-form-body { padding: 22px 22px 32px; }
  .asc-booking .asc-panel { gap: 23px; margin-bottom: 18px; padding: 24px 20px; border-radius: 18px; }
  .asc-booking .asc-fields { grid-template-columns: 1fr; gap: 20px; }
  .asc-booking .asc-fields > .asc-field-wide { grid-column: auto; }
  .asc-booking .asc-fields .ff-t-container,
  .asc-booking .asc-field-wide .ff-t-container { display: block !important; }
  .asc-booking .asc-fields .ff-t-cell,
  .asc-booking .asc-field-wide .ff-t-cell { width: 100% !important; padding: 0 !important; }
  .asc-booking .asc-fields .ff-t-cell + .ff-t-cell,
  .asc-booking .asc-field-wide .ff-t-cell + .ff-t-cell { margin-top: 20px; }
  .asc-booking .asc-pre-submit-notice { grid-template-columns: 1fr; padding: 20px; }
  .asc-booking .fluentform .ff-btn-submit { width: 100%; min-width: 0; }
  .asc-booking .asc-card-footer { flex-wrap: wrap; padding: 20px 22px; }
}

@media (max-width: 540px) {
  .asc-booking {
    padding: 6px;
    background: #FAF7EF;
  }

  .asc-booking .asc-card {
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(38, 61, 53, 0.10);
  }

  .asc-booking .asc-heading { padding: 28px 15px 0; }
  .asc-booking .asc-tag { min-height: 34px; padding: 8px 12px; font-size: 11px; }
  .asc-booking .asc-heading p { font-size: 15px; }
  .asc-booking .asc-form-body { padding: 17px 9px 24px; }
  .asc-booking .asc-panel { padding: 20px 12px; border-radius: 14px; }
  .asc-booking .asc-section { gap: 12px; }
  .asc-booking .asc-section > span { flex-basis: 40px; width: 40px; height: 40px; font-size: 12px; }
  .asc-booking .asc-section h2 { font-size: 21px; }
  .asc-booking .asc-section p { font-size: 14px; }
  .asc-booking .fluentform .ff-el-input--label label { font-size: 15px; }
  .asc-booking .fluentform .ff-el-form-control { min-height: 54px; padding: 13px 14px !important; font-size: 16px; }
  .asc-booking .asc-calendar { padding: 12px 8px; }
  .asc-booking .asc-cal-head { gap: 4px; }
  .asc-booking .asc-cal-head button { flex-basis: 38px; width: 38px; height: 42px; }
  .asc-booking .asc-cal-head select { padding-right: 0; padding-left: 0; font-size: 14px; }
  .asc-booking .asc-cal-week,
  .asc-booking .asc-cal-days { gap: 2px; }
  .asc-booking .asc-cal-days button { min-height: 40px; border-radius: 8px; font-size: 14px; }
  .asc-booking .asc-time-field { padding: 17px !important; }
  .asc-booking .asc-pre-submit-notice { gap: 16px; margin-top: 22px; padding: 16px 13px; border-radius: 14px; }
  .asc-booking .asc-health-card { display: block; padding: 15px; }
  .asc-booking .asc-health-card > span { display: inline-block; margin-bottom: 10px; }
  .asc-booking .asc-card-footer { padding: 18px 15px; font-size: 14px; }
  .asc-booking .asc-footnote { margin-top: 16px; font-size: 12px; }
}

@media (max-width: 360px) {
  .asc-booking .asc-form-body { padding-right: 6px; padding-left: 6px; }
  .asc-booking .asc-panel { padding-right: 9px; padding-left: 9px; }
  .asc-booking .cf-turnstile { transform: scale(0.9); transform-origin: left top; margin-bottom: -7px; }
}

@media (prefers-reduced-motion: reduce) {
  .asc-booking *,
  .asc-booking *::before,
  .asc-booking *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .asc-booking .fluentform .ff-btn-submit:hover,
  .asc-booking .asc-cal-days button:hover,
  .asc-booking .asc-cal-head button:hover {
    transform: none;
  }
}
