/* IPhealth Reservation System - redesigned booking UI */

.iphealth-reservation-wrapper,
.iphealth-dashboard {
    max-width: 1480px;
    margin: 20px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.iphealth-booking-shell {
    display: flex;
    min-height: 760px;
    background: #f2f4f8;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    overflow: hidden;
}

.iphealth-booking-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #f0f2f6;
}

.iphealth-booking-header {
    padding: 26px 36px;
    border-bottom: 1px solid #d8dde6;
    background: #f9fafc;
}

.iphealth-booking-header h2 {
    margin: 0;
    font-size: 26px; /* 右侧主标题：26px */
    line-height: 1.15;
    color: #1f2329;
    font-weight: 700;
}

#iphealth-reservation-form {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.iphealth-step {
    display: none;
    margin: 0;
    padding: 26px 34px;
    border: none;
    border-radius: 0;
    background: transparent;
    flex: 1;
    overflow-y: auto;
}

.iphealth-step.is-active {
    display: block;
}

.iphealth-step h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 26px; /* 每一步的小标题：26px */
    color: #20242a;
}

.iphealth-grid {
    display: grid;
    gap: 18px;
}

.iphealth-grid-2 {
    grid-template-columns: minmax(0, 1fr);
}

.iphealth-step-5 .iphealth-step5-login-form .iphealth-grid-2 {
    width: 100%;
}

.iphealth-step-5 .iphealth-step5-login-form .iphealth-grid-2 > div {
    width: 100%;
}

.iphealth-patient-name-grid,
.iphealth-insurance-name-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 18px;
}

.iphealth-patient-name-grid > div,
.iphealth-insurance-name-grid > div,
.iphealth-patient-middle-name-field {
    min-width: 0;
}

.iphealth-grid-span-2 {
    grid-column: span 2;
}

.iphealth-date-picker-wide {
    width: 100%;
}

.iphealth-date-field {
    position: relative;
    width: 100%;
}

.iphealth-date-native {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
    pointer-events: none;
}

.iphealth-date-display {
    position: relative;
    z-index: 2;
    cursor: pointer;
}


.iphealth-flatpickr-wide {
    width: 630px !important;
    box-sizing: border-box;
}

.iphealth-flatpickr-wide .flatpickr-months,
.iphealth-flatpickr-wide .flatpickr-month,
.iphealth-flatpickr-wide .flatpickr-weekdays,
.iphealth-flatpickr-wide .flatpickr-weekdaycontainer,
.iphealth-flatpickr-wide .flatpickr-days,
.iphealth-flatpickr-wide .dayContainer,
.iphealth-flatpickr-wide .flatpickr-rContainer,
.iphealth-flatpickr-wide .flatpickr-innerContainer,
.iphealth-flatpickr-wide .flatpickr-weekdaysContainer {
    width: 100% !important;
    box-sizing: border-box;
}

.iphealth-flatpickr-wide .flatpickr-month {
    flex: 1 1 0;
}

.iphealth-flatpickr-wide .flatpickr-months,
.iphealth-flatpickr-wide .flatpickr-weekdays,
.iphealth-flatpickr-wide .flatpickr-days,
.iphealth-flatpickr-wide .flatpickr-innerContainer,
.iphealth-flatpickr-wide .flatpickr-rContainer {
    width: 100% !important;
    max-width: 630px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.iphealth-flatpickr-wide .flatpickr-months {
    justify-content: space-between;
}

.iphealth-flatpickr-wide .flatpickr-month {
    width: 100% !important;
    flex: 1 1 0;
}

.iphealth-flatpickr-wide .flatpickr-weekdaycontainer,
.iphealth-flatpickr-wide .dayContainer {
    width: 100% !important;
    padding: 0 14px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
}

.iphealth-flatpickr-wide .flatpickr-weekdays,
.iphealth-flatpickr-wide .flatpickr-days {
    padding: 0;
    margin: 0;
}

.iphealth-flatpickr-wide .flatpickr-weekday,
.iphealth-flatpickr-wide .flatpickr-day {
    max-width: none;
    width: calc(100% / 7);
    flex: 0 0 calc(100% / 7);
}

.iphealth-flatpickr-wide .flatpickr-prev-month,
.iphealth-flatpickr-wide .flatpickr-next-month {
    top: 12px;
}

.iphealth-flatpickr-wide .flatpickr-prev-month {
    left: 14px;
}

.iphealth-flatpickr-wide .flatpickr-next-month {
    right: 14px;
}

.iphealth-reservation-wrapper #insurance_gender,
.iphealth-reservation-wrapper #relation_to_patient {
    font-size: 16px;
    background-size: 12px 24px;
}


/* 第四步医生选择：纵向列?*/
.iphealth-doctor-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.iphealth-select-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.iphealth-select-card {
    position: relative;
    display: block;
}

.iphealth-select-card .iphealth-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0057B8;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 2;
}

.iphealth-select-card .iphealth-card-check::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    width: 8px;
    height: 14px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(45deg);
}

.iphealth-select-card.is-selected .iphealth-card-check {
    opacity: 1;
}

.iphealth-card-body {
    display: flex;
    flex-direction: column;
    min-height: 290px;
    border: 1px solid #dce1e7;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: all .2s ease;
}

.iphealth-card-cover {
    height: 140px;
    background-color: #fff;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.iphealth-card-cover-placeholder {
    background-image: linear-gradient(135deg, #f3f5f9 0%, #e8edf5 100%);
}

.iphealth-card-content {
    display: block;
    padding: 14px 16px 18px;
    text-align: center;
}

.iphealth-card-content strong {
    display: block;
    font-size: 22px; /* 诊所/服务/医生等主要内容：22px */
    color: #242a31;
    line-height: 1.3;
}

.iphealth-step-1 .iphealth-card-content strong {
    font-weight: 400;
}

.iphealth-step-1 .iphealth-card-content small {
    color: #0A0A0A;
}

.iphealth-card-content small {
    display: block;
    margin-top: 6px;
    color: #808b97;
    font-size: 22px; /* 辅助说明统一?22px */
    line-height: 1.3;
}

.iphealth-select-card input[type="radio"]:checked + .iphealth-card-body {
    border-color: #5b6fed;
    box-shadow: 0 0 0 2px rgba(91, 111, 237, 0.2);
    transform: translateY(-1px);
}

.iphealth-select-card input[type="checkbox"]:checked + .iphealth-card-body {
    border-color: #5b6fed;
    box-shadow: 0 0 0 2px rgba(91, 111, 237, 0.2);
    transform: translateY(-1px);
}

.iphealth-extras-grid {
    align-items: stretch;
}

.iphealth-checkbox-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid #d4dbe6;
    border-radius: 8px;
    background: #fff;
    color: #2a3038;
    font-size: 22px; /* 复选内容也视为主要内容?2px */
    box-sizing: border-box;
}

.iphealth-checkbox-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.iphealth-field-label {
    display: block;
    margin-bottom: 8px;
    color: #333a44;
    font-size: 22px; /* 表单标签?2px */
    font-weight: 600;
}

.iphealth-reservation-wrapper select,
.iphealth-reservation-wrapper input[type="text"],
.iphealth-reservation-wrapper input[type="email"],
.iphealth-reservation-wrapper input[type="datetime-local"],
.iphealth-reservation-wrapper input[type="date"],
.iphealth-reservation-wrapper textarea {
    width: 100%;
    max-width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid #d3dae4;
    background: #fff;
    box-sizing: border-box;
    font-size: 22px; /* 输入内容?2px */
}

.iphealth-step-5 input[type="text"],
.iphealth-step-5 input[type="email"],
.iphealth-step-5 input[type="password"] {
    width: 100%;
    padding-top: 16px;
    padding-bottom: 16px;
    height: 60px;
    box-sizing: border-box;
}

.iphealth-reservation-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#iphealth-insurance-fields select,
.iphealth-insurance-fields select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' stroke='%236b7280' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
    background-size: 20px 20px !important;
    background-position: left 16px center !important;
    padding-left: 54px;
    padding-right: 16px;
    background-color: #fff;
    background-clip: padding-box;
}

#iphealth-insurance-fields select::-ms-expand,
.iphealth-insurance-fields select::-ms-expand {
    display: none;
}

#iphealth-insurance-fields select::-webkit-calendar-picker-indicator,
.iphealth-insurance-fields select::-webkit-calendar-picker-indicator {
    display: none;
}



.iphealth-reservation-wrapper .iphealth-input-invalid {
    border-color: #dc2626;
}

.iphealth-reservation-wrapper .iphealth-input-error {
    margin-top: 6px;
    font-size: 14px;
    color: #dc2626;
}

.iphealth-paypal-fields {
    margin-top: 18px;
    display: none;
}

.iphealth-paypal-fields.iphealth-paypal-ready .iphealth-paypal-error {
    display: block;
}

.iphealth-paypal-card {
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(18, 28, 45, 0.08);
}

.iphealth-paypal-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2329;
}

.iphealth-paypal-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.iphealth-paypal-option {
    border: 1px solid #e3e7ef;
    border-radius: 10px;
    padding: 12px;
    background: #f8f9fc;
}

.iphealth-paypal-option-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2329;
}

.iphealth-paypal-button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iphealth-paypal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #8a94a6;
    font-size: 16px;
}

.iphealth-paypal-divider::before,
.iphealth-paypal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e3e7ef;
}

.iphealth-paypal-card-fields {
    display: grid;
    gap: 12px;
}

.iphealth-card-field {
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #d3dae4;
    border-radius: 8px;
    background: #fff;
}

.iphealth-card-submit {
    width: 100%;
}

.iphealth-paypal-error {
    margin-top: 6px;
    color: #d14343;
    font-size: 14px;
    display: none;
}

.iphealth-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
}

.iphealth-time-wheel {
    position: relative;
    height: 340px;
    border: 1px solid #d3dae4;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.iphealth-time-wheels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.iphealth-time-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 30px; /* 留出右侧滚动条空间，避免遮挡文字 */
}

/* 自定义时间段列表右侧滚动条样式（PC + 支持的手机浏览器?*/
.iphealth-time-slots {
    scrollbar-width: thin;
    scrollbar-color: #74AFF6 rgba(0, 0, 0, 0.04);
}

.iphealth-time-slots::-webkit-scrollbar {
    width: 30px;
}

.iphealth-time-slots::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 999px;
}

.iphealth-time-slots::-webkit-scrollbar-thumb {
    background-color: #74AFF6;
    border-radius: 999px;
    border: 8px solid transparent;
    background-clip: content-box;
}

.iphealth-cart-summary {
    display: grid;
    gap: 10px;
}

.iphealth-cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    background: #fff;
    font-size: 18px;
    line-height: 1.4;
}

.iphealth-cart-row strong {
    color: #1f2329;
}

.iphealth-cart-row small {
    color: #667085;
}

.iphealth-cart-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid #e1e7ef;
    margin-top: 4px;
    font-size: 20px;
    font-weight: 700;
}

.iphealth-time-slot {
    display: block;
}

.iphealth-time-slot input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.iphealth-time-slot-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    box-sizing: border-box;
    min-height: 70px;
    transition: all .15s ease;
}

.iphealth-time-slot-body span:first-child {
    font-weight: 700;
}

.iphealth-time-slot-body span:last-child {
    margin-top: 4px;
}

.iphealth-time-slot input[type="radio"]:checked + .iphealth-time-slot-body {
    box-shadow: 0 0 0 2px transparent;
}

.iphealth-wheel-list {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
    padding: 90px 0; /* allow center highlight */
    box-sizing: border-box;
}

.iphealth-wheel-item {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px; /* 时间滚轮项：22px */
    color: #4a5564;
    scroll-snap-align: center;
    cursor: pointer;
    user-select: none;
}

.iphealth-wheel-item.is-selected {
    font-size: 22px;
    font-weight: 700;
    color: #1f2329;
}

.iphealth-wheel-highlight {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 50%;
    height: 44px;
    transform: translateY(-50%);
    border-radius: 10px;
    background: rgba(91, 111, 237, 0.10);
    outline: 2px solid rgba(91, 111, 237, 0.18);
    pointer-events: none;
}

.iphealth-time-hint {
    margin: 10px 0 0;
    color: #6b7786;
    font-size: 18px; /* 时间下方提示?8px */
}

.iphealth-calendar {
    background: #fff;
    border: 1px solid #d3dae4;
    border-radius: 12px;
    overflow: hidden;
}

.iphealth-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #eef1f6;
}

.iphealth-cal-title {
    font-weight: 700;
    color: #1f2329;
}

.iphealth-cal-nav {
    border: 1px solid #d3dae4;
    background: #fff;
    border-radius: 10px;
    width: 40px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px; /* 箭头再加大一倍（?2px?4px?*/
    line-height: 1;
}

.iphealth-cal-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    padding: 10px 10px 6px;
    color: #6b7786;
    font-size: 12px;
    font-weight: 600;
}

.iphealth-cal-week span {
    text-align: center;
}

.iphealth-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.iphealth-cal-day {
    border: 1px solid transparent;
    background: transparent !important;
    border-radius: 10px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    min-width: 0;
    box-sizing: border-box;
}

.iphealth-cal-day.is-out {
    opacity: 0.35;
}

.iphealth-cal-day.is-past {
    background: #e3e7ef !important;
    color: #9aa3af;
    border-color: #d0d6e0;
    cursor: not-allowed;
}

.iphealth-cal-day.is-past:hover {
    box-shadow: none;
}

.iphealth-cal-day.is-selected {
    box-shadow: 0 0 0 2px transparent;
}

.iphealth-notice {
    margin: 12px 34px 18px;
    padding: 16px;
    border: 1px solid #c8d7ff;
    background: #eef4ff;
    border-radius: 10px;
}

.iphealth-notice.iphealth-summary-card {
    background: #fff;
    border-color: #dce1e7;
}

.iphealth-notice-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.iphealth-btn-secondary {
    background: #6b7280;
}

.iphealth-payment-block {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0;
}

.iphealth-payment-block label {
    font-size: 15px;
    color: #2a3038;
}

#iphealth-insurance-fields,
.iphealth-insurance-fields {
    margin-top: 4px;
}

#iphealth-insurance-fields input[type="text"],
#iphealth-insurance-fields input[type="email"],
#iphealth-insurance-fields input[type="date"],
#iphealth-insurance-fields select,
#iphealth-insurance-fields textarea,
.iphealth-insurance-fields input[type="text"],
.iphealth-insurance-fields input[type="email"],
.iphealth-insurance-fields input[type="date"],
.iphealth-insurance-fields select,
.iphealth-insurance-fields textarea {
    height: 60px;
}

.iphealth-summary-card {
    background: #fff;
    border: 1px solid #dce1e7;
    border-radius: 10px;
    padding: 16px;
}

.iphealth-summary-card p {
    font-size: 18px; /* 右侧底部说明文案?8px */
}

#iphealth-signature-pad {
    width: 100%;
    height: 190px;
    background: #fff;
    border: 1px dashed #cfd7e3;
    border-radius: 8px;
}

.iphealth-sign-actions {
    margin-top: 12px;
}

#iphealth-signature-clear {
    padding: 8px 12px;
    border: 1px solid #d3dae4;
    background: #fff;
    color: #333a44;
    border-radius: 8px;
    cursor: pointer;
}

.iphealth-step-actions {
    border-top: 1px solid #d8dde6;
    background: #f9fafc;
    padding: 16px 34px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 900px) {
    .iphealth-reservation-wrapper {
        padding-bottom: 104px;
    }

    .iphealth-reservation-wrapper .iphealth-step-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid #d8dde6;
        background: #f3f5f8;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    }

    .iphealth-reservation-wrapper .iphealth-step-actions [data-nav="prev"],
    .iphealth-reservation-wrapper .iphealth-step-actions [data-nav="next"],
    .iphealth-reservation-wrapper .iphealth-step-actions .iphealth-btn-submit {
        flex: 1 1 0;
        margin-left: 0;
        min-height: 48px;
        font-size: 20px;
    }
}

.iphealth-list-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.iphealth-list-pagination .iphealth-page-btn {
    width: 54px;
    height: 54px;
    min-width: 54px;
    padding: 0;
    border: 4px solid #d9dce5;
    background: #fff;
    color: #525565;
    border-radius: 12px;
    font-size: 24px;
    line-height: 1;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.iphealth-list-pagination .iphealth-page-number.is-active {
    border-color: #0057B8;
    background: #0057B8;
    color: #fff;
}

.iphealth-list-pagination .iphealth-page-arrow {
    font-size: 44px;
    font-weight: 700;
}

.iphealth-list-pagination .iphealth-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.iphealth-list-pagination .iphealth-page-ellipsis {
    color: #8b8e9b;
    font-size: 26px;
    line-height: 1;
    min-width: 34px;
    text-align: center;
}

.iphealth-btn {
    border: none;
    border-radius: 999px;
    line-height: 1;
    cursor: pointer;
}

.iphealth-btn-secondary,
.iphealth-btn-primary,
.iphealth-btn-submit,
.iphealth-copy-submit {
    background: #0057B8;
    color: #fff;
    border: none;
}

.iphealth-btn-submit,
.iphealth-btn-submit-legacy {
    display: none;
}

.iphealth-empty {
    margin: 0;
    padding: 12px;
}

.iphealth-step-7 {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.iphealth-confirm-success-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.iphealth-confirm-success-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #19c37d;
    color: #fff;
    font-size: 36px;
    line-height: 66px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(25, 195, 125, 0.28);
}

.iphealth-step-7 h3 {
    margin: 0;
    font-size: 28px;
    text-align: center;
}

#iphealth-confirmation-card {
    width: 100%;
    max-width: none;
    border-radius: 14px;
    padding: 16px 18px;
    box-sizing: border-box;
}

.iphealth-confirm-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eef1f6;
}

.iphealth-confirm-row:last-child {
    border-bottom: none;
}

.iphealth-confirm-row strong {
    color: #253040;
    white-space: nowrap;
}

.iphealth-confirm-row span {
    color: #4b5566;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.iphealth-confirm-row #iphealth-confirm-service {
    display: block;
}

.iphealth-confirm-service-line {
    display: block;
}

.iphealth-confirm-service-line + .iphealth-confirm-service-line {
    margin-top: 4px;
}

.iphealth-confirm-divider {
    height: 1px;
    background: #e4e9f2;
    margin: 14px 0 16px;
}

.iphealth-confirm-success-detail {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 16px;
    color: #111827;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.iphealth-payment-success-text {
    color: #111827;
}

.iphealth-payment-success-title {
    font-weight: 400;
    line-height: 1.45;
}

.iphealth-payment-success-actions {
    display: none !important;
}

.iphealth-confirm-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.iphealth-confirm-submit-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.iphealth-confirm-link-row {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.iphealth-confirm-actions .iphealth-btn {
    width: 300px;
    height: 70px;
    max-width: 100%;
    margin: 0;
    text-align: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 登录弹窗（用于未登录用户在第 5 步显?ARMember 登录窗） */
@media (max-width: 767px) {
    .iphealth-reservation-wrapper .iphealth-step-7 {
        width: 100%;
        max-width: none;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .iphealth-reservation-wrapper .iphealth-step-7 > * {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .iphealth-reservation-wrapper .iphealth-confirm-row {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: stretch;
    }

    .iphealth-reservation-wrapper .iphealth-confirm-row strong,
    .iphealth-reservation-wrapper .iphealth-confirm-row span {
        display: block;
        text-align: left;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .iphealth-reservation-wrapper .iphealth-confirm-actions,
    .iphealth-reservation-wrapper .iphealth-confirm-link-row {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .iphealth-reservation-wrapper .iphealth-confirm-actions .iphealth-btn {
        width: 100%;
        min-height: 70px;
        height: 70px;
        border-radius: 10px;
        text-decoration: none;
        box-sizing: border-box;
    }
}

.iphealth-login-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.iphealth-login-modal.is-open {
    display: flex;
}

.iphealth-login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.iphealth-login-dialog {
    position: relative;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    padding: 24px;
    z-index: 1;
}

.iphealth-login-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.iphealth-login-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Step 4 inline login area */
.iphealth-step5-login-inline-card {
    max-width: 1100px !important;
    width: 100% !important;
    border: 0 !important;
    box-shadow: none !important;
}

.iphealth-step5-login-inline {
    margin-top: 12px;
    width: 100%;
}

.iphealth-step5-login-iframe {
    width: 100% !important;
    min-height: 520px !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #fff;
}

.iphealth-step-5 .iphealth-login-actions {
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.iphealth-step-5 .iphealth-login-actions .iphealth-prime-register {
    margin: 0 auto;
    text-decoration: none !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
}

.iphealth-step-5 .iphealth-login-actions .iphealth-prime-register:hover,
.iphealth-step-5 .iphealth-login-actions .iphealth-prime-register:focus,
.iphealth-step-5 .iphealth-login-actions .iphealth-prime-register:active {
    text-decoration: none !important;
}

/* 仅保留登录区块，隐藏注册推广区块（弹窗与?步内嵌通用?*/
.iphealth-login-dialog .iphealth-hidden-register,
.iphealth-step4-login-inline .iphealth-hidden-register {
    display: none !important;
}

@media (max-width: 767px) {
    .iphealth-login-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .iphealth-login-actions .iphealth-btn {
        width: 100%;
        text-align: center;
    }
}

.iphealth-offline-pay {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
}

.iphealth-offline-pay-card {
    width: 100%;
    max-width: 720px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px 30px 34px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.iphealth-offline-pay-header h2 {
    margin: 0;
    font-size: 22px;
    color: #0f172a;
}

.iphealth-offline-pay-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.iphealth-offline-pay-alert {
    margin: 18px 0;
    padding: 12px 14px;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 10px;
    font-size: 14px;
}

.iphealth-offline-pay-form {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.iphealth-offline-fee-tip {
    margin: -6px 0 4px;
    font-size: 13px;
    color: #6b7280;
}

.iphealth-offline-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.iphealth-offline-input {
    height: 51px;
    border-radius: 10px;
    border: 1px solid #cbd5f5;
    background: #fff;
    padding: 0 12px;
    font-size: 15px;
}

.iphealth-offline-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.iphealth-offline-card-placeholder {
    height: 52px;
    border-radius: 10px;
    border: 1px solid #cbd5f5;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #94a3b8;
}

.iphealth-offline-wallets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.iphealth-offline-wallet {
    min-height: 44px;
}

.iphealth-offline-stripe-btn {
    margin-top: 12px;
    height: 52px;
    border-radius: 10px;
    border: none;
    background: #635BFF;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.iphealth-offline-stripe-btn:hover {
    background: #4f46e5;
}

.iphealth-wc-collection-form {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.iphealth-wc-collection-pay .iphealth-offline-pay-header p {
    font-size: 18px;
    line-height: 1.55;
}

.iphealth-wc-collection-form .iphealth-offline-label {
    font-size: 20px;
}

.iphealth-wc-collection-form .iphealth-offline-input {
    height: 51px;
}

.iphealth-wc-collection-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.iphealth-wc-collection-money-input {
    font-variant-numeric: tabular-nums;
}

.iphealth-wc-collection-pay-btn,
.iphealth-wc-collection-pay-btn:hover,
.iphealth-wc-collection-pay-btn:focus {
    background: #0057B8;
}

.iphealth-wc-collection-pay-btn:hover {
    background: #004a9c;
}

.iphealth-wc-collection-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 8px 0;
    text-align: center;
}

.iphealth-wc-collection-result-icon {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: #e8fbef;
    color: #198754;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 36px;
}

.iphealth-wc-collection-result-title {
    margin: 0 0 32px;
    color: #0057B8;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.iphealth-wc-collection-result-message {
    margin: 0 0 52px;
    color: #273244;
    font-size: 24px;
    line-height: 1.45;
}

.iphealth-wc-collection-result-details {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 58px;
    padding: 24px 0;
    background: linear-gradient(90deg, rgba(232, 251, 239, 0.48), rgba(232, 251, 239, 0.16));
}

.iphealth-wc-collection-result-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    color: #273244;
    font-size: 22px;
    line-height: 1.25;
}

.iphealth-wc-collection-result-row span {
    text-align: left;
}

.iphealth-wc-collection-result-row strong {
    text-align: right;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.iphealth-wc-collection-result-amount {
    color: #0057B8;
}

.iphealth-wc-collection-result-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    min-height: 66px;
    padding: 0 30px;
    border-radius: 8px;
    background: #0057B8;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.iphealth-wc-collection-result-button:hover,
.iphealth-wc-collection-result-button:focus {
    background: #004a9c;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 600px) {
    .iphealth-offline-pay-card {
        padding: 24px 20px;
    }

    .iphealth-wc-collection-pay {
        width: 100%;
        padding: 0;
    }

    .iphealth-wc-collection-pay .iphealth-offline-pay-card {
        max-width: none;
        width: 100%;
        border-left: none;
        border-right: none;
        border-radius: 0;
        box-shadow: none;
    }

    .iphealth-offline-row {
        grid-template-columns: 1fr;
    }

    .iphealth-wc-collection-result {
        padding: 18px 0 8px;
    }

    .iphealth-wc-collection-result-icon {
        width: 96px;
        height: 96px;
        font-size: 46px;
        margin-bottom: 28px;
    }

    .iphealth-wc-collection-result-title {
        margin-bottom: 24px;
        font-size: 28px;
    }

    .iphealth-wc-collection-result-message {
        margin-bottom: 36px;
        font-size: 20px;
    }

    .iphealth-wc-collection-result-details {
        gap: 18px;
        margin-bottom: 40px;
        padding: 20px 0;
    }

    .iphealth-wc-collection-result-row {
        grid-template-columns: 1fr;
        gap: 8px;
        font-size: 18px;
    }

    .iphealth-wc-collection-result-row span,
    .iphealth-wc-collection-result-row strong {
        text-align: left;
    }

    .iphealth-wc-collection-result-button {
        width: 100%;
        min-width: 0;
        min-height: 58px;
        font-size: 20px;
    }
}

/* Mobile-only reservation view overrides (loaded when wp_is_mobile() is true) */

.iphealth-reservation-mobile-view,
.iphealth-reservation-mobile-view.iphealth-dashboard {
    padding: 0 8px 104px;
}

.iphealth-reservation-mobile-view .iphealth-booking-shell {
    flex-direction: column;
    min-height: 76px;
}

.iphealth-reservation-mobile-view .iphealth-booking-sidebar {
    display: none;
}

.iphealth-reservation-mobile-view .iphealth-booking-header h2 {
    font-size: 22px;
    text-align: center;
    width: 100%;
}

.iphealth-reservation-mobile-view .iphealth-booking-header,
.iphealth-reservation-mobile-view .iphealth-step,
.iphealth-reservation-mobile-view .iphealth-step-actions-inner {
    padding-left: 16px;
    padding-right: 16px;
}

.iphealth-reservation-mobile-view .iphealth-grid-3,
.iphealth-reservation-mobile-view .iphealth-grid-2 {
    grid-template-columns: 1fr;
}

.iphealth-reservation-mobile-view .iphealth-patient-name-grid,
.iphealth-reservation-mobile-view .iphealth-insurance-name-grid {
    grid-template-columns: 1fr;
}

.iphealth-reservation-mobile-view #iphealth-insurance-fields,
.iphealth-reservation-mobile-view .iphealth-insurance-fields {
    grid-template-columns: 1fr;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.iphealth-reservation-mobile-view #iphealth-insurance-fields > div,
.iphealth-reservation-mobile-view .iphealth-insurance-fields > div {
    width: 100%;
}

.iphealth-reservation-mobile-view #iphealth-insurance-fields .iphealth-insurance-half,
.iphealth-reservation-mobile-view .iphealth-insurance-fields .iphealth-insurance-half {
    width: calc(50% - 6px);
    margin-left: 0;
}

.iphealth-reservation-mobile-view #iphealth-insurance-fields .iphealth-insurance-address textarea,
.iphealth-reservation-mobile-view .iphealth-insurance-fields .iphealth-insurance-address textarea {
    height: 140px;
    resize: vertical;
}

.iphealth-reservation-mobile-view .iphealth-notice {
    margin: 12px 16px 18px;
}

.iphealth-reservation-mobile-view .iphealth-btn {
    padding: 12px 20px;
    font-size: 22px;
    line-height: 1.2;
    text-align: center;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.iphealth-reservation-mobile-view .iphealth-btn-secondary,
.iphealth-reservation-mobile-view .iphealth-btn-primary,
.iphealth-reservation-mobile-view .iphealth-btn-submit {
    background: #0057B8;
    color: #fff;
    border: none;
    text-align: center;
    justify-content: center;
}

.iphealth-reservation-mobile-view .iphealth-step-actions-inner [data-nav="prev"],
.iphealth-reservation-mobile-view .iphealth-step-actions-inner [data-nav="next"],
.iphealth-reservation-mobile-view .iphealth-step-actions-inner .iphealth-btn-submit {
    flex: 1 1 0;
    margin-left: 0;
    min-height: 48px;
    font-size: 20px;
}

.iphealth-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1300;
    display: none;
    gap: 12px;
    padding: max(10px, env(safe-area-inset-top)) 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #d8dde6;
    background: #f3f5f8;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.iphealth-reservation-mobile-view {
    position: relative;
}

.iphealth-mobile-bottom-nav .iphealth-btn {
    flex: 1 1 0;
    min-height: 48px;
    font-size: 20px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
}

.iphealth-mobile-bottom-nav .iphealth-btn-secondary,
.iphealth-mobile-bottom-nav .iphealth-btn-primary {
    background: #0057B8 !important;
    color: #ffffff !important;
    border: none !important;
}

#iphealth-mobile-prev::before {
    content: "\2039";
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    margin-right: 2px;
    display: inline-block;
    vertical-align: middle;
}

#iphealth-mobile-next::after {
    content: "\203A";
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    margin-left: 2px;
    display: inline-block;
    vertical-align: middle;
}

.iphealth-reservation-mobile-view .iphealth-step-actions-inner {
    display: none !important;
}

.iphealth-reservation-mobile-view .iphealth-step-actions {
    display: none !important;
}

.iphealth-reservation-mobile-view .iphealth-mobile-bottom-nav {
    display: flex !important;
}

.iphealth-reservation-mobile-view .iphealth-step-7 {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    box-sizing: border-box;
}

.iphealth-reservation-mobile-view .iphealth-step-7 > * {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.iphealth-reservation-mobile-view .iphealth-confirm-success-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    font-size: 30px;
}

.iphealth-reservation-mobile-view .iphealth-step-7 h3 {
    font-size: 24px;
}

.iphealth-reservation-mobile-view .iphealth-confirm-row {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
}

.iphealth-reservation-mobile-view .iphealth-confirm-row strong,
.iphealth-reservation-mobile-view .iphealth-confirm-row span {
    display: block;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.iphealth-reservation-mobile-view .iphealth-confirm-service-line {
    display: block;
}

.iphealth-reservation-mobile-view .iphealth-confirm-service-line + .iphealth-confirm-service-line {
    margin-top: 4px;
}

.iphealth-reservation-mobile-view .iphealth-confirm-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.iphealth-reservation-mobile-view .iphealth-confirm-link-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
}

.iphealth-reservation-mobile-view .iphealth-confirm-actions .iphealth-btn {
    width: 100%;
    font-size: 20px;
    min-height: 70px;
    height: 70px;
    padding: 0 16px;
    border-radius: 10px;
    box-sizing: border-box;
    text-decoration: none !important;
}

.iphealth-reservation-mobile-view .iphealth-confirm-submit-wrap,
.iphealth-reservation-mobile-view .iphealth-confirm-link-row {
    width: 100%;
}

.iphealth-reservation-mobile-view .iphealth-confirm-submit-wrap .iphealth-btn,
.iphealth-reservation-mobile-view .iphealth-confirm-link-row .iphealth-btn {
    width: 100%;
}

.iphealth-reservation-mobile-view .iphealth-payment-success .iphealth-btn {
    border-radius: 10px;
    text-decoration: none !important;
}



body > .iphealth-mobile-bottom-nav.is-mobile-nav-visible {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2147483000 !important;
    display: flex !important;
}

body > .iphealth-mobile-bottom-nav.is-step-4-floating {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    gap: 12px !important;
    padding: 0 !important;
    border-top: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body > .iphealth-mobile-bottom-nav.is-step-4-floating .iphealth-btn {
    min-height: 64px !important;
    height: 64px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    background: #0057B8 !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 10px 22px rgba(0, 87, 184, 0.22) !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

body > .iphealth-mobile-bottom-nav.is-step-4-floating #iphealth-mobile-prev::before,
body > .iphealth-mobile-bottom-nav.is-step-4-floating #iphealth-mobile-next::after {
    font-size: 38px !important;
    font-weight: 700 !important;
    line-height: 0.8 !important;
}

body > .iphealth-mobile-bottom-nav.is-step-4-floating #iphealth-mobile-prev::before {
    margin-right: 4px !important;
}

body > .iphealth-mobile-bottom-nav.is-step-4-floating #iphealth-mobile-next::after {
    margin-left: 4px !important;
}

/* Step 4 mobile: floating Previous / Next action bar */
.iphealth-reservation-mobile-view[data-current-step="4"] {
    padding-bottom: 142px;
}

.iphealth-reservation-mobile-view[data-current-step="4"] .iphealth-step-4 {
    padding-bottom: 128px;
}

.iphealth-reservation-mobile-view[data-current-step="4"] .iphealth-mobile-bottom-nav {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 12px;
    padding: 0;
    border-top: 0;
    background: transparent;
    box-shadow: none;
}

.iphealth-reservation-mobile-view[data-current-step="4"] .iphealth-mobile-bottom-nav .iphealth-btn {
    min-height: 64px;
    height: 64px;
    padding: 0 16px;
    border-radius: 12px;
    background: #0057B8 !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 10px 22px rgba(0, 87, 184, 0.22);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.iphealth-reservation-mobile-view[data-current-step="4"] #iphealth-mobile-prev::before,
.iphealth-reservation-mobile-view[data-current-step="4"] #iphealth-mobile-next::after {
    font-size: 38px;
    font-weight: 700;
    line-height: 0.8;
}

.iphealth-reservation-mobile-view[data-current-step="4"] #iphealth-mobile-prev::before {
    margin-right: 4px;
}

.iphealth-reservation-mobile-view[data-current-step="4"] #iphealth-mobile-next::after {
    margin-left: 4px;
}

@supports not (padding: max(0px)) {
    .iphealth-mobile-bottom-nav {
        padding: 10px 16px 10px;
    }
}

/* Step 4 login button */
.iphealth-reservation-mobile-view .iphealth-step[data-step="4"] .iphealth-open-login {
    display: flex;
    margin: 12px auto 0;
    background: #FFD700;
    color: #1f2329;
}

/* Calendar compact layout */
.iphealth-reservation-mobile-view .iphealth-calendar-head {
    padding: 6px 8px;
}

.iphealth-reservation-mobile-view .iphealth-cal-day {
    border-color: #e6eaf0;
    background: #f7f8fa !important;
    color: #1f2329;
}

.iphealth-reservation-mobile-view .iphealth-cal-day.is-selected {
    position: relative;
    z-index: 6;
    transform: translateY(-1px);
    background: linear-gradient(135deg, #f8e17b 0%, #f2cf4d 52%, #e8bc2e 100%) !important;
    border-color: #dfb227 !important;
    color: #111111;
    box-shadow: 0 6px 14px rgba(184, 139, 13, 0.32), 0 0 0 2px rgba(184, 139, 13, 0.26);
}

.iphealth-reservation-mobile-view .iphealth-cal-week {
    padding: 2px 2px 0;
    font-size: 10px;
}

.iphealth-reservation-mobile-view .iphealth-cal-grid {
    gap: 1px;
    padding: 2px;
}

.iphealth-reservation-mobile-view .iphealth-cal-day {
    height: 24px;
    font-size: 11px;
    border-radius: 4px;
}

.iphealth-reservation-mobile-view .iphealth-cal-nav {
    width: 28px;
    height: 24px;
    font-size: 22px;
    background: #FFD700 !important;
    border-color: #e2be00 !important;
    color: #1f2329 !important;
}

/* Step 1 clinic list */
.iphealth-reservation-mobile-view .iphealth-step-1 .iphealth-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
}

.iphealth-reservation-mobile-view .iphealth-step-1 .iphealth-select-card .iphealth-card-body {
    flex-direction: row;
    align-items: center;
    min-height: 86px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    border: 1px solid #e6eaf0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(20, 46, 84, 0.06);
}

.iphealth-reservation-mobile-view .iphealth-step-1 .iphealth-select-card input[type="radio"]:checked + .iphealth-card-body {
    background: linear-gradient(135deg, #f8e17b 0%, #f2cf4d 52%, #e8bc2e 100%);
    border-color: #dfb227;
    box-shadow: 0 4px 12px rgba(184, 139, 13, 0.28);
}

.iphealth-reservation-mobile-view .iphealth-step-1 .iphealth-card-cover {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    flex-shrink: 0;
}

.iphealth-reservation-mobile-view .iphealth-step-1 .iphealth-card-content {
    padding: 0 0 0 14px;
    text-align: left;
}

.iphealth-reservation-mobile-view .iphealth-step-1 .iphealth-card-content strong {
    font-size: 20px;
    color: #1e2633;
    font-weight: 400;
}

.iphealth-reservation-mobile-view .iphealth-step-1 .iphealth-card-content small {
    font-size: 16px;
    color: #0A0A0A;
}

.iphealth-reservation-mobile-view .iphealth-step-1 .iphealth-select-card input[type="radio"]:checked + .iphealth-card-body .iphealth-card-content strong {
    color: #111111;
}

.iphealth-reservation-mobile-view .iphealth-step-1 .iphealth-select-card input[type="radio"]:checked + .iphealth-card-body .iphealth-card-content small {
    color: #0A0A0A;
}

.iphealth-reservation-mobile-view .iphealth-step-1 .iphealth-card-content small:last-child {
    display: none;
}

/* Time slots */
.iphealth-reservation-mobile-view .iphealth-time-slots {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

.iphealth-reservation-mobile-view .iphealth-time-slot-body {
    border-color: #e6eaf0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(20, 46, 84, 0.06);
}

.iphealth-reservation-mobile-view .iphealth-time-slot-body span:first-child {
    font-size: 18px;
    color: #1e2633;
}

.iphealth-reservation-mobile-view .iphealth-time-slot-body span:last-child {
    font-size: 16px;
    color: #4b5563;
}

.iphealth-reservation-mobile-view .iphealth-time-slot input[type="radio"]:checked + .iphealth-time-slot-body {
    border-color: #dfb227;
    background: linear-gradient(135deg, #f8e17b 0%, #f2cf4d 52%, #e8bc2e 100%);
    box-shadow: 0 4px 12px rgba(184, 139, 13, 0.28);
}

.iphealth-reservation-mobile-view .iphealth-time-slot input[type="radio"]:checked + .iphealth-time-slot-body span:first-child,
.iphealth-reservation-mobile-view .iphealth-time-slot input[type="radio"]:checked + .iphealth-time-slot-body span:last-child {
    color: #111111;
}

.iphealth-reservation-mobile-view #iphealth-signature-pad {
    height: 380px;
}

/* Step 2 service list - mobile card layout */
.iphealth-reservation-mobile-view .iphealth-step-2 #iphealth-service-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card {
    margin: 0;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card .iphealth-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "service-name service-name"
        "service-duration service-price";
    column-gap: 12px;
    align-items: end;
    position: relative;
    min-height: 110px;
    padding: 7px 14px 16px 56px;
    border-radius: 18px;
    border: 2px solid #FFDF33;
    background: #F6F6F6;
    box-shadow: 0 2px 8px rgba(20, 46, 84, 0.06);
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card .iphealth-card-body::after {
    content: '\2713';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d4d9e1;
    color: #8f98a7;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card .iphealth-card-body::after {
    content: '\2713';
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card input[type="checkbox"] {
    display: none;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card .iphealth-card-cover {
    display: none;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card .iphealth-card-content {
    display: contents;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card .iphealth-card-content strong {
    display: block;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    grid-area: service-name;
    font-size: 16px;
    line-height: 1.35;
    color: #1e2633;
    font-weight: 400;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card .iphealth-card-content small {
    display: block;
    grid-area: service-duration;
    position: static;
    margin: 8px 0 0;
    color: #6a7282;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.3px;
    text-align: left;
    white-space: nowrap;
    width: fit-content;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card .iphealth-service-price {
    position: static;
    grid-area: service-price;
    margin-top: 8px;
    font-size: 21px;
    line-height: 1;
    font-weight: 400;
    color: #1f2329;
    white-space: nowrap;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card .iphealth-card-check {
    right: auto;
    left: 16px;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    opacity: 0;
    background: transparent;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card .iphealth-card-check::after {
    left: 8px;
    top: 4px;
    width: 9px;
    height: 15px;
    border-right-color: #fff;
    border-bottom-color: #fff;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card input[type="radio"]:checked + .iphealth-card-body {
    background: linear-gradient(135deg, #f8e17b 0%, #f2cf4d 52%, #e8bc2e 100%);
    border-color: #dfb227;
    box-shadow: 0 4px 12px rgba(184, 139, 13, 0.28);
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card.is-selected .iphealth-card-body,
.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card input[type="checkbox"]:checked + .iphealth-card-body {
    background: linear-gradient(135deg, #f8e17b 0%, #f2cf4d 52%, #e8bc2e 100%);
    border-color: #dfb227;
    box-shadow: 0 4px 12px rgba(184, 139, 13, 0.28);
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card input[type="radio"]:checked + .iphealth-card-body::after {
    background: #0057B8;
    color: #fff;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card.is-selected .iphealth-card-body::after,
.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card input[type="checkbox"]:checked + .iphealth-card-body::after {
    background: #0057B8;
    color: #fff;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card input[type="radio"]:checked + .iphealth-card-body .iphealth-card-content strong,
.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card input[type="radio"]:checked + .iphealth-card-body .iphealth-card-content small,
.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card input[type="radio"]:checked + .iphealth-card-body .iphealth-service-price {
    color: #111111;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card.is-selected .iphealth-card-content strong,
.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card.is-selected .iphealth-card-content small,
.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card.is-selected .iphealth-service-price,
.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card input[type="checkbox"]:checked + .iphealth-card-body .iphealth-card-content strong,
.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card input[type="checkbox"]:checked + .iphealth-card-body .iphealth-card-content small,
.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card input[type="checkbox"]:checked + .iphealth-card-body .iphealth-service-price {
    color: #111111;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card input[type="radio"]:checked + .iphealth-card-body .iphealth-card-content small {
    background: transparent;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card.is-selected .iphealth-card-content small,
.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card input[type="checkbox"]:checked + .iphealth-card-body .iphealth-card-content small {
    background: transparent;
}

.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card.is-selected .iphealth-card-check,
.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card input[type="radio"]:checked + .iphealth-card-body .iphealth-card-check,
.iphealth-reservation-mobile-view .iphealth-step-2 .iphealth-service-card input[type="checkbox"]:checked + .iphealth-card-body .iphealth-card-check {
    opacity: 1;
    background: #0057B8;
}

/* Step 3 doctor list - same mobile colors as Step 2 service list */
.iphealth-reservation-mobile-view .iphealth-step-3 #iphealth-doctor-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card {
    margin: 0;
}

.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card .iphealth-card-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    position: relative;
    min-height: 132px;
    padding: 14px 58px 14px 14px;
    border-radius: 18px;
    border: 1px solid #e6eaf0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(20, 46, 84, 0.06);
    overflow: visible;
}

.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card .iphealth-card-cover {
    width: 100px;
    height: 100px;
    margin: 0;
    border-radius: 50%;
    flex: 0 0 100px;
    background: #eef2f7;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card .iphealth-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 0;
    text-align: left;
    gap: 4px;
}

.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card .iphealth-card-content strong {
    display: block;
    min-width: 0;
    font-size: 20px;
    line-height: 1.2;
    color: #1e2633;
    font-weight: 400;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card .iphealth-card-content small {
    display: block;
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    color: #647083;
    font-weight: 400;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card .iphealth-card-check {
    top: 50%;
    right: 16px;
    width: 28px;
    height: 28px;
    border: 2px solid #d4d9e1;
    background: #fff;
    opacity: 1;
    transform: translateY(-50%);
}

.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card .iphealth-card-check::after {
    left: 8px;
    top: 4px;
    width: 9px;
    height: 15px;
    opacity: 0;
}

.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card.is-selected .iphealth-card-body,
.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card input[type="radio"]:checked + .iphealth-card-body {
    background: linear-gradient(135deg, #f8e17b 0%, #f2cf4d 52%, #e8bc2e 100%);
    border-color: #dfb227;
    box-shadow: 0 4px 12px rgba(184, 139, 13, 0.28);
}

.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card.is-selected .iphealth-card-content strong,
.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card.is-selected .iphealth-card-content small,
.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card input[type="radio"]:checked + .iphealth-card-body .iphealth-card-content strong,
.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card input[type="radio"]:checked + .iphealth-card-body .iphealth-card-content small {
    color: #111111;
}

.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card.is-selected .iphealth-card-check,
.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card input[type="radio"]:checked + .iphealth-card-body .iphealth-card-check {
    border-color: #0057B8;
    background: #0057B8;
}

.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card.is-selected .iphealth-card-check::after,
.iphealth-reservation-mobile-view .iphealth-step-3 .iphealth-doctor-card input[type="radio"]:checked + .iphealth-card-body .iphealth-card-check::after {
    opacity: 1;
}
/* Step 4 doctor list - same mobile pattern as Step 2 service list */
.iphealth-reservation-mobile-view .iphealth-step-4 #iphealth-doctor-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.iphealth-reservation-mobile-view .iphealth-step-4 .iphealth-doctor-card {
    margin: 0;
}

.iphealth-reservation-mobile-view .iphealth-step-4 .iphealth-doctor-card .iphealth-card-body {
    position: relative;
    min-height: 110px; /* +20px */
    padding: 14px 14px 14px 78px;
    border-radius: 18px;
    border: 1px solid #e6eaf0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(20, 46, 84, 0.06);
}

.iphealth-reservation-mobile-view .iphealth-step-4 .iphealth-doctor-card:last-child .iphealth-card-body {
    border-bottom: 1px solid #e6eaf0;
}

.iphealth-reservation-mobile-view .iphealth-step-4 .iphealth-doctor-card .iphealth-card-cover {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border-radius: 50%;
    background: #f6e8b8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.iphealth-reservation-mobile-view .iphealth-step-4 .iphealth-doctor-card .iphealth-card-content {
    display: flex;
    flex-direction: column; /* 名字在上，职务在?*/
    align-items: flex-start;
    justify-content: center;
    min-height: 82px; /* +20px */
    padding: 0;
    text-align: left;
    gap: 2px; /* 继续缩小姓名/职务上下间距 */
}

.iphealth-reservation-mobile-view .iphealth-step-4 .iphealth-doctor-card .iphealth-card-content strong {
    display: block;
    flex: 0 0 auto; /* 避免 strong 占满剩余高度导致上下间距被拉?*/
    min-width: 0;
    font-size: 22px;
    line-height: 1.2;
    color: #1e2633;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.iphealth-reservation-mobile-view .iphealth-step-4 .iphealth-doctor-card .iphealth-card-content small {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    color: #647083;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.iphealth-reservation-mobile-view .iphealth-step-4 .iphealth-doctor-card input[type="radio"]:checked + .iphealth-card-body {
    background: linear-gradient(135deg, #f8e17b 0%, #f2cf4d 52%, #e8bc2e 100%);
    border-color: #dfb227;
    box-shadow: 0 4px 12px rgba(184, 139, 13, 0.28);
}

.iphealth-reservation-mobile-view .iphealth-step-4 .iphealth-doctor-card input[type="radio"]:checked + .iphealth-card-body .iphealth-card-content strong,
.iphealth-reservation-mobile-view .iphealth-step-4 .iphealth-doctor-card input[type="radio"]:checked + .iphealth-card-body .iphealth-card-content small {
    color: #111111;
}

/* Step 5 login/register (mobile): keep login fields inside the viewport. */
.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-step5-login-inline-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-step5-login-form,
.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-step5-login-form .iphealth-grid-2,
.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-step5-login-form .iphealth-grid-2 > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-step5-login-form input[type="text"],
.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-step5-login-form input[type="password"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-step5-login-inline {
    margin-top: 8px;
}

.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-step5-login-iframe {
    width: 100% !important;
    min-height: 700px !important;
    height: 700px !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #fff;
}

.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-login-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin-top: 8px;
}

.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-login-actions .iphealth-btn {
    width: auto;
    min-width: 240px;
    min-height: 46px;
    border-radius: 10px;
    padding: 0 20px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-login-actions .iphealth-btn-primary,
.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-login-actions .iphealth-btn-secondary {
    background: #FFD700 !important;
    color: #1f2328 !important;
    border: none !important;
}

.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-login-actions .iphealth-prime-register,
.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-login-actions .iphealth-prime-register:hover,
.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-login-actions .iphealth-prime-register:focus,
.iphealth-reservation-mobile-view .iphealth-step-5 .iphealth-login-actions .iphealth-prime-register:active {
    text-decoration: none !important;
}

