/* =========================================================
   PATIENT INFORMATION PAGE
   ========================================================= */

.patient-card.patient-info-page {
  position: relative !important;
  overflow: visible !important;

  width: 80%;
  max-width: 1250px;

  margin: 20px auto;
  padding: 28px;

  box-sizing: border-box;

  background: #ffffff;

  border: 1px solid #e1e7ef;
  border-radius: 16px;

  box-shadow: 0 8px 25px rgba(36, 59, 99, 0.07);
}

/* =========================================================
   HEADER
   ========================================================= */

.patient-info-page .card-header-custom {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  width: 100%;

  text-align: center;
}

.patient-info-page .card-header-custom i {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border-radius: 10px;

  background: #f0e6f7;
  color: #6f00a8;

  font-size: 18px;
}

.patient-info-page .card-header-custom h4 {
  margin: 0;

  color: #243b63;

  font-size: 25px;
  font-weight: 700;
}

/* =========================================================
   CONTINUE BUTTON
   ========================================================= */

.patient-info-page > .continue-btn-d {
  position: absolute !important;

  top: 28px !important;
  right: 28px !important;

  z-index: 999 !important;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  width: 145px;
  height: 52px;

  margin: 0 !important;
  padding: 0 20px;

  border: none;
  border-radius: 10px;

  font-size: 16px;
  font-weight: 600;

  white-space: nowrap;

  visibility: visible !important;
}

/* =========================================================
   CARD BODY
   ========================================================= */

.patient-info-page .card-body {
  width: 90%;
  max-width: 1050px;

  margin: 0 auto !important;

  padding: 30px 0 10px;

  box-sizing: border-box;
}

/* =========================================================
   BOOTSTRAP ROW
   ========================================================= */

.patient-info-page .card-body .row {
  width: 100%;

  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* =========================================================
   FORM COLUMNS
   ========================================================= */

.patient-info-page .card-body .row > [class*="col-"] {
  padding-left: 9px;
  padding-right: 9px;
}

/* =========================================================
   LABEL
   ========================================================= */

.patient-info-page .form-label {
  display: block;

  margin-bottom: 7px;

  color: #111827;

  font-size: 16px;
  font-weight: 600;
}

/* =========================================================
   INPUT GROUP
   ========================================================= */

.patient-info-page .input-group {
  display: flex;

  width: 100%;

  position: relative;

  pointer-events: auto;
}

/* =========================================================
   INPUT ICON
   ========================================================= */

.patient-info-page .input-group-text {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 44px;

  width: 44px;
  height: 45px;

  padding: 0;

  background: #ffffff;

  color: #64748b;

  border: 1px solid #ccd7e5;

  font-size: 16px;

  pointer-events: none;
}

/* =========================================================
   TEXT INPUT / SELECT
   ========================================================= */

.patient-info-page .form-control,
.patient-info-page .form-select {
  min-width: 0;

  height: 45px;

  padding: 8px 12px;

  color: #111827;

  background-color: #ffffff;

  border: 1px solid #ccd7e5;

  border-radius: 8px;

  font-size: 16px;

  opacity: 1;

  pointer-events: auto;

  user-select: text;

  cursor: text;
}

/* =========================================================
   INPUT GROUP INPUT
   ========================================================= */

.patient-info-page .input-group > .form-control,
.patient-info-page .input-group > .form-select {
  flex: 1 1 auto;

  width: auto;

  min-width: 0;

  position: relative;

  z-index: 1;
}

/* =========================================================
   INPUT PLACEHOLDER
   ========================================================= */

.patient-info-page .form-control::placeholder {
  color: #94a3b8;

  opacity: 1;
}

/* =========================================================
   INPUT FOCUS
   ========================================================= */

.patient-info-page .form-control:focus,
.patient-info-page .form-select:focus {
  color: #111827;

  background-color: #ffffff;

  border-color: #6f00a8;

  outline: none;

  box-shadow: 0 0 0 3px rgba(111, 0, 168, 0.08);
}

/* =========================================================
   NORMAL BUTTON INSIDE INPUT GROUP
   ========================================================= */

.patient-info-page .input-group > .btn {
  flex: 0 0 52px;

  height: 45px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 0;

  background: #ffffff;

  border: 1px solid #ccd7e5;

  color: #64748b;

  cursor: pointer;

  pointer-events: auto;

  position: relative;

  z-index: 2;
}

.patient-info-page .input-group > .btn:hover {
  background: #f8fafc;

  color: #6f00a8;
}

/* =========================================================
   SELECT
   ========================================================= */

.patient-info-page select.form-select {
  appearance: auto;

  -webkit-appearance: auto;
  -moz-appearance: auto;

  background-image: none !important;

  cursor: pointer;
}

/* =========================================================
   DATE INPUT
   ========================================================= */

.patient-info-page input[type="text"],
.patient-info-page input[type="password"],
.patient-info-page input[type="date"] {
  cursor: text;
}

/* =========================================================
   REMOVE OVERLAY POSSIBILITY
   ========================================================= */

.patient-info-page .card-body,
.patient-info-page .row,
.patient-info-page .card-body .row > [class*="col-"],
.patient-info-page .input-group {
  position: relative;
}

/* =========================================================
   PASSWORD WRAPPER
   ========================================================= */

.patient-info-page .password-wrapper {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;
  height: 45px;
}

/* =========================================================
   PASSWORD LOCK ICON
   ========================================================= */

.patient-info-page .password-lock-icon {
  position: absolute;

  left: 0;
  top: 0;

  width: 44px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #64748b;

  z-index: 5;

  pointer-events: none;
}

.patient-info-page .password-lock-icon i {
  font-size: 16px;
}

/* =========================================================
   PASSWORD INPUT
   ========================================================= */

.patient-info-page .password-wrapper .form-control {
  width: 100%;

  height: 45px;

  padding-left: 44px;
  padding-right: 50px;

  border: 1px solid #ccd7e5;

  border-radius: 8px;

  background: #ffffff;

  color: #111827;

  z-index: 1;
}

/* =========================================================
   PASSWORD TOGGLE BUTTON
   ========================================================= */

.patient-info-page .password-wrapper .password-toggle-btn {
  position: absolute !important;

  top: 0 !important;
  right: 0 !important;

  width: 48px !important;
  height: 45px !important;

  display: flex !important;

  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  border: 0 !important;

  background: transparent !important;

  color: #64748b !important;

  cursor: pointer !important;

  z-index: 20 !important;

  visibility: visible !important;
  opacity: 1 !important;

  pointer-events: auto !important;
}

/* =========================================================
   PASSWORD EYE ICON
   ========================================================= */

.patient-info-page .password-toggle-btn i {
  display: block !important;

  font-family: "Font Awesome 5 Free" !important;

  font-weight: 900 !important;

  font-size: 16px !important;

  line-height: 1 !important;

  color: #64748b !important;

  visibility: visible !important;

  opacity: 1 !important;

  pointer-events: none;
}

/* =========================================================
   PASSWORD EYE HOVER
   ========================================================= */

.patient-info-page .password-toggle-btn:hover {
  background: transparent !important;
}

.patient-info-page .password-toggle-btn:hover i {
  color: #6f00a8 !important;
}

/* =========================================================
   PASSWORD EYE FOCUS
   ========================================================= */

.patient-info-page .password-toggle-btn:focus {
  outline: none !important;

  box-shadow: none !important;
}

.patient-info-page .password-toggle-btn:focus i {
  color: #6f00a8 !important;
}

/* =========================================================
   PASSWORD EYE ACTIVE
   ========================================================= */

.patient-info-page .password-toggle-btn:active {
  background: transparent !important;
}

/* =========================================================
   PASSWORD HELPER TEXT
   ========================================================= */

.patient-info-page .form-text {
  display: block;

  margin-top: 6px;

  color: #64748b;

  font-size: 16px;

  line-height: 1.5;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .patient-card.patient-info-page {
    width: 90%;

    padding: 25px;
  }

  .patient-info-page .card-body {
    width: 100%;

    max-width: 100%;
  }

  .patient-info-page > .continue-btn-d {
    right: 25px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
  .patient-card.patient-info-page {
    width: calc(100% - 24px);

    margin: 15px auto;

    padding: 20px 16px;
  }

  .patient-info-page .card-header-custom {
    padding-top: 45px;
  }

  .patient-info-page .card-header-custom h4 {
    font-size: 21px;
  }

  .patient-info-page > .continue-btn-d {
    top: 10px;

    right: 16px;

    min-width: 120px;

    height: 44px;

    font-size: 16px;
  }

  .patient-info-page .card-body {
    width: 100%;

    padding: 25px 0 5px;
  }

  .patient-info-page .card-body .row > [class*="col-"] {
    padding-left: 0;

    padding-right: 0;
  }

  .patient-info-page .password-wrapper {
    height: 45px;
  }

  .patient-info-page .password-toggle-btn {
    width: 48px !important;

    height: 45px !important;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {
  .patient-card.patient-info-page {
    width: calc(100% - 12px);

    padding: 18px 12px;
  }

  .patient-info-page .card-header-custom h4 {
    font-size: 19px;
  }

  .patient-info-page > .continue-btn-d {
    min-width: 110px;

    height: 42px;

    font-size: 16px;
  }

  .patient-info-page .password-toggle-btn {
    width: 46px !important;

    height: 45px !important;
  }

  .patient-info-page .password-wrapper .form-control {
    padding-right: 48px;
  }
}

/* =========================================================
   FRONT-DOOR PASS (walkthrough M18, Sep 28, 2026)
   Scoped to the booking steps on the home page so nothing else moves.
   Fields 52px tall with 17px text, labels above, the title in the
   accent color, "Show"/"Hide" as words, the password rules as a
   checklist, and Continue after the fields (it was pinned over the
   title at the top right).
   ========================================================= */

.appointment-wrapper .patient-card.patient-info-page {
  text-align: left;
  color: var(--apns-text, #1F1B24);
  border-color: var(--apns-panel-border, #EEE7F5);
  border-radius: 20px;
}

.appointment-wrapper .patient-info-page .card-header-custom {
  justify-content: flex-start;
  padding-top: 0;
  text-align: left;
}

.appointment-wrapper .patient-info-page .card-header-custom i {
  background: var(--apns-panel, #FAF7FD);
  color: var(--apns-accent, #6A3F8F);
}

.appointment-wrapper .patient-info-page .patient-info-title {
  margin: 0;
  padding: 0;
  color: var(--apns-accent, #6A3F8F);
  font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}

.appointment-wrapper .patient-info-page .patient-info-lead {
  margin: 8px 0 0;
  color: var(--apns-muted, #4A4458);
  font-size: 1.0625rem;
}

.appointment-wrapper .patient-info-page .card-body {
  width: 100%;
  max-width: 900px;
  margin: 0 !important;
  padding: 20px 0 0;
}

.appointment-wrapper .patient-info-page .form-label {
  margin-bottom: 6px;
  color: var(--apns-text, #1F1B24);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: left;
}

.appointment-wrapper .patient-info-page .pi-req {
  color: var(--apns-muted, #4A4458);
  font-weight: 400;
}

.appointment-wrapper .patient-info-page .form-control,
.appointment-wrapper .patient-info-page .form-select,
.appointment-wrapper .patient-info-page .input-group-text,
.appointment-wrapper .patient-info-page .password-wrapper,
.appointment-wrapper .patient-info-page .password-wrapper .form-control,
.appointment-wrapper .patient-info-page .password-lock-icon {
  height: 52px;
  min-height: 52px;
}

.appointment-wrapper .patient-info-page .form-control,
.appointment-wrapper .patient-info-page .form-select {
  font-size: 1.0625rem;
  color: var(--apns-text, #1F1B24);
  border-color: var(--apns-input-border, #8E7BA3);
}

.appointment-wrapper .patient-info-page .input-group-text {
  color: var(--apns-muted, #4A4458);
  border-color: var(--apns-input-border, #8E7BA3);
}

.appointment-wrapper .patient-info-page .form-control::placeholder {
  color: #6B6478;
}

.appointment-wrapper .patient-info-page .form-control:focus,
.appointment-wrapper .patient-info-page .form-select:focus {
  border-color: var(--apns-primary, #6A3F8F);
  outline: 3px solid var(--apns-focus, #6A3F8F);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #ffffff;
}

/* appointment.css paints every .error pure red and removes its focus
   ring; here an error keeps the brand's danger red and a visible ring. */
.appointment-wrapper .patient-info-page .form-control.error,
.appointment-wrapper .patient-info-page .form-select.error {
  border: 2px solid var(--apns-danger-text, #B02A37) !important;
}

.appointment-wrapper .patient-info-page .form-control.error:focus,
.appointment-wrapper .patient-info-page .form-select.error:focus {
  outline: 3px solid var(--apns-focus, #6A3F8F);
  outline-offset: 2px;
}

/* patient-pharmacy.css fixes every booking .input-group at 40px and
   strips its padding; this step's fields keep their own size. */
.appointment-wrapper .patient-info-page .input-group {
  height: auto;
  flex-wrap: nowrap;
}

.appointment-wrapper .patient-info-page .input-group input,
.appointment-wrapper .patient-info-page .input-group .form-control {
  padding: 10px 14px !important;
  height: 52px;
}

.appointment-wrapper .patient-info-page .pi-help,
.appointment-wrapper .patient-info-page .apns-pw-rules-wrap {
  text-align: left;
}

.appointment-wrapper .patient-info-page .password-wrapper .form-control {
  padding-right: 104px;
}

/* "Show" / "Hide" as a word, not an eye alone. 48px tall, the patient
   floor, inside the 52px field (public walkthrough 2026-09-30, #4: it
   was 44px here while the sign-up form's was already 48px). */
.appointment-wrapper .patient-info-page .password-wrapper .password-toggle-btn {
  top: 2px !important;
  right: 2px !important;
  width: auto !important;
  min-width: 88px;
  height: 48px !important;
  padding: 0 12px !important;
  gap: 6px;
  border: 1px solid var(--apns-panel-border, #EEE7F5) !important;
  border-radius: 10px;
  background: var(--apns-panel, #FAF7FD) !important;
  color: var(--apns-accent, #6A3F8F) !important;
  font-size: 1rem;
  font-weight: 700;
}

.appointment-wrapper .patient-info-page .password-toggle-btn i {
  color: var(--apns-accent, #6A3F8F) !important;
}

.appointment-wrapper .patient-info-page .password-toggle-btn:focus-visible {
  outline: 3px solid var(--apns-focus, #6A3F8F) !important;
  outline-offset: 2px;
}

.appointment-wrapper .patient-info-page .pi-help {
  margin-top: 6px;
  color: var(--apns-muted, #4A4458);
  font-size: 1rem;
}

.appointment-wrapper .patient-info-page .field-error {
  margin-top: 6px !important;
  color: var(--apns-danger-text, #B02A37);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

/* The password rules (patient.auth.partials.password-rules) */
.appointment-wrapper .patient-info-page .apns-pw-rules {
  list-style: none;
  margin: 10px 0 0;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  background: var(--apns-panel, #FAF7FD);
  border: 1px solid var(--apns-panel-border, #EEE7F5);
  border-radius: 12px;
  color: var(--apns-text, #1F1B24);
  font-size: 1rem;
  text-align: left;
}

.appointment-wrapper .patient-info-page .apns-pw-rules__title {
  font-weight: 600;
}

.appointment-wrapper .patient-info-page .apns-pw-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* The tick is 1rem, as on the sign-up form (it was 13px). */
.appointment-wrapper .patient-info-page .apns-pw-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--apns-input-border, #8E7BA3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: transparent;
}

.appointment-wrapper .patient-info-page .apns-pw-state {
  margin-left: auto;
  font-weight: 600;
  color: var(--apns-muted, #4A4458);
}

.appointment-wrapper .patient-info-page .apns-pw-rules li.is-met .apns-pw-mark {
  background: var(--apns-success-text, #146C43);
  border-color: var(--apns-success-text, #146C43);
  color: #ffffff;
}

.appointment-wrapper .patient-info-page .apns-pw-rules li.is-met .apns-pw-state {
  color: var(--apns-success-text, #146C43);
}

/* Continue after the fields, full width on phones. */
.appointment-wrapper .patient-card.patient-info-page > .continue-btn-d.pi-continue {
  position: static !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  height: auto;
  min-height: 56px;
  margin: 28px 0 0 auto !important;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--apns-gradient, linear-gradient(135deg, #4C006D 0%, #6A3F8F 100%)) !important;
  color: #ffffff !important;
  font-size: 1.125rem !important;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(76, 0, 109, .22);
}

@media (max-width: 767px) {
  .appointment-wrapper .patient-info-page .card-header-custom {
    padding-top: 0;
  }

  .appointment-wrapper .patient-card.patient-info-page > .continue-btn-d.pi-continue {
    max-width: none;
  }
}
