/**
 * Primaya Hospital - Booking form skin for single posts (Quform ID 10)
 *
 * Companion to his-booking-form.css: same design tokens, same component
 * language, recompiled for the sidebar widget instead of a full-width page.
 *
 * his-booking-form.css is enqueued behind is_page(), so it never reaches
 * single posts. Rather than widening that gate (which would also pull
 * Select2 and the HIS integration scripts onto every post), the widget
 * carries its own skin here.
 *
 * Scope: everything lives under .doctor-shortcode, the wrapper the theme
 * renders the widget into (single.php and single-doctor.php), so no other
 * form on the site is affected. The Kendo calendar popup renders at body
 * level and is themed under its own container class at the end.
 *
 * Accessibility targets (audience 30-60+):
 *  - 16px input text (also prevents iOS auto-zoom), 14px labels
 *  - 48px minimum touch targets, visible 4px focus rings
 *  - Fields carry a tinted fill so they read clearly against the card
 *  - Answered fields turn white with a stronger border ("done" state)
 *  - Disabled calendar days stay legible instead of fading out
 */

.doctor-shortcode {
    /* Design tokens - identical values to his-booking-form.css */
    --ph-ink: #10262E;
    --ph-muted: #5A6B74;
    --ph-quiet: #7B8C95;
    --ph-brand: #015C80;
    --ph-brand-deep: #023D56;
    --ph-brand-bright: #0A7BA6;
    --ph-soft: #E8F3F8;
    --ph-soft-deep: #D4E9F2;
    --ph-field-bg: #F5F9FB;
    --ph-field-border: #D9E7EE;
    --ph-line-strong: rgba(1, 92, 128, 0.4);
    --ph-danger: #C2453A;
    --ph-danger-soft: #FBEDEC;
    /* Shape lock: surfaces 1rem, fields 0.75rem, interactive pills 999px */
    --ph-radius-card: 1rem;
    --ph-radius-field: 0.75rem;
    --ph-ease: cubic-bezier(0.32, 0.72, 0, 1);

    padding: 1.25rem;
    border: 1px solid rgba(1, 92, 128, 0.18);
    border-radius: var(--ph-radius-card);
    background: #FFFFFF;
    box-shadow:
        0 18px 36px -20px rgba(2, 61, 86, 0.28),
        0 2px 6px rgba(2, 61, 86, 0.06) !important;
    font-family: 'Euclid Circular Light', sans-serif;
    color: var(--ph-ink);
}

/* Header bar - keeps the existing solid-brand identity, softened edges */
.doctor-shortcode .title-buat-janji {
    margin: -1.25rem -1.25rem 1.25rem;
    padding: 0.875rem 1.25rem !important;
    border-bottom: 0;
    /* Rounds itself rather than relying on overflow:hidden on the card,
       which would clip dropdowns, tooltips and focus rings. */
    border-radius: calc(var(--ph-radius-card) - 1px) calc(var(--ph-radius-card) - 1px) 0 0;
    background: linear-gradient(140deg, var(--ph-brand-bright) 0%, var(--ph-brand) 55%, var(--ph-brand-deep) 100%);
    font-family: 'Century-Bold', 'Euclid Circular Light', sans-serif;
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: #FFFFFF;
}

/* Quform hides inactive pages via its own stylesheet; assert it here so
   page 2 can never stack under page 1 if that file is ever descoped. */
.doctor-shortcode .quform-element-page:not(.quform-current-page) {
    display: none;
}

/* ---------------------------------------------------------------- */
/* Vertical rhythm                                                   */
/* ---------------------------------------------------------------- */

.doctor-shortcode .quform-element > .quform-spacer {
    margin: 0;
    padding: 0 0 1.125rem;
}

/* Layout rows always stack in a sidebar column */
.doctor-shortcode .quform-element-row {
    display: block !important;
    margin: 0;
    padding: 0;
}

.doctor-shortcode .quform-element-column {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Collapse the spacer row that ships with no children */
.doctor-shortcode .quform-element-row:not(:has(.quform-element-column > *)) {
    display: none !important;
}

/* Hairline divider before the statement block */
.doctor-shortcode .quform-element-10_28 {
    margin-top: 0.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(1, 92, 128, 0.09);
}

/* ---------------------------------------------------------------- */
/* Labels                                                            */
/* ---------------------------------------------------------------- */

.doctor-shortcode .quform-label {
    padding: 0 0 0.4375rem;
}

.doctor-shortcode .quform-label-text {
    font-family: 'Century-Bold', 'Euclid Circular Light', sans-serif;
    font-size: 0.875rem !important;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: var(--ph-ink) !important;
}

.doctor-shortcode .quform-required {
    color: var(--ph-danger);
    margin-left: 0.125rem;
}

.doctor-shortcode .quform-sub-label {
    display: block;
    margin: -0.25rem 0 0.4375rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--ph-muted);
}

/* "Tanggal Berobat" is printed twice - once over the inline calendar
   (10_90) and again on the Kendo readout (10_11). Keep the second one
   for screen readers, drop it visually so the pair reads as one step. */
.doctor-shortcode .quform-label-10_11 {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------------------------------------------------------------- */
/* Text, select, date and password fields                            */
/* Tinted fill by default, white once focused or answered so         */
/* progress through the form is visible at a glance.                 */
/* ---------------------------------------------------------------- */

.doctor-shortcode .quform-field-text,
.doctor-shortcode .quform-field-select,
.doctor-shortcode .quform-field-date,
.doctor-shortcode .quform-field-password {
    -webkit-appearance: none;
    appearance: none;
    width: 100% !important;
    min-height: 3rem !important;
    padding: 0 0.875rem !important;
    font-family: 'Euclid Circular Light', sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
    color: var(--ph-ink) !important;
    background-color: var(--ph-field-bg) !important;
    border: 1.5px solid var(--ph-field-border) !important;
    border-radius: var(--ph-radius-field) !important;
    box-shadow: none !important;
    text-overflow: ellipsis;
    transition:
        border-color 0.45s var(--ph-ease),
        background-color 0.45s var(--ph-ease),
        box-shadow 0.45s var(--ph-ease);
}

.doctor-shortcode .quform-field-text:hover,
.doctor-shortcode .quform-field-select:hover,
.doctor-shortcode .quform-field-date:hover,
.doctor-shortcode .quform-field-password:hover {
    border-color: var(--ph-line-strong) !important;
    background-color: #FFFFFF !important;
}

.doctor-shortcode .quform-field-text:focus,
.doctor-shortcode .quform-field-select:focus,
.doctor-shortcode .quform-field-date:focus,
.doctor-shortcode .quform-field-password:focus {
    outline: none !important;
    border-color: var(--ph-brand) !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(1, 92, 128, 0.13) !important;
}

.doctor-shortcode .quform-field-text::placeholder,
.doctor-shortcode .quform-field-date::placeholder {
    color: var(--ph-muted);
    opacity: 1;
}

/* Answered text inputs go white - the "done" state */
.doctor-shortcode input.quform-field-text:not(:placeholder-shown) {
    background-color: #FFFFFF !important;
    border-color: var(--ph-line-strong) !important;
}

/* Native select: thin brand chevron, room on the right for it */
.doctor-shortcode select.quform-field-select {
    padding-right: 2.5rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23015C80' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.875rem center !important;
    cursor: pointer;
}

/* Answered selects go white with a stronger border */
.doctor-shortcode select.quform-field-select:not(.ph-placeholder) {
    background-color: #FFFFFF !important;
    border-color: var(--ph-line-strong) !important;
}

/* A select still resting on its empty option reads as a hint, not a value */
.doctor-shortcode select.quform-field-select.ph-placeholder,
.doctor-shortcode select.quform-field-select:has(option[value=""]:checked) {
    color: var(--ph-muted) !important;
    background-color: var(--ph-field-bg) !important;
    border-color: var(--ph-field-border) !important;
}

.doctor-shortcode select.quform-field-select.ph-placeholder:hover,
.doctor-shortcode select.quform-field-select:has(option[value=""]:checked):hover {
    background-color: #FFFFFF !important;
    border-color: var(--ph-line-strong) !important;
}

/* Waiting on a previous step - flat, quiet, clearly inactive */
.doctor-shortcode .quform-field-text:disabled,
.doctor-shortcode .quform-field-select:disabled,
.doctor-shortcode .quform-field-date:disabled,
.doctor-shortcode .quform-field-date[disabled],
.doctor-shortcode select.quform-field-select:has(option[disabled]:checked) {
    background-color: #EEF3F6 !important;
    border-color: #E3EBF0 !important;
    color: var(--ph-muted) !important;
    cursor: default;
    background-image: none !important;
}

/* ---------------------------------------------------------------- */
/* Kendo datepicker wrapper - strip its chrome, keep our field skin   */
/* ---------------------------------------------------------------- */

.doctor-shortcode .k-widget.k-datepicker {
    display: block;
    width: 100% !important;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.doctor-shortcode .k-datepicker .k-picker-wrap {
    display: block;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.doctor-shortcode .quform-input-date {
    position: relative;
}

.doctor-shortcode .quform-has-field-icon-left .quform-field-date {
    padding-left: 2.75rem !important;
    cursor: pointer;
}

/* Anchored to the field box height rather than a percentage, so a
   trailing hidden input can never shift it off centre. */
.doctor-shortcode .quform-field-icon-left {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    width: 2.75rem;
    height: 3rem;
    justify-content: center;
    color: var(--ph-brand);
    font-size: 1.0625rem;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
    transition: color 0.45s var(--ph-ease), opacity 0.45s var(--ph-ease);
}

.doctor-shortcode .quform-input-date:has(.quform-field-date[disabled]) .quform-field-icon-left {
    color: var(--ph-muted);
    opacity: 0.55;
}

/* ---------------------------------------------------------------- */
/* Select2 - the theme loads its stylesheet globally, so match the    */
/* native fields exactly in case a select is ever enhanced here.      */
/* ---------------------------------------------------------------- */

.doctor-shortcode .select2-container {
    width: 100% !important;
}

.doctor-shortcode .select2-container--default .select2-selection--single {
    height: 3rem !important;
    background-color: var(--ph-field-bg) !important;
    border: 1.5px solid var(--ph-field-border) !important;
    border-radius: var(--ph-radius-field) !important;
    box-shadow: none;
    transition:
        border-color 0.45s var(--ph-ease),
        background-color 0.45s var(--ph-ease),
        box-shadow 0.45s var(--ph-ease);
}

.doctor-shortcode .select2-container--default.select2-container--focus .select2-selection--single,
.doctor-shortcode .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--ph-brand) !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(1, 92, 128, 0.13);
}

.doctor-shortcode .select2-selection--single .select2-selection__rendered {
    line-height: 2.9rem !important;
    padding: 0 2.5rem 0 0.875rem !important;
    font-size: 1rem;
    color: var(--ph-ink) !important;
}

.doctor-shortcode .select2-selection--single .select2-selection__placeholder {
    color: var(--ph-muted) !important;
}

.doctor-shortcode .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    width: 2.5rem !important;
    top: 0 !important;
    right: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23015C80' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.45s var(--ph-ease);
}

.doctor-shortcode .select2-selection--single .select2-selection__arrow b {
    display: none !important;
}

.doctor-shortcode .select2-container--open .select2-selection__arrow {
    transform: rotate(180deg);
}

.doctor-shortcode .select2-dropdown {
    margin-top: 0.375rem;
    border: 1px solid rgba(1, 92, 128, 0.16) !important;
    border-radius: var(--ph-radius-field) !important;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow:
        0 24px 48px -16px rgba(2, 61, 86, 0.28),
        0 4px 12px rgba(2, 61, 86, 0.08);
}

.doctor-shortcode .select2-results__option {
    padding: 0.75rem 0.875rem;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--ph-ink);
    transition: background-color 0.25s var(--ph-ease);
}

.doctor-shortcode .select2-results__option--highlighted[aria-selected] {
    background-color: var(--ph-soft) !important;
    color: var(--ph-brand-deep) !important;
}

/* ---------------------------------------------------------------- */
/* Radio group ("Apakah Anda") - stacked tappable cards              */
/* ---------------------------------------------------------------- */

/* Layout-critical properties carry !important on purpose: Quform's own
   stylesheet resets .quform-option / .quform-option-label to floats and
   inline display, which collapses the custom radio circle to a sliver. */

.doctor-shortcode .quform-input-radio .quform-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem;
    float: none;
    margin: 0;
    padding: 0;
}

.doctor-shortcode .quform-input-radio .quform-option {
    display: block !important;
    min-width: 0;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

.doctor-shortcode .quform-input-radio input.quform-field-radio,
.doctor-shortcode .quform-input-checkbox input.quform-field-checkbox {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0 !important;
}

.doctor-shortcode .quform-input-radio .quform-option-label {
    display: flex !important;
    align-items: center !important;
    gap: 0.625rem;
    width: 100% !important;
    min-height: 3rem;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0.625rem 0.875rem !important;
    background: var(--ph-field-bg);
    border: 1.5px solid var(--ph-field-border);
    border-radius: var(--ph-radius-field);
    font-size: 1rem !important;
    line-height: 1.4 !important;
    color: var(--ph-ink) !important;
    cursor: pointer;
    transition:
        border-color 0.45s var(--ph-ease),
        background-color 0.45s var(--ph-ease),
        box-shadow 0.45s var(--ph-ease),
        transform 0.45s var(--ph-ease);
}

.doctor-shortcode .quform-input-radio .quform-option-label::before {
    content: "";
    display: block !important;
    flex: 0 0 auto !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    box-sizing: border-box !important;
    border-radius: 50%;
    border: 2px solid var(--ph-line-strong);
    background: #FFFFFF;
    transition: border 0.35s var(--ph-ease);
}

.doctor-shortcode .quform-input-radio .quform-option-text {
    display: inline-block;
    vertical-align: middle;
}

.doctor-shortcode .quform-input-radio .quform-option-label:hover {
    border-color: var(--ph-line-strong);
    background: #FFFFFF;
}

.doctor-shortcode .quform-input-radio .quform-option-label:active {
    transform: scale(0.98);
}

.doctor-shortcode .quform-input-radio input:checked + .quform-option-label {
    border-color: var(--ph-brand);
    background: var(--ph-soft);
    box-shadow: 0 0 0 1px var(--ph-brand);
}

.doctor-shortcode .quform-input-radio input:checked + .quform-option-label::before {
    border: 0.375rem solid var(--ph-brand) !important;
}

.doctor-shortcode .quform-input-radio input:checked + .quform-option-label .quform-option-text {
    font-family: 'Century-Bold', 'Euclid Circular Light', sans-serif;
    color: var(--ph-brand-deep);
}

.doctor-shortcode .quform-input-radio input:focus-visible + .quform-option-label,
.doctor-shortcode .quform-input-checkbox input:focus-visible + .quform-option-label {
    box-shadow: 0 0 0 4px rgba(1, 92, 128, 0.2);
}

/* ---------------------------------------------------------------- */
/* Checkbox ("Pernyataan") - statement card with a large check        */
/* ---------------------------------------------------------------- */

.doctor-shortcode .quform-input-checkbox .quform-option {
    display: block !important;
    float: none !important;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.doctor-shortcode .quform-input-checkbox .quform-option-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0.875rem 1rem !important;
    background: var(--ph-field-bg);
    border: 1.5px solid var(--ph-field-border);
    border-radius: var(--ph-radius-field);
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
    color: var(--ph-ink) !important;
    cursor: pointer;
    transition:
        border-color 0.45s var(--ph-ease),
        background-color 0.45s var(--ph-ease),
        box-shadow 0.45s var(--ph-ease);
}

.doctor-shortcode .quform-input-checkbox .quform-option-label::before {
    content: "";
    display: block !important;
    flex: 0 0 auto !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    box-sizing: border-box !important;
    margin-top: 0.0625rem;
    border-radius: 0.375rem;
    border: 2px solid var(--ph-line-strong);
    background-color: #FFFFFF;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 0.8125rem;
    transition:
        background-color 0.35s var(--ph-ease),
        border-color 0.35s var(--ph-ease);
}

.doctor-shortcode .quform-input-checkbox .quform-option-label:hover {
    border-color: var(--ph-line-strong);
    background: #FFFFFF;
}

.doctor-shortcode .quform-input-checkbox input:checked + .quform-option-label {
    border-color: var(--ph-brand);
    background: var(--ph-soft);
}

.doctor-shortcode .quform-input-checkbox input:checked + .quform-option-label::before {
    background-color: var(--ph-brand);
    border-color: var(--ph-brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- */
/* File uploads - drop-zone look with a pill browse button            */
/* (dashed is intentional here: universal upload affordance)          */
/* ---------------------------------------------------------------- */

.doctor-shortcode input[type="file"].quform-field {
    width: 100%;
    padding: 0.875rem;
    font-family: 'Euclid Circular Light', sans-serif;
    font-size: 0.8125rem;
    color: var(--ph-muted);
    background: var(--ph-field-bg);
    border: 1.5px dashed var(--ph-line-strong);
    border-radius: var(--ph-radius-field);
    cursor: pointer;
    transition:
        border-color 0.45s var(--ph-ease),
        background-color 0.45s var(--ph-ease);
}

.doctor-shortcode input[type="file"].quform-field:hover {
    border-color: var(--ph-brand);
    background: #FFFFFF;
}

.doctor-shortcode input[type="file"].quform-field:focus-visible {
    outline: none;
    border-color: var(--ph-brand);
    box-shadow: 0 0 0 4px rgba(1, 92, 128, 0.13);
}

.doctor-shortcode input[type="file"].quform-field::file-selector-button {
    display: block;
    margin: 0 0 0.625rem;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--ph-soft);
    color: var(--ph-brand-deep);
    font-family: 'Century-Bold', 'Euclid Circular Light', sans-serif;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background-color 0.35s var(--ph-ease);
}

.doctor-shortcode input[type="file"].quform-field:hover::file-selector-button {
    background: var(--ph-soft-deep);
}

/* Uploaded-image preview slots rendered by the booking JS */
.doctor-shortcode [id^="user-profile-image-"] img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 0.625rem;
    border-radius: var(--ph-radius-field);
    border: 1.5px solid var(--ph-field-border);
}

/* ---------------------------------------------------------------- */
/* Inline jQuery UI calendar (Tanggal Berobat)                        */
/* Days with an available schedule render as <a> - tinted brand       */
/* pills so bookable dates are obvious. Cells are fluid so the grid   */
/* survives the narrow tablet column without clipping.                */
/* ---------------------------------------------------------------- */

.doctor-shortcode .doctor-appointment-datepicker {
    margin-top: 0.25rem;
    container-type: inline-size;
    container-name: ph-cal;
}

.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker {
    width: 100% !important;
    padding: 0.75rem !important;
    background: #FFFFFF !important;
    border: 1.5px solid var(--ph-field-border) !important;
    border-radius: var(--ph-radius-field) !important;
    box-shadow: none !important;
    font-family: 'Euclid Circular Light', sans-serif !important;
    font-size: 0.9375rem;
    color: var(--ph-ink);
}

.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-header {
    position: relative;
    background: transparent !important;
    border: 0 !important;
    padding: 0 0 0.625rem;
    font-weight: normal;
}

.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-title {
    margin: 0 2.25rem;
    line-height: 2rem;
    text-align: center;
    font-family: 'Century-Bold', 'Euclid Circular Light', sans-serif;
    font-size: 0.9375rem;
    color: var(--ph-ink);
}

/* position/display asserted here so the nav renders correctly even where
   jQuery UI's own stylesheet is not enqueued (it is not, on single posts). */
.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-prev,
.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-next {
    position: absolute !important;
    display: block !important;
    top: 0 !important;
    width: 2rem !important;
    height: 2rem !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1.5px solid var(--ph-field-border) !important;
    border-radius: 50% !important;
    background-color: #FFFFFF !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    cursor: pointer;
    transition:
        border-color 0.45s var(--ph-ease),
        background-color 0.45s var(--ph-ease);
}

.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-prev {
    left: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23015C80' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") !important;
}

.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-next {
    right: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23015C80' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") !important;
}

.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-prev:hover,
.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-next:hover {
    border-color: var(--ph-line-strong) !important;
    background-color: var(--ph-soft) !important;
}

.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-prev.ui-state-disabled,
.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-next.ui-state-disabled {
    opacity: 0.35;
    cursor: default;
}

/* Hide jQuery UI's sprite icons - the SVG chevrons above replace them */
.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-prev .ui-icon,
.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-next .ui-icon {
    opacity: 0;
}

.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar {
    table-layout: fixed;
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 2px;
}

.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar th {
    padding: 0.25rem 0 0.375rem;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ph-muted);
    font-weight: 600;
}

.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td {
    padding: 0;
    text-align: center;
}

/* aspect-ratio keeps the day cells square at any column width;
   min-height guarantees a sane target if it is unsupported. */
.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td span.ui-state-default,
.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td a.ui-state-default {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    min-height: 1.75rem;
    padding: 0;
    border: 0 !important;
    border-radius: 0.5rem;
    background: transparent !important;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1;
    color: var(--ph-ink);
}

/* Bookable dates (anchors) pop with a brand tint */
.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td a.ui-state-default {
    background: var(--ph-soft) !important;
    color: var(--ph-brand-deep) !important;
    font-family: 'Century-Bold', 'Euclid Circular Light', sans-serif;
    cursor: pointer;
    transition: background-color 0.25s var(--ph-ease);
}

.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td a.ui-state-default:hover {
    background: var(--ph-soft-deep) !important;
}

/* Unavailable dates stay quiet but remain legible - no opacity fade,
   which is what makes greyed calendars unreadable for older eyes. */
.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td.ui-state-disabled span.ui-state-default {
    color: var(--ph-quiet);
    opacity: 1;
}

.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td.ui-datepicker-other-month {
    visibility: hidden;
}

/* Today: outlined. Selected day: solid brand. */
.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-today span.ui-state-default,
.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-today a.ui-state-default {
    box-shadow: inset 0 0 0 1.5px rgba(1, 92, 128, 0.5);
    color: var(--ph-brand-deep);
    opacity: 1;
}

.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td.ui-datepicker-current-day a.ui-state-default,
.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td a.ui-state-default.ui-state-active {
    background: var(--ph-brand) !important;
    border: 0 !important;
    color: #FFFFFF !important;
    font-family: 'Century-Bold', 'Euclid Circular Light', sans-serif;
    opacity: 1;
    box-shadow: 0 4px 10px -2px rgba(1, 92, 128, 0.45);
}

.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td.ui-datepicker-current-day a.ui-state-default:hover,
.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td a.ui-state-default.ui-state-active:hover {
    background: var(--ph-brand-deep) !important;
    color: #FFFFFF !important;
}

.doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td a.ui-state-default:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 92, 128, 0.25);
}

/* ---------------------------------------------------------------- */
/* "Cek Rujukan" helper button                                       */
/* ---------------------------------------------------------------- */

.doctor-shortcode #check_rujukan,
.doctor-shortcode #check_rujukan.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--ph-brand);
    color: #FFFFFF;
    font-family: 'Century-Bold', 'Euclid Circular Light', sans-serif;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 20px -10px rgba(1, 92, 128, 0.55);
    transition:
        background-color 0.45s var(--ph-ease),
        transform 0.45s var(--ph-ease),
        box-shadow 0.45s var(--ph-ease);
}

.doctor-shortcode #check_rujukan:hover {
    background: var(--ph-brand-bright);
    transform: translateY(-1px);
    box-shadow: 0 14px 24px -10px rgba(1, 92, 128, 0.6);
}

.doctor-shortcode #check_rujukan:active {
    transform: scale(0.97);
}

.doctor-shortcode #check_rujukan:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(1, 92, 128, 0.25);
}

/* ---------------------------------------------------------------- */
/* Buttons - Berikutnya / Kembali / Buat Janji                        */
/* They stack in a sidebar column: primary first, back beneath.       */
/* ---------------------------------------------------------------- */

.doctor-shortcode .quform-element-submit {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.doctor-shortcode .quform-button-submit,
.doctor-shortcode .quform-button-next,
.doctor-shortcode .quform-button-back {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center;
}

/* Back sits under the primary action, never above it */
.doctor-shortcode .quform-button-back {
    order: 2;
}

.doctor-shortcode .quform-loading {
    order: 3;
    align-self: center;
}

.doctor-shortcode .quform-element-submit :is(button.quform-submit, button.quform-next) {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap;
    min-height: 3.25rem;
    padding: 0 1.25rem;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(140deg, var(--ph-brand-bright) 0%, var(--ph-brand) 45%, var(--ph-brand-deep) 100%);
    color: #FFFFFF;
    font-family: 'Century-Bold', 'Euclid Circular Light', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.02em;
    box-shadow:
        0 16px 32px -12px rgba(1, 92, 128, 0.55),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transition:
        transform 0.45s var(--ph-ease),
        box-shadow 0.45s var(--ph-ease);
}

/* Light sweep across the surface on hover */
.doctor-shortcode .quform-element-submit :is(button.quform-submit, button.quform-next)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.9s var(--ph-ease);
    pointer-events: none;
}

/* Nested circular arrow badge */
.doctor-shortcode .quform-element-submit :is(button.quform-submit, button.quform-next)::after {
    content: "\2192";
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.45s var(--ph-ease), background-color 0.45s var(--ph-ease);
}

.doctor-shortcode .quform-element-submit :is(button.quform-submit, button.quform-next):hover {
    transform: translateY(-2px);
    box-shadow:
        0 22px 40px -14px rgba(1, 92, 128, 0.65),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.doctor-shortcode .quform-element-submit :is(button.quform-submit, button.quform-next):hover::before {
    transform: translateX(100%);
}

.doctor-shortcode .quform-element-submit :is(button.quform-submit, button.quform-next):hover::after {
    transform: translateX(0.1875rem);
    background: rgba(255, 255, 255, 0.26);
}

.doctor-shortcode .quform-element-submit :is(button.quform-submit, button.quform-next):active {
    transform: translateY(0) scale(0.98);
}

.doctor-shortcode .quform-element-submit :is(button.quform-submit, button.quform-next):focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(1, 92, 128, 0.3),
        0 16px 32px -12px rgba(1, 92, 128, 0.55);
}

/* Secondary "Kembali" - quiet outline pill with a leading arrow */
.doctor-shortcode .quform-element-submit button.quform-back {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 3rem;
    margin: 0 !important;
    padding: 0 1.25rem;
    border: 1.5px solid var(--ph-field-border) !important;
    border-radius: 999px;
    background: #FFFFFF !important;
    color: var(--ph-brand-deep) !important;
    font-family: 'Century-Bold', 'Euclid Circular Light', sans-serif;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    transition:
        border-color 0.45s var(--ph-ease),
        background-color 0.45s var(--ph-ease),
        transform 0.45s var(--ph-ease);
}

.doctor-shortcode .quform-element-submit button.quform-back::before {
    content: "\2190";
    font-size: 1rem;
    line-height: 1;
}

.doctor-shortcode .quform-element-submit button.quform-back:hover {
    border-color: var(--ph-line-strong) !important;
    background: var(--ph-soft) !important;
}

.doctor-shortcode .quform-element-submit button.quform-back:active {
    transform: scale(0.98);
}

.doctor-shortcode .quform-element-submit button.quform-back:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(1, 92, 128, 0.2);
}

/* ---------------------------------------------------------------- */
/* Loading, success and validation states                             */
/* ---------------------------------------------------------------- */

.doctor-shortcode .quform-loading-spinner-inner {
    border-color: rgba(1, 92, 128, 0.2) !important;
    border-top-color: var(--ph-brand) !important;
}

/* Select2 mid-request: spinner replaces the chevron and the control
   locks so it cannot be opened while the poli list is in flight. */
.doctor-shortcode .ph-loading .select2-selection--single {
    pointer-events: none;
    cursor: wait;
}

.doctor-shortcode .ph-loading .select2-selection__placeholder,
.doctor-shortcode .ph-loading .select2-selection__rendered > * {
    display: none;
}

.doctor-shortcode .ph-loading .select2-selection__rendered::before {
    content: "Memuat daftar poli\2026";
    color: var(--ph-muted);
}

.doctor-shortcode .ph-loading .select2-selection__arrow {
    background-image: none;
    transform: none;
}

.doctor-shortcode .ph-loading .select2-selection__arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border-radius: 50%;
    border: 2px solid rgba(1, 92, 128, 0.2);
    border-top-color: var(--ph-brand);
    animation: ph-widget-spin 0.8s linear infinite;
}

@keyframes ph-widget-spin {
    to { transform: rotate(360deg); }
}

/* Validation errors - readable, not alarming */
/* Restricted to the errored field's own element. A bare
   :has(.quform-error) also matches the page wrapper, which reddens every
   field on the form the moment one of them fails. */
.doctor-shortcode .quform-error .quform-field,
.doctor-shortcode .quform-element:has(> .quform-spacer .quform-error) .quform-field-text,
.doctor-shortcode .quform-element:has(> .quform-spacer .quform-error) .quform-field-select,
.doctor-shortcode .quform-element:has(> .quform-spacer .quform-error) .quform-field-date,
.doctor-shortcode .quform-element:has(> .quform-spacer .quform-error) .quform-field-password {
    border-color: var(--ph-danger) !important;
}

.doctor-shortcode .quform-error-text,
.doctor-shortcode .quform-error > p {
    margin-top: 0.4375rem;
    padding: 0.4375rem 0.75rem;
    background: var(--ph-danger-soft);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #8E2F27 !important;
}

/* Form-level notices returned by the ajax submit */
.doctor-shortcode .quform-error-message {
    margin: 0 0 1rem;
    padding: 0.75rem 0.875rem;
    border-radius: var(--ph-radius-field);
    background: var(--ph-danger-soft);
    border: 1.5px solid rgba(194, 69, 58, 0.28);
    font-size: 0.875rem;
    line-height: 1.5;
    color: #8E2F27;
}

.doctor-shortcode .quform-success-message,
.doctor-shortcode .quform-confirmation {
    padding: 1.125rem 1rem;
    border-radius: var(--ph-radius-field);
    background: var(--ph-soft);
    border: 1.5px solid rgba(1, 92, 128, 0.22);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ph-brand-deep);
}

/* Admin-only "Edit formulir ini" link */
.doctor-shortcode .quform-edit-form {
    margin-top: 0.75rem;
    text-align: right;
}

.doctor-shortcode .quform-edit-form-link {
    font-size: 0.75rem;
    color: var(--ph-muted) !important;
    text-decoration: none !important;
}

.doctor-shortcode .quform-edit-form-link:hover {
    color: var(--ph-brand) !important;
}

/* ---------------------------------------------------------------- */
/* Progressive-reveal motion                                          */
/* Quform toggles display on conditional fields, so the animation     */
/* replays as each one appears - it marks what just changed.          */
/* ---------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .doctor-shortcode .quform-child-elements > .quform-element {
        animation: ph-widget-rise 0.55s var(--ph-ease) backwards;
    }

    .doctor-shortcode .quform-child-elements > .quform-element:nth-child(2) { animation-delay: 0.06s; }
    .doctor-shortcode .quform-child-elements > .quform-element:nth-child(3) { animation-delay: 0.12s; }
    .doctor-shortcode .quform-child-elements > .quform-element:nth-child(4) { animation-delay: 0.18s; }
    .doctor-shortcode .quform-child-elements > .quform-element:nth-child(5) { animation-delay: 0.24s; }
}

@keyframes ph-widget-rise {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .doctor-shortcode .ph-loading .select2-selection__arrow::after {
        animation-duration: 1.6s;
    }

    .doctor-shortcode .quform-element-submit :is(button.quform-submit, button.quform-next)::before {
        display: none;
    }
}

/* ---------------------------------------------------------------- */
/* Bootstrap md band (768-991px) - the tightest the column ever gets  */
/* ---------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 991px) {
    .doctor-shortcode {
        padding: 0.875rem;
    }

    .doctor-shortcode .title-buat-janji {
        margin: -0.875rem -0.875rem 0.875rem;
        padding: 0.75rem 0.875rem !important;
        font-size: 0.9375rem;
    }

    .doctor-shortcode .quform-element > .quform-spacer {
        padding-bottom: 0.875rem;
    }

    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker {
        padding: 0.5rem !important;
    }

    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar {
        border-spacing: 1px;
    }

    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td span.ui-state-default,
    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td a.ui-state-default {
        min-height: 1.625rem;
        border-radius: 0.375rem;
        font-size: 0.8125rem;
    }

    /* Reclaim the arrow badge's width for the label */
    .doctor-shortcode .quform-element-submit :is(button.quform-submit, button.quform-next)::after {
        display: none;
    }

    .doctor-shortcode .quform-element-submit :is(button.quform-submit, button.quform-next) {
        padding: 0 0.875rem;
        font-size: 0.9375rem;
    }
}

/* Below md the column goes full width, so give the fields room again */
@media (max-width: 767px) {
    .doctor-shortcode .quform-element > .quform-spacer {
        padding-bottom: 1.25rem;
    }

    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td span.ui-state-default,
    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td a.ui-state-default {
        min-height: 2.25rem;
        font-size: 0.9375rem;
    }
}

/* ---------------------------------------------------------------- */
/* Calendar fluidity                                                  */
/* Keyed to the calendar's own width, not the viewport, so the grid   */
/* holds up in any column this widget is dropped into (col-md-4 here, */
/* col-md-3 on the doctor template) without new breakpoints.          */
/* ---------------------------------------------------------------- */

@container ph-cal (max-width: 250px) {
    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker {
        padding: 0.5rem !important;
    }

    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar {
        border-spacing: 1px;
    }

    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-prev,
    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-next {
        width: 1.625rem !important;
        height: 1.625rem !important;
        background-size: 0.75rem !important;
    }

    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-title {
        margin: 0 1.75rem;
        font-size: 0.8125rem;
    }

    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar th {
        font-size: 0.625rem;
        letter-spacing: 0;
    }

    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td span.ui-state-default,
    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td a.ui-state-default {
        min-height: 1.375rem;
        border-radius: 0.375rem;
        font-size: 0.75rem;
    }
}

@container ph-cal (max-width: 200px) {
    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-title {
        margin: 0 1.5rem;
        font-size: 0.75rem;
    }

    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td span.ui-state-default,
    .doctor-shortcode .doctor-appointment-datepicker .ui-datepicker-calendar td a.ui-state-default {
        min-height: 1.125rem;
        border-radius: 0.3125rem;
        font-size: 0.6875rem;
    }
}

/* ================================================================ */
/* Kendo calendar popup - renders at body level, outside the widget  */
/* Scoped to Kendo's own container classes only.                     */
/* ================================================================ */

.k-animation-container .k-calendar-container,
.k-calendar-container {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(1, 92, 128, 0.16);
    box-shadow:
        0 24px 48px -16px rgba(2, 61, 86, 0.28),
        0 4px 12px rgba(2, 61, 86, 0.08);
}

.k-calendar-container .k-calendar {
    font-family: 'Euclid Circular Light', sans-serif;
    border: 0;
}

.k-calendar-container .k-calendar .k-header {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(1, 92, 128, 0.1);
    padding: 0.375rem 0;
}

.k-calendar-container .k-calendar .k-header .k-link {
    color: #023D56;
    font-family: 'Century-Bold', 'Euclid Circular Light', sans-serif;
}

.k-calendar-container .k-calendar .k-content .k-link {
    border-radius: 0.5rem;
    color: #10262E;
    font-size: 0.9375rem;
    transition: background-color 0.25s ease-out;
}

.k-calendar-container .k-calendar .k-content .k-link:hover {
    background: #E8F3F8;
}

.k-calendar-container .k-calendar td.k-state-selected .k-link,
.k-calendar-container .k-calendar td.k-state-selected.k-state-focused .k-link {
    background: #015C80;
    color: #FFFFFF;
}

.k-calendar-container .k-calendar td.k-today .k-link {
    box-shadow: inset 0 0 0 1.5px rgba(1, 92, 128, 0.5);
    color: #015C80;
}

.k-calendar-container .k-calendar td.k-state-disabled .k-link,
.k-calendar-container .k-calendar .k-state-disabled {
    color: #7B8C95;
    opacity: 1;
}

.k-calendar-container .k-footer .k-nav-today,
.k-calendar-container .k-calendar .k-footer .k-link {
    color: #015C80;
    font-family: 'Century-Bold', 'Euclid Circular Light', sans-serif;
}
