/*
 * =========================================
 *  WP Teams Scheduler - Calendly Style UI
 * =========================================
 */

/* 1. Global Wrapper & Font */
/* ------------------------------------ */


.wpts-hyper-modern-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 24px 16px;
     /* Let the wrapper height be driven by content */
     min-height: auto;
     overflow: visible;
}

:root {
    --wpts-color-primary: #0069ff;
    --wpts-color-primary-light: #e6f2ff;
    --wpts-color-primary-dark: #0056cc;
    --wpts-text-dark: #1a1a1a;
    --wpts-text-medium: #1a1a1a9c;
    --wpts-text-light: #6b7280;
    --wpts-border-color: #e5e7eb;
    --wpts-card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --wpts-card-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* 2. Main Scheduler Card & Step Transitions */
/* ------------------------------------ */
#wpts-scheduler {
    max-width: 940px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--wpts-card-shadow);
    display: grid;
    grid-template-columns: 380px 1fr;
    position: relative;
    overflow: visible; /* allow content to grow */
}

#wpts-info-panel {
    background-color: #ffffff;
    border-right: 1px solid var(--wpts-border-color);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.wpts-back-button-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.wpts-back-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--wpts-color-primary);
    transition: background-color 0.2s ease;
}

.wpts-back-btn:hover {
    background-color: var(--wpts-color-primary-light);
}

.wpts-logo-container {
    text-align: center;
    margin-bottom: 24px;
}

.wpts-logo-container img {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 64px;
    height: auto;
}

#wpts-main-panel {
    position: relative;
    background-color: #ffffff;
    /* Let content define height; allow it to grow/shrink */
    height: auto;
    overflow: visible;
}

.wpts-corner-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #6b7280;
    color: white;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    transform: rotate(45deg);
    transform-origin: bottom left;
    width: 120px;
    z-index: 5;
}

/* Variables for easy theming */
:root {
    --wpts-color-primary: #007bff;
    --wpts-color-primary-light: #e6f2ff;
    --wpts-text-dark: #1e1e1e;
    --wpts-text-medium: #6c757d;
    --wpts-text-light: #adb5bd;
}

/* --- ORIGINAL STYLES (with minor modifications) --- */
.wpts-step {
    padding: 40px 48px;
    display: none;
    opacity: 0;
    visibility: hidden;
    /* Changed transform for the new pop effect */
    transform: scale(0.95);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.wpts-step.wpts-active {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.wpts-step.is-exiting {
    opacity: 0;
    transform: translateX(-20px);
}

/* 3. Component Styling */
/* ------------------------------------ */

/* --- Info Panel --- */
#wpts-info-panel h3 {
    margin: 0 0 8px 0;
    color: #000;
    font-weight: 600;
    font-size: 16px;
}

#wpts-info-panel h1 {
    margin: 0 0 8px 0;
    color: #000;
    font-weight: 600;
    font-size: 16px;
}

#wpts-info-panel h2 {
    margin: 0 0 32px 0;
    color: #000;
    font-size: 20px;
    font-weight: 700;
}

.wpts-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--wpts-text-medium);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

.wpts-info-description {
    margin-top: auto;
    font-size: 14px;
    font-weight: 500;
    color: var(--wpts-text-medium);
    line-height: 1.5;
    text-align: left;
}

/* --- Step Titles --- */
.wpts-step-title {
    margin: 0 0 16px 0; /* Adjusted margin */
    font-size: 26px;
    font-weight: 600;
    color: var(--wpts-text-dark);
    text-align: center;
}

.wpts-step-subtitle {
    margin: 0 0 48px 0; /* Adjusted margin */
    font-size: 18px;
    font-weight: 600;
    color: var(--wpts-text-medium);
    text-align: center;
}

/* --- UNUSED CALENDAR STYLES (PRESERVED AS REQUESTED) --- */
.wpts-calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px 0;
    position: relative;
}

.wpts-icon-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    color: var(--wpts-color-primary);
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wpts-icon-button:hover,
.wpts-icon-button:focus {
    background-color: var(--wpts-color-primary-light);
}

.wpts-icon-button:disabled {
    background-color: transparent;
    color: var(--wpts-text-light);
    pointer-events: none;
}

.wpts-icon-button svg {
    width: 20px;
    height: 20px;
}

.wpts-month-label {
    font-size: 18px;
    font-weight: 600;
    margin: 0 16px;
    min-width: 140px;
    text-align: center;
    color: var(--wpts-text-dark);
}

/* --- NEW & MODIFIED STYLES FOR EFFECTS --- */
        
        /* NEW: Keyframes for the pulse animation */
        @keyframes pulse-shadow {
            0% {
                box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.5);
            }
            70% {
                box-shadow: 0 0 0 12px rgba(0, 123, 255, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
            }
        }

        .wpts-event-grid {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .wpts-event-card {
            background-color: #fff;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 20px;
            text-align: left;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            /* overflow: hidden; */
            opacity: 0;
            transform: scale(0.8);
            animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        .wpts-active .wpts-event-card:nth-child(1) { animation-delay: 0.1s; }
        .wpts-active .wpts-event-card:nth-child(2) { animation-delay: 0.2s; }
        .wpts-active .wpts-event-card:nth-child(3) { animation-delay: 0.3s; }

        @keyframes pop-in {
            to { opacity: 1; transform: scale(1); }
        }
        
        .wpts-event-card:hover {
            transform: translateY(-5px);
            border-color: var(--wpts-color-primary);
            box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
        }

        /* NEW: Style for the popular item */
        .wpts-is-popular {
            border-color: var(--wpts-color-primary);
            /* Apply the pulse animation */
            animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards, /* pop-in first */
                         pulse-shadow 2s infinite 1s; /* then start pulsing after a delay */
        }
        
        .wpts-event-card h3,
        .wpts-event-card p { margin: 0; transition: color 0.3s ease; }
        .wpts-event-card h3 { font-size: 16px; font-weight: 600; color: var(--wpts-text-dark); }
        .wpts-event-card p { font-size: 14px; color: var(--wpts-text-medium); }
        
        .wpts-popular-tag {
            position: absolute;
            top: -14px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--wpts-color-primary);
            color: #fff;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
        }
        
        .wpts-popular-tag::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border-width: 5px;
            border-style: solid;
            border-color: var(--wpts-color-primary) transparent transparent transparent;
        }
        
        .wpts-arrow-icon {
            position: absolute;
            right: 20px;
            top: 50%;
            font-size: 24px;
            color: var(--wpts-color-primary);
            opacity: 0;
            transform: translate(-10px, -50%);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .wpts-event-card:hover .wpts-arrow-icon {
            opacity: 1;
            transform: translate(0, -50%);
        }



.wpts-datetime-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.wpts-calendar-wrapper {
    max-width: 320px;
}

#wpts-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    text-align: center;
}

.wpts-day-name {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--wpts-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpts-day {
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--wpts-text-dark);
}

.wpts-day.wpts-other-month {
    visibility: hidden;
}

.wpts-day.wpts-available:hover {
    background-color: var(--wpts-color-primary-light);
    color: var(--wpts-color-primary);
}

.wpts-day.wpts-selected {
    background-color: var(--wpts-color-primary);
    color: #ffffff;
    font-weight: 600;
}

/* Holiday highlighting */
.wpts-day.wpts-holiday {
    position: relative;
    background-color: #fff7ed; /* soft orange tint */
    border: 1px solid #fdba74; /* orange border */
    color: #c2410c;
}

.wpts-day.wpts-holiday.wpts-available:hover {
    background-color: #ffedd5;
    color: #9a3412;
}

/* Tooltip for holidays (uses title attr fallback plus custom bubble) */
.wpts-day.wpts-holiday::after {
    content: attr(data-holiday);
    position: absolute;
    left: 50%;
    bottom: 120%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: #111827;
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

.wpts-day.wpts-holiday::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 110%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #111827 transparent transparent transparent;
    opacity: 0;
    transition: opacity .15s ease;
}

.wpts-day.wpts-holiday:hover::after,
.wpts-day.wpts-holiday:hover::before {
    opacity: 1;
}

.wpts-day.wpts-disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

/* --- Timezone Info --- */
.wpts-timezone-info {
    border-top: 1px solid var(--wpts-border-color);
    padding-top: 24px;
    margin-top: 24px;
}

.wpts-timezone-display {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--wpts-text-medium);
    font-size: 14px;
}

.wpts-timezone-display svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}





/* --- Time Slots --- */
#wpts-time-slots {
    max-height: 380px; /* ensures scroll appears when content exceeds */
    overflow-y: auto;
    padding-right: 8px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Modern, subtle scrollbar for time slots */
#wpts-time-slots::-webkit-scrollbar {
    width: 10px;
}

#wpts-time-slots::-webkit-scrollbar-track {
    /* background: #f3f4f6; */
    border-radius: 8px;
}

#wpts-time-slots::-webkit-scrollbar-thumb {
    background: var(--wpts-color-primary-light);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

#wpts-time-slots:hover::-webkit-scrollbar-thumb {
    background: #cfe0ff;
}

#wpts-time-slots {
    scrollbar-width: thin;                /* Firefox */
}

.wpts-time-slot {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 2px solid var(--wpts-color-primary);
    color: var(--wpts-color-primary);
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
}

.wpts-time-slot:hover {
    background-color: var(--wpts-color-primary);
    color: #ffffff;
}

.wpts-time-placeholder {
    text-align: center;
    color: var(--wpts-text-light);
    font-size: 14px;
    padding: 40px 0;
    margin: 0;
}

.no-slots-msg {
    text-align: center;
    color: #dc2626;
    font-size: 12px;
    padding: 30px 20px;
    margin: 0;
    background-color: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
    line-height: 1.6;
    position: absolute;
    font-weight: 600;
    transform: translateY(-8px);
    width: 200px; /* fixed width so the bubble never stretches past the screen */
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    z-index: 20;
  }
  
  /* Caret (triangle below left) */
  .no-slots-msg::after {
    content: "";
    position: absolute;
    bottom: -8px; /* place it below the bubble */
    left: 20px; /* adjust horizontal offset */
    width: 0;
    height: 0;
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: #fef2f2 transparent transparent transparent; /* caret color same as bg */
  }
  
  /* Optional: caret border to match box border */
  .no-slots-msg::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 19px;
    width: 0;
    height: 0;
    border-width: 9px 9px 0 9px;
    border-style: solid;
    border-color: #fecaca transparent transparent transparent;
  }
  

.no-slots-msg a {
    color: #1e4d2b;
    text-decoration: underline;
    font-weight: 600;
}

.no-slots-msg a:hover {
    color: #16a34a;
}

/* --- Form --- */
.wpts-form-group {
    margin-bottom: 24px;
}

.wpts-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--wpts-text-dark);
    font-size: 14px;
}

.wpts-form-group input,
.wpts-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--wpts-border-color);
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 14px;
    font-family: inherit;
}

.wpts-form-group input:focus,
.wpts-form-group textarea:focus {
    outline: none;
    border-color: var(--wpts-color-primary);
    box-shadow: 0 0 0 3px var(--wpts-color-primary-light);
}

.wpts-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.wpts-add-guests-btn {
    background: none;
    border: none;
    color: var(--wpts-color-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.wpts-add-guests-btn:hover {
    color: var(--wpts-color-primary-dark);
}

/* Guest Functionality Styles */
.wpts-guests-section {
    background-color: #f9fafb;
    border: 1px solid var(--wpts-border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.wpts-guests-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--wpts-text-dark);
    margin: 0 0 8px 0;
}

.wpts-guests-header p {
    font-size: 14px;
    color: var(--wpts-text-light);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.wpts-guests-list {
    margin-bottom: 16px;
}

.wpts-guest-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.wpts-guest-email {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--wpts-border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpts-guest-email:focus {
    outline: none;
    border-color: var(--wpts-color-primary);
    box-shadow: 0 0 0 3px var(--wpts-color-primary-light);
}

.wpts-remove-guest-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dc2626;
    background-color: #ffffff;
    color: #dc2626;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.wpts-remove-guest-btn:hover {
    background-color: #dc2626;
    color: #ffffff;
}

.wpts-add-more-guests-btn {
    background: none;
    border: 1px dashed var(--wpts-border-color);
    color: var(--wpts-color-primary);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.wpts-add-more-guests-btn:hover {
    background-color: var(--wpts-color-primary-light);
    border-color: var(--wpts-color-primary);
}

.wpts-terms-agreement {
    margin: 24px 0;
    font-size: 12px;
    color: var(--wpts-text-light);
    line-height: 1.5;
}

.wpts-link {
    color: var(--wpts-color-primary);
    text-decoration: none;
}

.wpts-link:hover {
    text-decoration: underline;
}

/* --- Buttons --- */
.wpts-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    margin-top: 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
    background-color: var(--wpts-color-primary);
    color: #ffffff;
}

.wpts-button:hover {
    background-color: var(--wpts-color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--wpts-card-shadow-hover);
}

.wpts-button:disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Event Cards --- */
.wpts-event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.wpts-event-card {
    background: #ffffff;
    border: 1px solid var(--wpts-border-color);
    border-radius: 8px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.wpts-event-card:hover {
    border-color: var(--wpts-color-primary);
    box-shadow: var(--wpts-card-shadow);
}

.wpts-event-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--wpts-text-dark);
}

.wpts-event-card p {
    margin: 0;
    font-size: 14px;
    color: var(--wpts-text-light);
}

/* --- Confirmation Screen --- */
#wpts-step-4-confirmation {
    /* Do NOT set display here so hidden step stays hidden */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto; /* adapt to content */
    padding: 20px 0;
}

/* When active, use flex layout for nicer vertical alignment */
#wpts-step-4-confirmation.wpts-active {
    display: flex;
}



.wpts-confirmation-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

/* Elicit Technology Logo */
img.wpts-logo-image {
    width: 100%;
    height: auto;
}

.wpts-logo-square {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wpts-logo-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 2px;
}

.wpts-logo-tagline {
    font-size: 8px;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1;
}

/* Confirmation Title and Subtitle */
.wpts-confirmation-title {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wpts-confirmation-subtitle {
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 32px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Meeting Details Card */
.wpts-meeting-details-card {
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
    font-weight: 600;
}

.wpts-meeting-detail {
    display: flex;
    align-items: flex-start; /* allow multi-line link to align nicely */
    gap: 12px;
    margin-bottom: 16px;
    color: #1a1a1a;
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wpts-meeting-detail:last-child {
    margin-bottom: 0;
}

.wpts-meeting-detail svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #1a1a1a;
}

.wpts-meeting-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    white-space: normal;          /* allow wrapping */
    word-break: break-word;       /* break long tokens */
    overflow-wrap: anywhere;      /* modern wrap support */
    max-width: 100%;
    display: inline-block;
    flex: 1;                      /* occupy remaining row space in flex container */
    line-height: 1.5;
}

.wpts-meeting-link:hover {
    text-decoration: underline;
}

/* Next Steps Section */
.wpts-next-steps {
    text-align: left;
    margin-bottom: 24px;
}

.wpts-next-steps h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wpts-next-steps p {
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Contact Information Section */
.wpts-contact-info {
    text-align: left;
}

.wpts-contact-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wpts-contact-info p {
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wpts-contact-info a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.wpts-contact-info a:hover {
    text-decoration: underline;
}

/* Legacy confirmation styles (keeping for backward compatibility) */
.wpts-confirmation-content .wpts-logo-container {
    margin-bottom: 24px;
}

.wpts-confirmation-content .wpts-logo-container img {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wpts-confirmation-checkmark {
    width: 48px;
    height: 48px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.wpts-confirmation-checkmark svg {
    color: #ffffff;
    width: 24px;
    height: 24px;
}

#wpts-step-4-confirmation h2 {
    color: var(--wpts-text-dark);
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 16px 0;
    display: inline-flex;
    gap: 10px;
}

#wpts-confirmation-message {
    color: var(--wpts-text-light);
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 32px 0;
}

.wpts-confirmation-card {
    background-color: #f9fafb;
    border: 1px solid var(--wpts-border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 48px;
    text-align: left;
}

.wpts-confirmation-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--wpts-text-dark);
    margin: 0 0 16px 0;
}

.wpts-confirmation-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpts-confirmation-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--wpts-text-medium);
    font-size: 14px;
}

.wpts-confirmation-detail svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--wpts-text-light);
}

.wpts-confirmation-cta {
    text-align: center;
}

.wpts-confirmation-cta h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--wpts-text-dark);
    margin: 0 0 8px 0;
}

.wpts-confirmation-cta p {
    color: var(--wpts-text-light);
    font-size: 14px;
    margin: 0 0 24px 0;
}

.wpts-signup-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.wpts-signup-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--wpts-border-color);
    border-radius: 6px;
    background-color: #ffffff;
    color: var(--wpts-text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wpts-signup-btn:hover {
    border-color: var(--wpts-color-primary);
    box-shadow: 0 0 0 3px var(--wpts-color-primary-light);
}

.wpts-signup-btn svg {
    flex-shrink: 0;
}

.wpts-email-signup {
    color: var(--wpts-color-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.wpts-email-signup:hover {
    text-decoration: underline;
}

/* --- Loader --- */
.wpts-hidden {
    display: none !important;
}

.wpts-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--wpts-color-primary-light);
    border-top: 3px solid var(--wpts-color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Timezone Dropdown --- */
.wpts-timezone-selector {
    position: relative;
}

.wpts-timezone-dropdown-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.wpts-timezone-select {
    background: var(--wpts-background-color);
    border: 1px solid var(--wpts-border-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--wpts-text-color);
    cursor: pointer;
    transition: border-color 0.2s ease;
    width: 100%;
}

.wpts-timezone-select:hover {
    border-color: var(--wpts-color-primary);
}

.wpts-timezone-select:focus {
    outline: none;
    border-color: var(--wpts-color-primary);
    box-shadow: 0 0 0 2px rgba(0, 105, 255, 0.1);
}

.wpts-timezone-display {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--wpts-text-secondary);
}

.wpts-timezone-display svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

#wpts-current-timezone-display {
    font-size: 13px;
    color: var(--wpts-text-secondary);
}

/* Calendly-style timezone display */
.wpts-timezone-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.wpts-timezone-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.wpts-timezone-display svg {
    width: 20px;
    height: 20px;
    color: #007cba;
    flex-shrink: 0;
}

.wpts-timezone-display span {
    font-size: 14px;
    line-height: 1.4;
}

.wpts-timezone-display strong {
    color: #333;
    font-weight: 600;
}

.wpts-timezone-conversion {
    padding-top: 8px;
    border-top: 1px solid #e1e5e9;
    margin-top: 8px;
}

.wpts-timezone-conversion small {
    color: #666;
    font-size: 12px;
}

#wpts-host-time-display {
    font-weight: 600;
    color: #007cba;
}

/* Timezone selector improvements */
.wpts-timezone-dropdown-container {
    position: relative;
}

.wpts-timezone-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #000;
}

.wpts-timezone-display {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* 4. Responsive Design */
/* ------------------------------------ */
@media (max-width: 1024px) {
    #wpts-scheduler {
        grid-template-columns: 1fr;
        max-width: 600px;
        min-height: auto;
    }
    
    #wpts-info-panel {
        border-right: none;
        border-bottom: 1px solid var(--wpts-border-color);
        text-align: center;
        padding: 32px 24px;
    }
    
    .wpts-datetime-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .wpts-step {
        position: static;
        transform: none;
    }
    
    .wpts-step.wpts-active {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }
    
    .wpts-timezone-dropdown-container {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .wpts-timezone-select {
        min-width: 200px;
        max-width: 300px;
    }
    
    /* Event grid - 2 columns on tablet */
    .wpts-event-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .wpts-hyper-modern-wrapper {
        padding: 16px 8px;
        /* overflow-x: hidden; */
    }
    
    #wpts-scheduler {
        border-radius: 8px;
        max-width: 100%;
        overflow: visible;
        width: 100%;
    }
    
    #wpts-main-panel {
        overflow: visible;
        min-height: auto;
        padding: 24px 16px !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    #wpts-info-panel {
        padding: 24px 16px;
    }
    
    /* Make sure main panel allows content to flow properly on mobile */
    #wpts-main-panel .wpts-step {
        width: 100%;
        box-sizing: border-box;
        padding: 20px 16px !important;
    }
    
    /* Prevent horizontal overflow */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    #wpts-info-panel h2 {
        font-size: 18px;
        margin-bottom: 24px;
    }
    
    #wpts-info-panel h3 {
        font-size: 14px;
    }
    
    .wpts-info-item {
        font-size: 13px;
        gap: 10px;
    }
    
    .wpts-info-item svg {
        width: 18px;
        height: 18px;
    }
    
    .wpts-info-description {
        font-size: 13px;
    }
    
    .wpts-step {
        padding: 24px 16px;
    }
    
    .wpts-step-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .wpts-step-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .wpts-datetime-container {
        gap: 24px;
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    
    .wpts-calendar-wrapper {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        display: block !important;
    }
    
    .wpts-calendar-header {
        display: flex !important;
        margin-bottom: 20px;
    }
    
    #wpts-calendar-grid {
        gap: 8px;
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        width: 100%;
    }
    
    .wpts-day {
        height: 36px;
        width: 36px;
        font-size: 13px;
        display: flex !important;
    }
    
    .wpts-day-name {
        height: 36px;
        font-size: 11px;
        display: flex !important;
    }
    
    #wpts-time-slots {
        max-height: 300px;
    }
    
    .wpts-time-slot {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .wpts-timezone-dropdown-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .wpts-timezone-select {
        min-width: auto;
        max-width: none;
        font-size: 13px;
    }

    .wpts-timezone-info {
        padding: 12px;
        margin-top: 15px;
    }
    
    .wpts-timezone-display {
        font-size: 13px;
    }
    
    .wpts-timezone-display svg {
        width: 18px;
        height: 18px;
    }
    
    /* Event grid - single column on mobile */
    .wpts-event-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .wpts-event-card {
        padding: 16px;
    }
    
    .wpts-event-card h3 {
        font-size: 16px;
    }
    
    .wpts-event-card p {
        font-size: 13px;
    }
    
    /* Form adjustments */
    .wpts-form-group {
        margin-bottom: 20px;
    }
    
    .wpts-form-group label {
        font-size: 13px;
        font-weight: 700;
    }
    
    .wpts-form-group input,
    .wpts-form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .wpts-form-group textarea {
        min-height: 70px;
    }
    
    /* Button adjustments */
    .wpts-button {
        padding: 14px 20px;
        font-size: 15px;
        margin-top: 20px;
    }
    
    /* Guest section */
    .wpts-guests-section {
        padding: 16px;
    }
    
    .wpts-guests-header h4 {
        font-size: 15px;
    }
    
    .wpts-guests-header p {
        font-size: 13px;
    }
    
    .wpts-guest-email {
        padding: 9px 11px;
        font-size: 13px;
    }
    
    /* Back button */
    .wpts-back-button-container {
        top: 12px;
        left: 12px;
    }
    
    .wpts-back-btn {
        width: 28px;
        height: 28px;
    }
    
    /* Confirmation screen */
    #wpts-step-4-confirmation {
        padding: 20px 16px;
    }
    
    #wpts-step-4-confirmation.wpts-active {
        display: flex !important;
    }
    
    .wpts-confirmation-content {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }
    
    .wpts-logo-square {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }
    
    .wpts-logo-square img {
        max-width: 100%;
        height: auto;
    }
    
    .wpts-confirmation-title {
        font-size: 22px;
        margin-bottom: 12px;
        line-height: 1.3;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .wpts-confirmation-title svg {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }
    
    .wpts-confirmation-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
        line-height: 1.4;
    }
    
    .wpts-meeting-details-card {
        padding: 18px;
        margin-bottom: 24px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .wpts-meeting-detail {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 14px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        word-break: break-word;
    }
    
    .wpts-meeting-detail:last-child {
        margin-bottom: 0;
    }
    
    .wpts-meeting-detail svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        margin-top: 2px;
    }
    
    .wpts-meeting-link {
        font-size: 12px;
        line-height: 1.6;
        word-break: break-all;
        overflow-wrap: anywhere;
        display: inline-block;
        max-width: 100%;
    }
    
    .wpts-next-steps,
    .wpts-contact-info {
        text-align: left;
        margin-bottom: 20px;
    }
    
    .wpts-next-steps h4,
    .wpts-contact-info h4 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .wpts-next-steps p,
    .wpts-contact-info p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .wpts-contact-info a {
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .wpts-hyper-modern-wrapper {
        padding: 12px 4px;
        overflow-x: hidden;
    }
    
    #wpts-scheduler {
        border-radius: 6px;
        width: 100%;
    }
    
    #wpts-main-panel {
        overflow: visible;
        padding: 20px 12px !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    #wpts-info-panel {
        padding: 20px 12px;
    }
    
    .wpts-step {
        padding: 16px 12px !important;
    }
    
    .wpts-step.wpts-active {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }
    
    #wpts-main-panel .wpts-step {
        width: 100%;
        box-sizing: border-box;
    }
    
    .wpts-step-title {
        font-size: 20px;
    }
    
    .wpts-step-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .wpts-calendar-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    #wpts-calendar-grid {
        gap: 6px;
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
    }
    
    .wpts-day {
        height: 32px;
        width: 32px;
        font-size: 12px;
        display: flex !important;
    }
    
    .wpts-day-name {
        height: 32px;
        font-size: 10px;
        display: flex !important;
    }
    
    .wpts-calendar-header .wpts-icon-button {
        width: 32px;
        height: 32px;
        margin: 0 4px;
    }
    
    .wpts-calendar-header .wpts-icon-button svg {
        width: 16px;
        height: 16px;
    }
    
    .wpts-month-label {
        font-size: 16px;
        min-width: 120px;
        margin: 0 8px;
    }
    
    .wpts-event-card {
        padding: 14px;
    }
    
    .wpts-event-card h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .wpts-popular-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .wpts-arrow-icon {
        font-size: 20px;
        right: 14px;
    }
    
    .wpts-button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .wpts-logo-container img {
        max-width: 120px;
    }
    
    #wpts-step-4-confirmation {
        padding: 16px 12px;
    }
    
    .wpts-confirmation-content {
        padding: 0 4px;
    }
    
    .wpts-logo-square {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .wpts-confirmation-title {
        font-size: 19px;
        line-height: 1.3;
        margin-bottom: 10px;
        gap: 6px;
    }
    
    .wpts-confirmation-title svg {
        width: 24px;
        height: 24px;
    }
    
    .wpts-confirmation-subtitle {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .wpts-meeting-details-card {
        padding: 14px;
        margin-bottom: 20px;
        border-radius: 6px;
    }
    
    .wpts-meeting-detail {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 12px;
        gap: 8px;
    }
    
    .wpts-meeting-detail svg {
        width: 16px;
        height: 16px;
    }
    
    .wpts-meeting-link {
        font-size: 11px;
        line-height: 1.7;
    }
    
    .wpts-next-steps h4,
    .wpts-contact-info h4 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .wpts-next-steps p,
    .wpts-contact-info p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .no-slots-msg {
        padding: 20px 16px;
        font-size: 13px;
    }
}
  



/* The card no longer clips its children (so the no-slots popup can pop out),
   so round the panels themselves to keep the card corners clean. */
#wpts-info-panel {
    border-radius: 12px 0 0 12px;
}

#wpts-main-panel {
    border-radius: 0 12px 12px 0;
}

@media (max-width: 1024px) {
    #wpts-info-panel {
        border-radius: 12px 12px 0 0;
    }

    #wpts-main-panel {
        border-radius: 0 0 12px 12px;
    }
}

/* Narrow desktops: no room to the right of the card, so pin the popup to the card's right edge */
@media (min-width: 1025px) and (max-width: 1240px) {
    .no-slots-msg {
        left: auto;
        right: 16px;
    }
}

/* Thank-you screen: the meeting link is created after this screen and sent by email, so its row is hidden. */
#wpts-step-4-confirmation div:has(> .wpts-meeting-link) {
    display: none !important;
}

/* Picked slot + Confirm button (details are collected first, so Confirm books straight away) */
.wpts-time-slot.wpts-slot-picked { background-color: var(--wpts-color-primary); color: #ffffff; }

/* Confirm pop-up */
.wpts-cm{position:fixed;inset:0;z-index:2147483647;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;padding:16px;box-sizing:border-box}
.wpts-cm[hidden]{display:none}
.wpts-cm-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(3px);opacity:0;transition:opacity .2s ease}
.wpts-cm-card{position:relative;box-sizing:border-box;width:100%;max-width:380px;background:#fff;border-radius:22px;padding:28px 24px 22px;text-align:center;box-shadow:0 24px 60px -18px rgba(0,40,120,.45);transform:translateY(14px) scale(.92);opacity:0;transition:transform .25s cubic-bezier(.2,1.4,.4,1),opacity .2s ease}
.wpts-cm.is-open .wpts-cm-backdrop{opacity:1}
.wpts-cm.is-open .wpts-cm-card{transform:none;opacity:1}
.wpts-cm-emoji{width:64px;height:64px;margin:0 auto 10px;display:grid;place-items:center;font-size:32px;border-radius:50%;background:linear-gradient(135deg,#e8f1ff,#fff6d6);animation:wpts-cm-bob 1.6s ease-in-out infinite}
.wpts-cm-card h3{margin:0 0 8px;font-size:21px;font-weight:700;color:#0f172a}
.wpts-cm-when{margin:0 0 6px;font-size:15px;line-height:1.5;color:#1e293b}
.wpts-cm-when strong{color:var(--wpts-color-primary)}
.wpts-cm-meta{margin:0 0 20px;font-size:13px;color:#64748b}
.wpts-cm-actions{display:flex;gap:10px}
.wpts-cm-actions>*{flex:1;margin:0;padding:12px 14px;border-radius:12px;font-size:14px;font-weight:600;cursor:pointer}
.wpts-cm-no{background:#f1f5f9;color:#334155;border:0;transition:background .2s}
.wpts-cm-no:hover{background:#e2e8f0}
@keyframes wpts-cm-bob{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-5px) rotate(4deg)}}
@media (prefers-reduced-motion:reduce){.wpts-cm-emoji{animation:none}.wpts-cm-card{transition:none}}
@media (max-width:420px){.wpts-cm-actions{flex-direction:column-reverse}}

/* First step heading sizes (ids beat the template's inline styles) */
#wpts-step-0-contact .wpts-step-title { font-size: 26px; margin-bottom: 6px; }
#wpts-step-0-contact .wpts-step-subtitle { font-size: 15px; font-weight: 500; line-height: 1.5; color: #64748b; margin: 0 auto 26px; max-width: 420px; }
@media (max-width: 600px) {
    #wpts-step-0-contact .wpts-step-title { font-size: 22px; }
    #wpts-step-0-contact .wpts-step-subtitle { font-size: 14px; margin-bottom: 20px; }
}

/* Confirm pop-up sizing */
.wpts-cm .wpts-cm-card { max-width: 420px; padding: 26px 24px 22px; }
.wpts-cm .wpts-cm-card h3 { font-size: 20px; }
.wpts-cm .wpts-cm-meta { font-size: 13px; line-height: 1.5; }
.wpts-cm .wpts-cm-actions > .wpts-cm-no,
.wpts-cm .wpts-cm-actions > .wpts-button { flex: 1 1 0; min-width: 0; padding: 12px 10px; font-size: 15px; line-height: 1.2; white-space: nowrap; border-radius: 12px; transform: none; }
.wpts-cm .wpts-cm-actions > .wpts-button:hover { transform: translateY(-1px); }

/* =========================================================
   Mobile booking UX (<= 600px)
   ========================================================= */
.wpts-mbar, .wpts-more-btn { display: none; }
@media (max-width: 600px) {
    #wpts-scheduler { border-radius: 16px; overflow: clip; }
    .wpts-hyper-modern-wrapper { overflow-x: clip !important; overflow-y: visible !important; } /* overflow:hidden would break the sticky step bar */

    /* 1. Compact info panel: logo + title in one row, welcome text behind "More details" */
    #wpts-scheduler #wpts-info-panel { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; text-align: left; padding: 16px 16px 14px; }
    #wpts-info-panel .wpts-back-button-container { display: none; }
    #wpts-info-panel .wpts-logo-container { margin: 0; }
    #wpts-info-panel .wpts-logo-container img { width: 44px; height: 44px; }
    #wpts-info-panel #wpts-info-static { display: contents; }
    #wpts-info-panel #wpts-info-static h1 { grid-column: 2; margin: 0; font-size: 13px; font-weight: 500; color: #64748b; text-align: left; }
    #wpts-info-panel #wpts-info-static h2 { grid-column: 2; margin: 2px 0 0; font-size: 17px; line-height: 1.3; text-align: left; }
    #wpts-info-panel .wpts-info-item { grid-column: 1 / -1; margin: 10px 0 0; font-size: 13px; gap: 8px; }
    #wpts-info-panel .wpts-info-item + .wpts-info-item { margin-top: 6px; }
    #wpts-info-panel .wpts-info-item svg { width: 16px; height: 16px; }
    #wpts-info-panel .wpts-info-description { grid-column: 1 / -1; display: none; margin: 10px 0 0; font-size: 13px; line-height: 1.55; }
    #wpts-info-panel.is-expanded .wpts-info-description { display: block; }
    #wpts-info-panel .wpts-more-btn { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 4px; margin: 10px 0 0; padding: 6px 0; min-height: 32px; background: none; border: 0; color: var(--wpts-color-primary); font-size: 13px; font-weight: 600; cursor: pointer; }
    #wpts-info-panel .wpts-more-btn svg { width: 14px; height: 14px; transition: transform .2s; }
    #wpts-info-panel.is-expanded .wpts-more-btn svg { transform: rotate(180deg); }

    /* 2. Sticky step bar with back button + progress */
    .wpts-mbar { margin: -20px -12px 0; position: sticky; top: 76px; z-index: 5; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--wpts-border-color); }
    .wpts-mbar.is-hidden { display: none; }
    .wpts-mbar-back { display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f1f5f9; color: #0f172a; cursor: pointer; }
    .wpts-mbar-back[hidden] { display: none; }
    .wpts-mbar-label { font-size: 13px; font-weight: 600; color: #334155; }
    .wpts-mbar-dots { margin-left: auto; display: flex; gap: 6px; }
    .wpts-mbar-dots i { width: 22px; height: 4px; border-radius: 4px; background: #e2e8f0; }
    .wpts-mbar-dots i.on { background: var(--wpts-color-primary); }

    #wpts-step-0-contact { padding-top: 18px; }
    #wpts-step-0-contact .wpts-step-title { font-size: 20px; }
    #wpts-step-0-contact .wpts-step-subtitle { margin-bottom: 18px; }

    /* 3. Inputs: 16px stops iOS zoom, 48px touch targets */
    #wpts-booking-form input[type="text"], #wpts-booking-form input[type="email"], #wpts-booking-form textarea, #wpts-step-2-datetime select { font-size: 16px; min-height: 48px; }
    #wpts-booking-form textarea { min-height: 96px; }
    #wpts-booking-form .wpts-form-group { margin-bottom: 16px; }
    #wpts-booking-form label { font-size: 14px; }
    .wpts-add-guests-btn { min-height: 40px; }
    #wpts-booking-form button[type="submit"] { min-height: 52px; font-size: 16px; }

    /* 4. Calendar + slots */
    .wpts-day { width: 40px; height: 40px; }
    #wpts-time-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    #wpts-time-slots .wpts-time-slot { margin: 0; min-height: 48px; font-size: 15px; }
    #wpts-time-slots > p, #wpts-time-slots > .wpts-spinner { grid-column: 1 / -1; }

    /* 5. Confirm = bottom sheet */
    .wpts-cm { place-items: end center; padding: 0; }
    .wpts-cm .wpts-cm-card { max-width: none; border-radius: 22px 22px 0 0; padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); }
    .wpts-cm .wpts-cm-card::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 4px; background: #cbd5e1; }
    .wpts-cm.is-open .wpts-cm-card { transform: none; }
    .wpts-cm .wpts-cm-actions > .wpts-cm-no, .wpts-cm .wpts-cm-actions > .wpts-button { min-height: 50px; font-size: 16px; }

    /* 6. Keep floating chat / WhatsApp buttons from covering the booking steps */
    body.wpts-booking #whatsapp-icon, body.wpts-booking #robot-launcher-group { display: none !important; }
}

/* Booking spinner + scroll lock (all sizes) */
.wpts-cm-spin{display:inline-block;width:16px;height:16px;margin-right:8px;vertical-align:-3px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:wpts-cm-spin .7s linear infinite}
@keyframes wpts-cm-spin{to{transform:rotate(360deg)}}
.wpts-cm-no:disabled{opacity:.5;cursor:not-allowed}
body.wpts-cm-lock{overflow:hidden}

/* Mobile refinements (Arena review) */
@media (max-width: 600px) {
    /* focused fields never hide under the sticky header + step bar */
    #wpts-booking-form input, #wpts-booking-form textarea, #wpts-booking-form select { scroll-margin-top: 140px; }
    #wpts-booking-form textarea { max-height: 160px; line-height: 1.4; }
    .wpts-add-guests-btn { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

    /* styled upload box instead of the raw OS file button */
    #wpts-booking-form input[type="file"] { min-height: 52px; padding: 10px 12px !important; border: 1.5px dashed #94a3b8 !important; border-radius: 12px !important; background: #f8fafc !important; font-size: 14px; color: #475569; }
    #wpts-booking-form input[type="file"]::file-selector-button { margin-right: 10px; padding: 8px 14px; border: 0; border-radius: 8px; background: #eef5ff; color: #0069ff; font-weight: 600; font-size: 14px; }

    /* calendar: clear available days, bigger month arrows */
    #wpts-prev-month, #wpts-next-month { width: 44px; height: 44px; }
    .wpts-day.wpts-available:not(.wpts-selected) { background: #eef5ff; color: #0069ff; font-weight: 600; }

    /* "no slots" messages as a card */
    #wpts-time-slots .no-slots-msg { grid-column: 1 / -1; margin: 0; padding: 20px 16px; text-align: center; font-size: 14px; line-height: 1.5; color: #475569; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; }

    /* after step 1, shrink the info panel to a one-line summary so the calendar starts higher */
    #wpts-scheduler[data-step="wpts-step-1-event-type"] #wpts-info-panel,
    #wpts-scheduler[data-step="wpts-step-2-datetime"] #wpts-info-panel { padding: 10px 16px; grid-template-columns: 32px 1fr; }
    #wpts-scheduler[data-step="wpts-step-1-event-type"] #wpts-info-panel .wpts-logo-container img,
    #wpts-scheduler[data-step="wpts-step-2-datetime"] #wpts-info-panel .wpts-logo-container img { width: 32px; height: 32px; }
    #wpts-scheduler[data-step="wpts-step-1-event-type"] #wpts-info-panel :is(h1, .wpts-info-item, .wpts-more-btn, .wpts-info-description),
    #wpts-scheduler[data-step="wpts-step-2-datetime"] #wpts-info-panel :is(h1, .wpts-info-item, .wpts-more-btn, .wpts-info-description) { display: none; }
    #wpts-scheduler[data-step="wpts-step-1-event-type"] #wpts-info-panel h2,
    #wpts-scheduler[data-step="wpts-step-2-datetime"] #wpts-info-panel h2 { grid-row: 1; margin: 0; font-size: 15px; }
}

/* Left column content (v6) */
#wpts-info-panel .wpts-info-description { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--wpts-border-color, #e5e7eb); }
.wpts-info-block { margin-bottom: 18px; }
.wpts-info-block h4 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wpts-text-dark, #111827); }
.wpts-info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wpts-info-list li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.45; color: var(--wpts-text-medium, #4b5563); }
.wpts-info-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff4d6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23e6a700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.wpts-info-steps { list-style: none; margin: 0; padding: 0; counter-reset: wstep; display: grid; gap: 10px; }
.wpts-info-steps li { counter-increment: wstep; position: relative; padding-left: 36px; display: flex; flex-direction: column; gap: 2px; }
.wpts-info-steps li::before { content: counter(wstep); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--wpts-color-primary, #0069ff); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.wpts-info-steps b { font-size: 14px; color: var(--wpts-text-dark, #111827); }
.wpts-info-steps span { font-size: 13px; line-height: 1.45; color: var(--wpts-text-medium, #4b5563); }
.wpts-info-note { margin: 0 0 8px; font-size: 13px; line-height: 1.55; color: var(--wpts-text-medium, #6b7280); }
@media (max-width: 600px) { #wpts-info-panel .wpts-info-description { margin-top: 10px; padding-top: 14px; } }

/* ===== WiseBI theme colours (replaces the default blue) — 2026-11-24 =====
   Deep gold for text/borders (readable on white), site gold gradient + dark text for solid buttons/selections.
   ID-level selectors so they win over the template's inline :root vars. */
#wpts-scheduler, .wpts-cm {
    --wpts-color-primary: #9A6B02;
    --wpts-color-primary-dark: #7A5402;
    --wpts-color-primary-light: #FFF4D6;
}
#wpts-scheduler .wpts-button,
.wpts-cm .wpts-cm-actions > .wpts-button,
#wpts-scheduler .wpts-day.wpts-selected,
#wpts-scheduler .wpts-time-slot:hover,
#wpts-scheduler .wpts-time-slot.wpts-slot-picked,
#wpts-scheduler .wpts-popular-tag {
    background: linear-gradient(135deg, #F8B204, #EAB308);
    color: #1a1200;
    border-color: #D99B08;
}
#wpts-scheduler .wpts-button:hover,
.wpts-cm .wpts-cm-actions > .wpts-button:hover {
    background: linear-gradient(135deg, #EAB308, #F8B204);
    box-shadow: 0 10px 22px -8px rgba(248, 178, 4, .65);
}
#wpts-scheduler .wpts-button:disabled { background: #F3E3B5; color: #7A6A44; box-shadow: none; }
#wpts-scheduler .wpts-day.wpts-available:not(.wpts-selected) { background: #FFF4D6; color: #7A5402; }
#wpts-scheduler .wpts-day.wpts-available:hover { background: #FDE7A8; color: #5C3F00; }
#wpts-scheduler .wpts-mbar-dots i.on { background: #F8B204; }
#wpts-scheduler input[type="file"]::file-selector-button { background: #FFF4D6; color: #7A5402; }
#wpts-scheduler input:focus, #wpts-scheduler textarea:focus, #wpts-scheduler select:focus {
    border-color: #F8B204;
    box-shadow: 0 0 0 3px rgba(248, 178, 4, .22);
}
#wpts-info-panel .wpts-info-description p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--wpts-text-medium, #4b5563); }
#wpts-info-panel .wpts-info-description p:last-child { margin-bottom: 0; font-weight: 600; color: var(--wpts-text-dark, #1a1a1a); }
#wpts-info-panel .wpts-info-mail { color: #9A6B02; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
#wpts-info-panel .wpts-info-mail:hover { color: #7A5402; }

/* ===== One-line step headings (2026-11-26) =====
   Size = space available / the width of this site's longest title (measured per 1px of font), so it stays on one
   line at any screen width. 100cqi = width of the step's content box. */
#wpts-scheduler :is(#wpts-step-0-contact, #wpts-step-1-event-type) { container-type: inline-size; }
#wpts-scheduler :is(#wpts-step-0-contact, #wpts-step-1-event-type) .wpts-step-title {
    white-space: nowrap;
    font-size: min(26px, calc((100cqi - 2px) / 14.9)) !important;
}
@media (max-width: 768px) {
    #wpts-scheduler :is(#wpts-step-0-contact, #wpts-step-1-event-type) .wpts-step-title {
        font-size: min(22px, calc((100cqi - 2px) / 14.9)) !important;
    }
}
