/* Desktop-only reservation view overrides (loaded when wp_is_mobile() is false) */

/* Buttons */
.iphealth-reservation-desktop-view .iphealth-btn {
    padding: 18px 26px;
    font-size: 18px;
    line-height: 1.2;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.iphealth-reservation-desktop-view .iphealth-btn-secondary,
.iphealth-reservation-desktop-view .iphealth-btn-primary,
.iphealth-reservation-desktop-view .iphealth-btn-submit {
    background: #0057B8;
    color: #fff;
    text-align: center;
    justify-content: center;
}

/* Time slots */
.iphealth-reservation-desktop-view .iphealth-time-slot-body {
    border-color: #5f9ee8;
    background: #74AFF6;
}

.iphealth-reservation-desktop-view .iphealth-time-slot-body span:first-child {
    font-size: 22px;
    color: #ffffff;
}

.iphealth-reservation-desktop-view .iphealth-time-slot-body span:last-child {
    font-size: 22px;
    color: #eaf2ff;
}

.iphealth-reservation-desktop-view .iphealth-time-slot input[type="radio"]:checked + .iphealth-time-slot-body {
    border-color: #013a8c;
    background: #0145A8;
    box-shadow: 0 0 0 2px rgba(1, 69, 168, 0.28);
}

/* Calendar days */
.iphealth-reservation-desktop-view .iphealth-cal-day {
    border-color: #5f9ee8;
    background: #74AFF6 !important;
    color: #ffffff;
}

.iphealth-reservation-desktop-view .iphealth-cal-day.is-selected {
    background: #0145A8 !important;
    border-color: #013a8c !important;
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(1, 69, 168, 0.28);
}

/* Step 2 service list: same card style as clinic list */
.iphealth-reservation-desktop-view .iphealth-step-2 #iphealth-service-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.iphealth-reservation-desktop-view .iphealth-step-2 .iphealth-service-card .iphealth-card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.iphealth-reservation-desktop-view .iphealth-step-2 .iphealth-service-card .iphealth-card-cover {
    width: 200px;
    height: 200px;
    margin: 16px auto 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.iphealth-reservation-desktop-view .iphealth-step-2 .iphealth-service-card .iphealth-card-content strong {
    font-size: 20px;
}

.iphealth-reservation-desktop-view .iphealth-step-2 .iphealth-service-card .iphealth-card-content small {
    font-size: 18px;
}

.iphealth-reservation-desktop-view .iphealth-step-2 .iphealth-service-price {
    display: block;
    margin: 0 0 16px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #e0a300;
    white-space: nowrap;
}

.iphealth-reservation-desktop-view .iphealth-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.iphealth-reservation-desktop-view .iphealth-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Step 1 clinic logo: use 240x240 and keep full logo visible */
.iphealth-reservation-desktop-view .iphealth-step-1 .iphealth-card-cover {
    width: 240px;
    height: 240px;
    margin: 16px auto 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Step 1 cards can be shorter now that logo is square */
.iphealth-reservation-desktop-view .iphealth-step-1 .iphealth-card-body {
    min-height: auto;
}

.iphealth-reservation-desktop-view #iphealth-signature-pad {
    height: 340px;
}

/* Step 3: enlarge calendar area and narrow time wheel area on desktop */
.iphealth-reservation-desktop-view .iphealth-step-3 .iphealth-grid-2 {
    grid-template-columns: 1.6fr 1fr;
}

/* Step 4 doctor list on desktop: follow Step 2 service card style */
.iphealth-reservation-desktop-view .iphealth-step-4 .iphealth-doctor-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.iphealth-reservation-desktop-view .iphealth-step-4 .iphealth-doctor-card .iphealth-card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.iphealth-reservation-desktop-view .iphealth-step-4 .iphealth-doctor-card .iphealth-card-cover {
    width: 200px;
    height: 200px;
    margin: 16px auto 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.iphealth-reservation-desktop-view .iphealth-step-4 .iphealth-doctor-card .iphealth-card-content {
    text-align: center;
}

.iphealth-reservation-desktop-view .iphealth-step-4 .iphealth-doctor-card .iphealth-card-content strong {
    font-size: 20px;
}

.iphealth-reservation-desktop-view .iphealth-step-4 .iphealth-doctor-card .iphealth-card-content small {
    font-size: 18px;
}

.iphealth-reservation-desktop-view .iphealth-booking-sidebar {
    width: 330px;
    flex: 0 0 330px;
    background: linear-gradient(180deg, #1f5dc7 0%, #2a66cf 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
}

.iphealth-reservation-desktop-view .iphealth-stepper {
    margin: 0;
    padding: 28px 26px;
    list-style: none;
    flex: 1;
}

.iphealth-reservation-desktop-view .iphealth-stepper li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.92);
}

.iphealth-reservation-desktop-view .iphealth-stepper li span {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: #d4af6f;
    flex-shrink: 0;
}

.iphealth-reservation-desktop-view .iphealth-stepper li.is-active span {
    background: #ffda17;
    color: #3f3f3f;
}

.iphealth-reservation-desktop-view .iphealth-sidebar-help {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding: 22px 28px 30px;
    font-size: 30px;
    line-height: 1.25;
}

.iphealth-reservation-desktop-view .iphealth-sidebar-help p {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
}

.iphealth-reservation-desktop-view .iphealth-sidebar-help a {
    display: inline-block;
    margin-top: 6px;
    color: #ffd36c;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 1280px) {
    .iphealth-reservation-desktop-view .iphealth-stepper li {
        font-size: 30px;
    }

    .iphealth-reservation-desktop-view .iphealth-booking-header h2 {
        font-size: 40px;
    }
}

@media (max-width: 1024px) {
    .iphealth-reservation-desktop-view .iphealth-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Tablet and below: stack date/time in Step 3 for narrower layout */
    .iphealth-reservation-desktop-view .iphealth-step-3 .iphealth-grid-2 {
        grid-template-columns: 1fr;
    }
}
