/* Form-only presentation. Do not override shared page or portal styles here. */
@font-face {
  font-family: 'JeevanSetu Booking Inter';
  src: url('/releases/6f531b3da00949d6aa25/css/fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

#booking-dialog {
  /* Slightly deeper brand red keeps 12–16px text above 4.5:1 contrast. */
  --booking-action-red: #e31334;
  width: min(680px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #e3e8ef;
  border-radius: 24px;
  background: #fff;
  color: #172033;
  font-family: 'JeevanSetu Booking Inter', Inter, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scrollbar-gutter: stable;
  scroll-padding-block: 100px 20px;
}

#booking-dialog .booking-brand-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px 12px;
  background: #fff;
}

#booking-dialog .booking-logo {
  display: block;
  width: 176px;
  max-width: calc(100% - 60px);
  height: auto;
  object-fit: contain;
}

#booking-dialog #close-booking {
  position: static;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: #f1f5f9;
  color: #062b5c;
  font-size: 28px;
}

#booking-dialog .consultation-dialog-header {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 28px 20px;
  border: 0;
  background: #fff;
}

#booking-dialog .booking-heading {
  width: auto;
  min-width: 0;
  padding: 0;
}

#booking-dialog .booking-heading .eyebrow {
  margin: 0 0 6px;
  color: var(--booking-action-red);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

#booking-dialog #booking-title {
  margin: 0;
  color: #062b5c;
  font-size: 30px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

#booking-dialog .booking-intro {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

#booking-dialog .booking-header-actions {
  position: static;
  width: auto;
}

#booking-dialog .session-countdown {
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  animation: none;
}

#booking-dialog .session-clock {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
}

#booking-dialog .lead-form-shell {
  padding: 0 28px 28px;
}

#booking-dialog .form-fieldset {
  margin: 0 0 18px;
}

#booking-dialog .consultation-method-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#booking-dialog .consultation-method-fieldset legend {
  flex-basis: 100%;
}

#booking-dialog .consultation-method-option {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 12px;
  border: 2px solid #dce3ed;
  border-radius: 10px;
  color: #10294d;
  cursor: pointer;
}

#booking-dialog .consultation-method-option:has(input[value='PHONE']:checked) {
  border-color: #00833f;
  background: #eaf7ef;
  color: #00612f;
  font-weight: 700;
}

#booking-dialog .consultation-method-option:has(input[value='ONLINE_MEETING']:checked) {
  border-color: #1459c7;
  background: #edf3ff;
  color: #0b438f;
  font-weight: 700;
}

#booking-dialog .consultation-method-option:has(input:checked) .consultation-method-icon {
  stroke-width: 2.3;
}

#booking-dialog .consultation-method-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

#booking-dialog .consultation-method-option input[value='PHONE'] {
  accent-color: #00833f;
}

#booking-dialog .consultation-method-option input[value='ONLINE_MEETING'] {
  accent-color: #1459c7;
}

#booking-dialog .consultation-method-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

#booking-dialog .lead-form legend,
#booking-dialog .lead-form label:not(.choice, .date-option, .slot-option, .consent) {
  margin: 0 0 7px;
  color: #062b5c;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

#booking-dialog .required-mark,
#booking-dialog .required-label::after {
  color: var(--booking-action-red);
}

#booking-dialog .lead-form small,
#booking-dialog .lead-form .small,
#booking-dialog #mobile-help,
#booking-dialog #slot-availability {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

#booking-dialog .lead-form legend small {
  margin-left: 5px;
  font-weight: 500;
}

#booking-dialog .form-row {
  gap: 16px;
  margin-bottom: 16px;
}

#booking-dialog .lead-form input:not([type='radio'], [type='checkbox']),
#booking-dialog .lead-form textarea {
  min-height: 50px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 12px;
  color: #172033;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

#booking-dialog .lead-form input::placeholder {
  color: #64748b;
  opacity: 1;
}

#booking-dialog .phone-wrap {
  min-height: 50px;
  border-color: #cbd5e1;
}

#booking-dialog .phone-wrap > span {
  color: #062b5c;
  font-size: 16px;
}

#booking-dialog #customer-mobile {
  min-height: 48px;
  padding: 10px 0;
  border: 0;
}

#booking-dialog #customer-email {
  margin-bottom: 20px;
}

#booking-dialog .choice {
  min-height: 50px;
  padding: 10px;
  border-color: #cbd5e1;
  color: #062b5c;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
}

#booking-dialog .choice:has(input:checked) {
  border-color: #ed1738;
  background: #fff1f3;
  color: #bd102b;
}

#booking-dialog .booking-details {
  display: block;
  margin: 0;
}

#booking-dialog .date-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

#booking-dialog .date-option {
  min-height: 78px;
  padding: 7px 2px;
  border-color: #cbd5e1;
  line-height: 1.5;
}

#booking-dialog .date-option span {
  color: #64748b;
  font-size: 12px;
}

#booking-dialog .date-option strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

#booking-dialog .date-option:has(input:checked) {
  border-color: var(--booking-action-red);
  background: var(--booking-action-red);
  color: #fff;
}

#booking-dialog .date-option:has(input:checked) span {
  color: #fff;
}

#booking-dialog .slot-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-height: 194px;
  padding: 4px;
  scroll-padding-block: 4px;
  scrollbar-gutter: stable;
}

#booking-dialog .slot-option {
  min-height: 46px;
  padding: 5px 2px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

#booking-dialog .slot-option[data-remaining='4'] {
  border-color: #cfe3d4;
  background: #f1faf4;
  color: #1b6d40;
}

#booking-dialog .slot-option[data-remaining='3'] {
  border-color: #cfe3d4;
  background: #f1faf4;
  color: #1b6d40;
}

#booking-dialog .slot-option[data-remaining='2'] {
  border-color: #d97706;
  background: #f59e0b;
  color: #111827;
}

#booking-dialog .slot-option[data-remaining='1'] {
  border-color: #f87171;
  background: #fca5a5;
  color: #111827;
}

#booking-dialog .slot-option[data-remaining='0'] {
  border-color: #d1d5db;
  background: #e5e7eb;
  color: #475569;
}

#booking-dialog .slot-option:has(input:checked) {
  border: 2px solid #1c7a4d;
  background: #2e7d32;
  color: #fff;
  box-shadow: 0 0 0 2px rgb(46 125 50 / 18%);
}

#booking-dialog .slot-option:has(input:checked) small {
  color: #fff;
}

#booking-dialog .slot-check {
  position: absolute;
  top: 1px;
  right: 4px;
  font-size: 11px;
  line-height: 1;
}

#booking-dialog .slot-option:has(input:disabled) {
  border-color: #dbe1e8;
  background: #e5e7eb;
  color: #64748b;
}

#booking-dialog .date-option:has(input:disabled),
#booking-dialog .choice:has(input:disabled) {
  border-color: #dbe1e8;
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

#booking-dialog .date-option:has(input:disabled) span {
  color: inherit;
}

#booking-dialog .refresh-availability,
#booking-dialog .booking-notes summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  color: #062b5c;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

#booking-dialog .refresh-availability {
  margin-top: -12px;
}

#booking-dialog .booking-notes {
  margin: 0 0 12px;
}

#booking-dialog .booking-notes summary {
  display: list-item;
  padding-block: 10px;
  line-height: 24px;
}

#booking-dialog .booking-notes textarea {
  min-height: 90px;
}

#booking-dialog .consent {
  min-height: 44px;
  gap: 10px;
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

#booking-dialog .consent input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: #ed1738;
}

#booking-dialog .consent a,
#booking-dialog .booking-support a {
  color: #062b5c;
  text-underline-offset: 3px;
}

#booking-dialog .submit-button {
  min-height: 52px;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--booking-action-red);
  border-radius: 999px;
  background: var(--booking-action-red);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
}

#booking-dialog .submit-button:hover:not(:disabled) {
  border-color: #c7102e;
  background: #c7102e;
}

#booking-dialog button:disabled {
  cursor: not-allowed;
}

#booking-dialog .lead-form[aria-busy='true'] .submit-button {
  cursor: progress;
}

#booking-dialog .lead-form[aria-busy='true'] .submit-button > span {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  font-size: 0;
  animation: booking-submit-spin 0.8s linear infinite;
}

#booking-dialog #booking-status {
  min-height: 0;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.6;
}

#booking-dialog :is(button, a, summary):focus-visible,
#booking-dialog :is(.choice, .date-option, .slot-option):has(input:focus-visible) {
  outline: 3px solid #2770cc;
  outline-offset: 2px;
}

@keyframes booking-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  #booking-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
    scroll-padding-top: 84px;
  }

  #booking-dialog .booking-brand-bar {
    padding: 16px 16px 10px;
  }

  #booking-dialog .booking-logo {
    width: 158px;
  }

  #booking-dialog .consultation-dialog-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 10px 16px 20px;
  }

  #booking-dialog #booking-title {
    font-size: 28px;
  }

  #booking-dialog .booking-header-actions {
    grid-row: 3;
    justify-self: start;
  }

  #booking-dialog .lead-form-shell {
    padding: 0 16px 24px;
  }

  #booking-dialog .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  #booking-dialog .choice {
    padding-inline: 4px;
  }

  #booking-dialog .lead-form legend small {
    display: block;
    margin: 3px 0 0;
  }

  #booking-dialog .date-grid {
    gap: 5px;
  }

  #booking-dialog .slot-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  #booking-dialog .lead-form[aria-busy='true'] .submit-button > span {
    animation: none;
  }
}

#booking-dialog
  :is(
    .choice,
    .consultation-method-option,
    .date-option,
    .slot-option,
    .refresh-availability,
    .submit-button
  ) {
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

#booking-dialog .lead-form input:not([type='radio'], [type='checkbox']),
#booking-dialog .lead-form textarea {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

@media (prefers-reduced-motion: reduce) {
  #booking-dialog
    :is(
      .choice,
      .consultation-method-option,
      .date-option,
      .slot-option,
      .refresh-availability,
      .submit-button,
      .lead-form input:not([type='radio'], [type='checkbox']),
      .lead-form textarea
    ) {
    transition: none;
  }
}
