/* ==========================================================================
 * Headless Calendly Multistep Widget — Styles
 * ========================================================================== */

/* ─── Wrapper ─── */
.rl-hcm-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ─── Card ─── */
.rl-hcm-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    position: relative;
}

/* ─── Profile Header ─── */
.rl-hcm-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    border-bottom: 1px solid #f1f5f9;
}
.rl-hcm-profile-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.rl-hcm-profile-eyebrow {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}
.rl-hcm-profile-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
}
.rl-hcm-profile-details {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rl-hcm-profile-details svg { color: #94a3b8; }

/* ─── Progress Bar ─── */
.rl-hcm-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 32px;
    border-bottom: 1px solid #f1f5f9;
}
.rl-hcm-skip-calendar .rl-hcm-progress {
    display: none !important;
}
.rl-hcm-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.45;
    transition: opacity 0.3s;
}
.rl-hcm-progress-step.is-active,
.rl-hcm-progress-step.is-complete {
    opacity: 1;
}
.rl-hcm-progress-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.3s, color 0.3s;
    flex-shrink: 0;
}
.rl-hcm-progress-step.is-active .rl-hcm-progress-dot {
    background: #48054c;
    color: #fff;
}
.rl-hcm-progress-step.is-complete .rl-hcm-progress-dot {
    background: #48054c;
    color: #fff;
}
.rl-hcm-progress-label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}
.rl-hcm-progress-line {
    flex: 1;
    height: 2px;
    min-width: 16px;
    background: #e2e8f0;
    margin: 0 4px;
    border-radius: 1px;
    transition: background 0.3s;
}
.rl-hcm-progress-line.is-filled {
    background: #48054c;
}

/* ─── Steps: Base ─── */
.rl-hcm-step {
    display: none !important;
    flex-direction: column;
    animation: rlHcmFadeIn 0.3s ease;
}
/* 
 * ATOMIC FLEX ORDER SYSTEM
 * We make active steps 'display: contents' so their headers, bodies, and footers 
 * become direct siblings of the card along with the Step 1 form (portal-host).
 */
.rl-hcm-card {
    display: flex !important;
    flex-direction: column !important;
}

.rl-hcm-progress {
    order: -30 !important;
}

.rl-hcm-step.is-active,
.rl-hcm-step.is-portal-host {
    display: contents !important;
}

/* Pin header to the top (below progress) */
.rl-hcm-step-header {
    order: -20 !important;
}

/* 
 * Form container (GF fields) and step bodies.
 * Form wrapper is order 0, bodies are order 5 to stay below.
 */
.rl-hcm-form-container,
.gform_wrapper {
    order: 0 !important;
}

.rl-hcm-step-body {
    order: 5 !important;
}

/* Specific body for calendar logic */
.rl-hcm-calendar-shell {
    order: 6 !important;
}

/* Footer (buttons) at the bottom */
.rl-hcm-step-footer {
    order: 20 !important;
}

/* Hide Step 1's non-form UI when it's just a host for Step 4 */
.rl-hcm-step.is-portal-host .rl-hcm-step-body > *:not(.rl-hcm-form-container),
.rl-hcm-step.is-portal-host .rl-hcm-step-footer {
    display: none !important;
}

/* 
 * CRITICAL: When Step 1 is a portal host, we must hide its own fields 
 * so they don't show up as ghosts in Step 4.
 */
.rl-hcm-step.is-portal-host .gform_wrapper .gform_fields > .gfield:not(.rl-hcm-ported-field) {
    display: none !important;
}

/* Hide Step 4 fields by default (in case they are inside the form in Step 1) */
.rl-hcm-step4-fields-container {
    display: none !important;
}

/* ONLY show Step 4 fields when we are actually on Step 4 */
.rl-hcm-step[data-step="4"] .rl-hcm-step4-fields-container {
    display: block !important;
}

/* Ensure the form container itself has no layout interference */
.rl-hcm-step.is-portal-host .rl-hcm-form-container {
    padding: 0 !important;
    margin: 0 !important;
}

@keyframes rlHcmFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rl-hcm-step-header {
    padding: 16px 32px 0;
}
.rl-hcm-step-body {
    padding: 24px 32px;
}
.rl-hcm-step-footer {
    padding: 0 32px 28px;
}

/* ─── Back Button ─── */
.rl-hcm-wrapper .rl-hcm-btn-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: none !important;
    border: none !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 6px 0 !important;
    transition: color 0.2s !important;
}
.rl-hcm-wrapper .rl-hcm-btn-back:hover {
    color: #0f172a !important;
}

/* ─── Next /* Navigation Buttons */
.rl-hcm-btn-next.is-loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
    position: relative !important;
}

.rl-hcm-btn-next.is-loading span {
    visibility: hidden !important;
}

.rl-hcm-btn-next.is-loading::after {
    content: "" !important;
    position: absolute !important;
    width: 20px !important;
    height: 20px !important;
    top: 50% !important;
    left: 50% !important;
    margin: -10px 0 0 -10px !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: rl-hcm-spin 0.6s linear infinite !important;
}

@keyframes rl-hcm-spin {
    to { transform: rotate(360deg); }
}

/* ─── Next / Confirm Buttons ─── */
.rl-hcm-wrapper .rl-hcm-btn-next,
.rl-hcm-wrapper .rl-hcm-btn-confirm {
    width: 100% !important;
    padding: 16px !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: background 0.2s, opacity 0.2s, transform 0.15s !important;
    color: #fff !important;
    background-color: #48054c !important;
}
.rl-hcm-wrapper .rl-hcm-btn-next:hover,
.rl-hcm-wrapper .rl-hcm-btn-confirm:hover:not(:disabled) {
    background-color: #320335 !important;
}
.rl-hcm-wrapper .rl-hcm-btn-next svg,
.rl-hcm-wrapper .rl-hcm-btn-confirm svg {
    transition: transform 0.2s ease !important;
}
.rl-hcm-wrapper .rl-hcm-btn-next:hover svg {
    transform: translateX(4px) !important;
}

.rl-hcm-wrapper .rl-hcm-btn-next:disabled,
.rl-hcm-wrapper .rl-hcm-btn-confirm:disabled {
    background-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* ─── Form Container (GF overrides inside multistep) ─── */
.rl-hcm-form-container .gform_wrapper {
    margin: 0 !important;
}
.rl-hcm-form-container .gform_heading { display: none !important; }
.rl-hcm-form-container .gform_wrapper .gform_footer { display: none !important; }

/* Labels */
.rl-hcm-form-container .gform_wrapper .gfield_label {
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    color: #0f172a !important;
    letter-spacing: 0 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Inputs & Selects */
.rl-hcm-form-container .gform_wrapper input[type="text"],
.rl-hcm-form-container .gform_wrapper input[type="email"],
.rl-hcm-form-container .gform_wrapper input[type="tel"],
.rl-hcm-form-container .gform_wrapper textarea {
    background: #f8fafc !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    padding: 16px !important;
    font-size: 15px !important;
    color: #1a1a1a !important;
    width: 100% !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.rl-hcm-form-container .gform_wrapper select {
    background: #f8fafc !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    padding: 0 16px !important;
    height: 54px !important;
    font-size: 15px !important;
    color: #1a1a1a !important;
    width: 100% !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
}
.rl-hcm-form-container .gform_wrapper input::placeholder {
    color: #94a3b8 !important;
}
.rl-hcm-form-container .gform_wrapper input:focus,
.rl-hcm-form-container .gform_wrapper select:focus {
    background: #fff !important;
    border-color: #48054c !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(72, 5, 76, 0.1) !important;
}

/* ─── Step 4 Specific Cleaning ─── */
.rl-hcm-step4-fields-container .gform_wrapper fieldset,
.rl-hcm-step4-fields-container .gform_wrapper .gfield_html,
.rl-hcm-step4-fields-container .gform_wrapper .gsection {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.rl-hcm-step4-fields-container .gform_wrapper legend,
.rl-hcm-step4-fields-container .gform_wrapper .gsection_title {
    display: none !important;
}

.rl-hcm-step4-fields-container .gform_wrapper .ginput_container_checkbox {
    margin-top: 10px !important;
}

.rl-hcm-step4-fields-container .gform_wrapper .gfield_label {
    margin-top: 15px !important;
}

/* Hide Step 4 container by default (it gets moved into the form tag via JS) */
.rl-hcm-step4-fields-container {
    display: none !important;
}

/* Show it only when the parent step is active */
.rl-hcm-step.is-active .rl-hcm-step4-fields-container {
    display: block !important;
}

/* ─── Validation Errors ─── */
.rl-hcm-form-container .gfield_error input,
.rl-hcm-form-container .gfield_error select,
.rl-hcm-form-container .gfield_error textarea {
    border-color: #ef4444 !important;
    border-width: 1.5px !important;
    background-color: #fffafb !important;
}

.rl-hcm-form-container .gfield_error .gfield_label {
    color: #ef4444 !important;
}

@keyframes rl-hcm-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.rl-hcm-form-container .gfield_error {
    animation: rl-hcm-shake 0.2s ease-in-out 0s 2;
}

/* Radio Buttons */
.rl-hcm-form-container .gform_wrapper .gfield_radio {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.rl-hcm-form-container .gform_wrapper .gfield_radio li {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
.rl-hcm-form-container .gform_wrapper .gfield_radio input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 50% !important;
    margin: 0 !important;
    cursor: pointer !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    flex-shrink: 0 !important;
}
.rl-hcm-form-container .gform_wrapper .gfield_radio input[type="radio"]:checked {
    border-color: #48054c !important;
}
.rl-hcm-form-container .gform_wrapper .gfield_radio input[type="radio"]:checked::after {
    content: '' !important;
    width: 10px !important;
    height: 10px !important;
    background: #48054c !important;
    border-radius: 50% !important;
    position: absolute !important;
}
.rl-hcm-form-container .gform_wrapper .gfield_radio label {
    cursor: pointer !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    max-width: none !important;
}

/* ─── Calendar (Step 2) — Re-uses .rl-hc-* classes ─── */
.rl-hcm-calendar-shell {
    padding-bottom: 8px;
}

.rl-hcm-calendar-shell .rl-hc-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.rl-hcm-calendar-shell .rl-hc-month-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}
.rl-hcm-calendar-shell .rl-hc-month-nav {
    display: flex;
    gap: 8px;
}
.rl-hcm-calendar-shell .rl-hc-prev-month,
.rl-hcm-calendar-shell .rl-hc-next-month {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    padding: 0;
    transition: all 0.2s;
}
.rl-hcm-calendar-shell .rl-hc-prev-month:hover:not(:disabled),
.rl-hcm-calendar-shell .rl-hc-next-month:hover:not(:disabled) {
    background: #f1f5f9;
    color: #0f172a;
}
.rl-hcm-calendar-shell .rl-hc-prev-month:disabled,
.rl-hcm-calendar-shell .rl-hc-next-month:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Days Header */
.rl-hcm-calendar-shell .rl-hc-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    justify-items: center;
    margin-bottom: 12px;
}
.rl-hcm-calendar-shell .rl-hc-days-header span {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}

/* Dates Grid */
.rl-hcm-calendar-shell .rl-hc-dates-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    justify-items: center;
    transition: opacity 0.3s;
}
.rl-hcm-calendar-shell .rl-hc-dates-grid.is-loading {
    opacity: 0.5;
    pointer-events: none;
}
.rl-hcm-calendar-shell .rl-hc-date-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    color: #333;
}
.rl-hcm-calendar-shell .rl-hc-date-btn.is-disabled {
    color: #cbd5e1;
    cursor: default;
}
.rl-hcm-calendar-shell .rl-hc-date-btn.has-availability {
    color: #0f172a;
    font-weight: 600;
}
.rl-hcm-calendar-shell .rl-hc-date-btn.has-availability:hover {
    background: #f1f5f9;
}
.rl-hcm-calendar-shell .rl-hc-date-btn.is-active {
    background: #48054c !important;
    color: #fff !important;
}
.rl-hcm-calendar-shell .rl-hc-empty-slot {
    width: 38px;
    height: 38px;
}

/* ─── Time Slots (Step 3) ─── */
.rl-hcm-times-heading {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 20px;
}

.rl-hcm-times-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Scrollbar */
.rl-hcm-times-list::-webkit-scrollbar { width: 5px; }
.rl-hcm-times-list::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.rl-hcm-times-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.rl-hcm-times-list::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.rl-hcm-times-list .rl-hc-time-btn {
    background: #fff;
    border: 1px solid #edbfe8;
    color: #48054c;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}
.rl-hcm-times-list .rl-hc-time-btn:hover {
    border-color: #48054c;
    background: #fae5f7;
}
.rl-hcm-times-list .rl-hc-time-btn.is-selected {
    background: #48054c !important;
    border-color: #48054c !important;
    color: #fff !important;
}

/* ─── Card Footer ─── */
.rl-hcm-card-footer {
    display: flex;
    justify-content: center;
    gap: 28px;
    align-items: center;
    padding: 20px 32px;
    border-top: 1px solid #f1f5f9;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}
.rl-hcm-footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rl-hcm-footer-item svg { color: #cbd5e1; }

/* ─── Security Note ─── */
.rl-hcm-security-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 480px;
    width: 100%;
    padding: 20px 24px;
    margin-top: 20px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    box-sizing: border-box;
}
.rl-hcm-security-note svg { min-width: 20px; margin-top: 2px; }
.rl-hcm-security-note p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ─── Loading skeleton ─── */
.rl-hcm-calendar-shell .rl-hc-loading-skeleton {
    text-align: center;
    color: #94a3b8;
    padding: 48px 0;
    font-size: 14px;
}

/* ─── Responsive ─── */
@media (max-width: 520px) {
    .rl-hcm-card {
        border-radius: 12px;
    }
    .rl-hcm-profile-header,
    .rl-hcm-progress,
    .rl-hcm-step-body,
    .rl-hcm-step-footer,
    .rl-hcm-step-header,
    .rl-hcm-card-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    .rl-hcm-progress-label {
        display: none;
    }
    .rl-hcm-card-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* ─── Thank You Step (Step 4) ─── */
.rl-hcm-thankyou {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 32px;
    min-height: 280px;
}
.rl-hcm-thankyou-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #48054c, #7c1a82);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: rlHcmPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.rl-hcm-thankyou-icon svg {
    color: #fff;
    stroke: #fff;
}
.rl-hcm-thankyou-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
}
.rl-hcm-thankyou-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    max-width: 340px;
}

@keyframes rlHcmPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ─── Guest Repeater UI ─── */
.rl-hcm-guest-repeater {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 16px 0 !important;
    width: 100% !important;
    font-family: inherit !important;
}

.rl-hcm-guest-inputs {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.rl-hcm-guest-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    animation: rlHcmFadeIn 0.2s ease;
}

.rl-hcm-guest-input {
    flex: 1 !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 10px 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    font-size: 14px !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

.rl-hcm-guest-input:focus {
    background: #fff !important;
    border-color: #48054c !important;
    box-shadow: 0 0 0 3px rgba(72, 5, 76, 0.1) !important;
}

/* Reset theme/Elementor button styles for repeater buttons */
button.rl-hcm-guest-remove-btn,
button.rl-hcm-guest-add-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: normal !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    font-family: inherit !important;
}

button.rl-hcm-guest-remove-btn {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 20px !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

button.rl-hcm-guest-remove-btn:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

button.rl-hcm-guest-add-btn {
    align-self: flex-start !important;
    background: transparent !important;
    color: #48054c !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 4px 0 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

button.rl-hcm-guest-add-btn:hover {
    color: white !important;
	background: #F97315 !important;
    text-decoration: underline !important;
    transform: translateX(2px) !important;
}

/* ─── Naked Skin Overrides ─── */
.rl-hcm-skin-naked .rl-hcm-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    max-width: none !important;
    overflow: visible !important;
}

.rl-hcm-skin-naked .rl-hcm-profile-header {
    display: none !important;
}

/* Show timezone at top for Naked Skin */
.rl-hcm-skin-naked .rl-hcm-card-footer {
    display: flex !important;
    position: absolute !important;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100% !important;
    border: none !important;
    padding: 0 !important;
    justify-content: center !important;
    background: transparent !important;
    pointer-events: none;
    z-index: 5;
}

.rl-hcm-skin-naked .rl-hcm-footer-item:not(:has(.rl-hcm-dynamic-tz)) {
    display: none !important;
}

.rl-hcm-skin-naked .rl-hcm-dynamic-tz {
    pointer-events: auto;
}

.rl-hcm-skin-naked .rl-hcm-progress {
    padding: 0 0 32px 0 !important;
    justify-content: flex-start !important;
    border-bottom: none !important;
}

.rl-hcm-skin-naked .rl-hcm-step-header,
.rl-hcm-skin-naked .rl-hcm-step-body,
.rl-hcm-skin-naked .rl-hcm-step-footer {
    padding: 0 !important;
}

.rl-hcm-skin-naked .rl-hcm-step-header h2 {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin-bottom: 24px !important;
}

.rl-hcm-skin-naked .rl-hcm-btn-back {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

.rl-hcm-skin-naked .rl-hcm-btn-back:hover {
    color: #1e293b !important;
}

.rl-hcm-skin-naked .rl-hcm-btn-back svg {
    width: 14px !important;
    height: 14px !important;
}

/* Naked Form Fields */
.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper .gfield_label {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 12px !important;
}

.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper input[type="text"],
.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper input[type="email"],
.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper input[type="tel"],
.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper textarea,
.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper select {
    background: #f0f7ff !important; /* Reference light blue */
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 14px 16px !important;
    font-size: 16px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper input:focus,
.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper select:focus {
    background: #fff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Naked Radios */
.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper .gfield_radio input[type="radio"] {
    border-color: #cbd5e1 !important;
}
.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper .gfield_radio input[type="radio"]:checked {
    border-color: #2563eb !important;
}
.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper .gfield_radio input[type="radio"]:checked::after {
    background: #2563eb !important;
}

/* Naked Button (Green) */
.rl-hcm-skin-naked .rl-hcm-btn-next,
.rl-hcm-skin-naked .rl-hcm-btn-confirm {
    background-color: #6ab539 !important; /* Reference Green */
    border-radius: 6px !important;
    padding: 14px 24px !important;
    width: auto !important;
    align-self: flex-start;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.rl-hcm-skin-naked .rl-hcm-btn-next:hover,
.rl-hcm-skin-naked .rl-hcm-btn-confirm:hover {
    background-color: #5aa12e !important;
    transform: translateY(-1px);
}

/* Naked Guest Repeater */
.rl-hcm-skin-naked .rl-hcm-guest-repeater {
    margin: 24px 0 !important;
}

.rl-hcm-skin-naked .rl-hcm-guest-row {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    animation: rl-hcm-fadeIn 0.3s ease-out !important;
}

.rl-hcm-skin-naked .rl-hcm-guest-input {
    background: #f0f7ff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    height: 48px !important;
    font-size: 15px !important;
}

.rl-hcm-skin-naked .rl-hcm-guest-remove-btn {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border: none !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 6px !important;
    font-size: 20px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.rl-hcm-skin-naked .rl-hcm-guest-remove-btn:hover {
    background: #fecaca !important;
    color: #dc2626 !important;
}

.rl-hcm-skin-naked .rl-hcm-guest-add-btn {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    margin: 12px 0 4px 0 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.rl-hcm-skin-naked .rl-hcm-guest-add-btn:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.rl-hcm-skin-naked .rl-hcm-guest-add-btn svg {
    stroke: currentColor !important;
    stroke-width: 3.5px !important;
}

.rl-hcm-skin-naked .rl-hcm-guest-add-btn svg {
    stroke-width: 3px !important;
}

/* Response Text */
.rl-hcm-skin-naked .rl-hcm-thankyou-title {
    font-size: 28px !important;
    font-weight: 800 !important;
}

.rl-hcm-skin-naked .rl-hcm-security-note {
    background: transparent !important;
    border-left: 4px solid #f1f5f9 !important;
    border-radius: 0 !important;
    padding: 8px 0 8px 20px !important;
}

/* ─── Step 4 Confirmation UI (All Skins) ─── */
.rl-hcm-naked-confirmation-header {
    margin-bottom: 30px;
}

.rl-hcm-confirm-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.rl-hcm-confirm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4b5563;
    font-size: 16px;
    font-weight: 600;
}

.rl-hcm-confirm-item svg {
    color: #94a3b8;
}

.rl-hcm-description-accordion {
    margin: 20px 0 30px;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
}

.rl-hcm-description-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: none !important;
    border: none !important;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    transition: background 0.2s;
    box-shadow: none !important;
}

.rl-hcm-description-toggle:hover {
    background: #f1f5f9 !important;
}

.rl-hcm-description-toggle svg {
    color: #f97316;
    transition: transform 0.2s;
}

.rl-hcm-description-accordion.is-open .rl-hcm-description-toggle svg {
    transform: rotate(180deg) !important;
}

.rl-hcm-description-content {
    display: none !important;
    padding: 0 16px 16px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
    border: none !important;
    background: none !important;
}

.rl-hcm-description-accordion.is-open .rl-hcm-description-content {
    display: block !important;
}

.rl-hcm-step-title-naked {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 20px 0 20px;
}

/* Naked Form Labels tweaks */
.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper .gfield_label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 8px !important;
}

/* Naked Inputs tweaks (Naked only) */
.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper input[type="text"],
.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper input[type="email"],
.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper input[type="tel"],
.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper textarea,
.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper select,
.rl-hcm-skin-naked .rl-hcm-guest-input {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    box-shadow: none !important;
}

.rl-hcm-skin-naked .rl-hcm-form-container .gform_wrapper input:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
}

/* Buttons (Orange for all Step 4s in this widget style) */
.rl-hcm-wrapper .rl-hcm-guest-add-btn {
    background-color: transparent !important;
    color: #f97316 !important;
    border: 1px solid #f97316 !important;
    border-radius: 30px !important;
    padding: 10px 24px !important;
    width: 100% !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.rl-hcm-wrapper .rl-hcm-btn-confirm {
    background-color: #f97316 !important;
    color: #fff !important;
    border-radius: 30px !important;
    width: 100% !important;
    padding: 16px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-top: 20px !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.rl-hcm-wrapper .rl-hcm-btn-confirm:hover {
    background-color: #ea580c !important;
}

.rl-hcm-wrapper .rl-hcm-booking-policy-note {
    font-size: 14px !important;
    color: #64748b !important;
    text-align: center !important;
    margin-top: 24px !important;
}

.rl-hcm-wrapper .rl-hcm-booking-policy-note a {
    color: #f97316 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* ─── Naked Calendar Overrides ─── */
.rl-hcm-skin-naked .rl-hcm-calendar-shell {
    padding-top: 60px; /* Space for top TZ */
}

/* Step 4 Header - Removed in favor of Ref-2 header */
.rl-hcm-skin-naked .rl-hcm-step[data-step="4"] .rl-hcm-step-body::before {
    display: none !important;
}

.rl-hcm-skin-naked .rl-hc-month-header {
    justify-content: center !important;
    gap: 40px;
    margin-bottom: 30px !important;
}

.rl-hcm-skin-naked .rl-hc-month-title {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    order: 2;
}

.rl-hcm-skin-naked .rl-hc-prev-month { order: 1; }
.rl-hcm-skin-naked .rl-hc-next-month { order: 3; }

.rl-hcm-skin-naked .rl-hc-days-header {
    margin-bottom: 20px !important;
}

.rl-hcm-skin-naked .rl-hc-days-header span {
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.rl-hcm-skin-naked .rl-hc-dates-grid {
    gap: 8px 4px !important;
}

.rl-hcm-skin-naked .rl-hc-date-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 16px !important;
    color: #4b5563 !important;
}

.rl-hcm-skin-naked .rl-hc-date-btn.is-disabled {
    color: #d1d5db !important;
}

/* Available Dates Style */
.rl-hcm-skin-naked .rl-hc-date-btn.has-availability {
    background-color: #fff7ed !important;
    color: #f97316 !important;
    font-weight: 700 !important;
    position: relative;
}

/* The Dot - Only if .has-dot (Today) */
.rl-hcm-skin-naked .rl-hc-date-btn.has-dot span::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #f97316;
    border-radius: 50%;
}

.rl-hcm-skin-naked .rl-hc-date-btn.is-active {
    background-color: #f97316 !important;
    color: #fff !important;
}

.rl-hcm-skin-naked .rl-hc-date-btn.is-active.has-dot span::after {
    background-color: #fff !important;
}

/* Step 3 Header & TZ Badge (All Skins) */
.rl-hcm-step3-header {
    text-align: center;
    margin-bottom: 30px;
}

.rl-hcm-tz-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin: 10px 0 20px;
}

.rl-hcm-tz-badge svg {
    color: #94a3b8;
}

.rl-hcm-duration-info {
    font-size: 14px;
    color: #64748b;
    margin-top: 5px;
}

/* Timezone selector in Naked skin (Legacy/Footer) */
.rl-hcm-skin-naked .rl-hcm-dynamic-tz {
    justify-content: flex-start !important;
    font-size: 14px !important;
    color: #374151 !important;
    font-weight: 600 !important;
    margin-top: 30px;
}

.rl-hcm-skin-naked .rl-hcm-step4-note {
    display: none !important;
}

/* ─── Naked Step 3 (Time Selection) Overrides ─── */
.rl-hcm-skin-naked .rl-hcm-step[data-step="3"] .rl-hcm-step-body {
    padding-top: 60px !important; /* Space for top TZ */
}

.rl-hcm-skin-naked .rl-hcm-naked-date-header {
    text-align: center;
    margin-bottom: 40px;
}

.rl-hcm-skin-naked .rl-hcm-naked-date-header strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2d264b;
    margin-bottom: 4px;
}

.rl-hcm-skin-naked .rl-hcm-naked-date-header span {
    font-size: 16px;
    color: #4b5563;
    font-weight: 500;
}

/* MAIN "Select a Time" header - Removed in favor of JS header */
.rl-hcm-skin-naked .rl-hcm-step[data-step="3"] .rl-hcm-step-body::before {
    display: none !important;
}

/* Duration info - Removed in favor of JS header */
.rl-hcm-skin-naked .rl-hcm-step[data-step="3"] .rl-hcm-step-body::after {
    display: none !important;
}

/* Time Blocks */
.rl-hcm-skin-naked .rl-hc-time-btn {
    background: #fff !important;
    border: 1px solid #fed7aa !important; /* Light orange border */
    color: #f97316 !important; /* Bold orange text */
    border-radius: 8px !important;
    padding: 18px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

.rl-hcm-skin-naked .rl-hc-time-btn:hover {
    background: #fff7ed !important;
    border-color: #f97316 !important;
}

.rl-hcm-skin-naked .rl-hc-time-btn.is-selected {
    background: #f97316 !important;
    border-color: #f97316 !important;
    color: #fff !important;
}

/* Step 3 Back Button Circle style */
.rl-hcm-skin-naked .rl-hcm-btn-back {
    position: absolute !important;
    top: 20px;
    left: 20px;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 1.5px solid #e5e7eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    color: #f97316 !important;
    z-index: 10;
}

.rl-hcm-skin-naked .rl-hcm-btn-back:hover {
    border-color: #f97316 !important;
    background: #fff7ed !important;
}

.rl-hcm-skin-naked .rl-hcm-btn-back span {
    display: none !important; /* Hide "Back" text */
}

.rl-hcm-skin-naked .rl-hcm-btn-back svg {
    width: 20px !important;
    height: 20px !important;
    margin-right: -2px !important; /* visual center */
}

/* ────────────────────────────────────── */
/* VALIDATION ERRORS                      */
/* ────────────────────────────────────── */

/* Highlight the inputs in orange/red */
.rl-hcm-wrapper .gfield_error input,
.rl-hcm-wrapper .gfield_error select,
.rl-hcm-wrapper .gfield_error textarea {
    border-color: #f97316 !important;
    background-color: #fff7ed !important;
    box-shadow: 0 0 0 1px #f97316 !important;
}

/* Styled error message with icon */
.rl-hcm-wrapper .gfield_validation_message {
    color: #f97316 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
    padding: 0 2px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    animation: rlHcmFadeIn 0.3s ease;
}

.rl-hcm-wrapper .gfield_validation_message::before {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
}

/* Timezone display in Step 3 */
.rl-hcm-dynamic-tz {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: 12px !important;
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.rl-hcm-dynamic-tz svg {
    color: #94a3b8 !important;
    flex-shrink: 0 !important;
}

/* Timezone in Step 3 */
.rl-hcm-dynamic-tz-step3 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: 10px !important;
}

.rl-hcm-dynamic-tz-step3 svg {
    color: #94a3b8 !important;
    flex-shrink: 0 !important;
}

.rl-hcm-dynamic-tz-step3 span {
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Ensure centering for standard skin date label if needed */
.rl-hcm-date-label {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
}

/* ────────────────────────────────────── */
/* REFINED STEP 3 & 4 HEADERS             */
/* ────────────────────────────────────── */

.rl-hcm-header-date-section {
    text-align: center;
    margin-bottom: 24px;
}

.rl-hcm-header-weekday {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #2d264b !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: -0.5px !important;
}

.rl-hcm-header-date-full {
    font-size: 18px !important;
    color: #4b5563 !important;
    margin: 0 0 20px 0 !important;
}

.rl-hcm-timezone-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rl-hcm-tz-label {
    font-size: 14px;
    font-weight: 700;
    color: #2d264b;
}

.rl-hcm-tz-selector-btn {
   	background: transparent !important;
	border: none;
	padding: 4px 8px !important;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer !important;
	color: #2d264b !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	border-radius: 6px !important;
	transition: all 0.2s ease;
}

.rl-hcm-tz-selector-btn:hover:not(:disabled) {
    background: rgba(45, 38, 75, 0.05) !important;
    color: #f97316 !important;
}

.rl-hcm-tz-selector-btn:disabled {
    cursor: default;
}

.rl-hcm-tz-name {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rl-hcm-header-divider {
    height: 1px;
    background: #e5e7eb;
    width: 100%;
    margin: 24px 0;
}

.rl-hcm-header-action-section {
    text-align: center;
    margin-bottom: 30px;
}

.rl-hcm-header-action-title,
.rl-hcm-header-selected-time {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #2d264b !important;
    margin: 0 0 8px 0 !important;
}

.rl-hcm-header-selected-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rl-hcm-header-duration {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* Step 4 Specifics */
.rl-hcm-step4-header {
    width: 100%;
}

/* ────────────────────────────────────── */
/* TIMEZONE SELECTION MODAL               */
/* ────────────────────────────────────── */

.rl-hcm-tz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.rl-hcm-tz-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.rl-hcm-tz-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.rl-hcm-tz-modal-overlay.is-visible .rl-hcm-tz-modal {
    transform: translateY(0);
}

.rl-hcm-tz-modal-header {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.rl-hcm-tz-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.rl-hcm-tz-search-wrapper svg {
    position: absolute;
    left: 12px;
    color: #9ca3af;
}

.rl-hcm-tz-search {
    width: 100% !important;
    padding: 12px 12px 12px 40px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s !important;
}

.rl-hcm-tz-search:focus {
    border-color: #f97316 !important;
}

.rl-hcm-tz-modal-body {
    max-height: 400px;
    overflow-y: auto;
}

.rl-hcm-tz-list {
    display: flex;
    flex-direction: column;
}

.rl-hcm-tz-item {
    display: flex;
    color: #6200A4 !important;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px !important;
    border: none;
    background: transparent !important;
    cursor: pointer !important;
    width: 100%;
    text-align: left;
    transition: background 0.2s;
}

.rl-hcm-tz-item:hover {
    background: #fff7ed !important;
}

.rl-hcm-tz-item.is-active {
    background: #f97316;
    color: #fff;
}

.rl-hcm-tz-item-name {
    font-weight: 600;
    font-size: 15px;
}

.rl-hcm-tz-item-time {
    font-size: 14px;
    opacity: 0.8;
}

.rl-hcm-tz-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.rl-hcm-tz-modal-close-btn {
    background: #fff !important;
    border: 1.5px solid #e5e7eb !important;
    padding: 10px 30px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
    cursor: pointer !important;
    transition: all 0.2s;
}

.rl-hcm-tz-modal-close-btn:hover {
    border-color: #f97316;
    color: #f97316;
}

/* Hide the old decorative dot from Step 3 if it's there */
.rl-hcm-skin-naked .rl-hcm-step[data-step="3"] .rl-hcm-step-body::after {
    display: none !important;
}

/* ────────────────────────────────────── */
/* STEP 4 - REFERENCE 2 DESIGN            */
/* ────────────────────────────────────── */

.rl-hcm-ref2-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

.rl-hcm-ref2-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #2d264b !important;
    margin-bottom: 24px !important;
    text-align: center;
}

.rl-hcm-ref2-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.rl-hcm-ref2-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 16px;
    font-weight: 600;
}

.rl-hcm-ref2-info-item svg {
    color: #64748b;
    flex-shrink: 0;
}

.rl-hcm-ref2-description-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 20px 0;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    cursor: default;
    width: 100%;
    color: #2d264b;
    font-weight: 500;
}

.rl-hcm-desc-arrow {
    color: #f97316;
}

.rl-hcm-ref2-divider {
    height: 1px;
    background: #e5e7eb;
    width: 100%;
    margin: 20px 0 30px 0;
}

.rl-hcm-ref2-enter-details {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #2d264b !important;
    width: 100%;
    text-align: left;
    margin-bottom: 20px !important;
}

/* Ensure Step 4 fields container follows the Ref-2 alignment */
.rl-hcm-step4-fields-container {
    width: 100%;
}

/* Absolute Priority for Ref-2 Header in Multistep Confirmation */
.rl-hcm-confirmation-details {
    order: -30 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

/* Ensure Ref-2 elements are centered in Multistep */
.rl-hcm-confirmation-details .rl-hcm-ref2-header {
    align-items: center !important;
    text-align: center !important;
}

.rl-hcm-confirmation-details .rl-hcm-ref2-title {
    text-align: center !important;
}

.rl-hcm-confirmation-details .rl-hcm-ref2-info-list {
    align-items: center !important;
}

/* Absolute Priority and Centering for Ref-2 Header in Multistep Step 4 */
.rl-hcm-step[data-step="4"] .rl-hcm-ref2-header {
    order: -30 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 20px !important;
}

.rl-hcm-step[data-step="4"] .rl-hcm-ref2-title {
    text-align: center !important;
    width: 100% !important;
}

.rl-hcm-step[data-step="4"] .rl-hcm-ref2-info-list {
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Ref-2 HR Separator */
.rl-hcm-ref2-hr {
    border: 0;
    border-top: 1px solid #e2e8f0 !important;
    width: 100% !important;
    margin: 24px 0 !important;
    box-sizing: border-box;
}

/* Ref-2 Description Content Animation */
.rl-hcm-ref2-description-content {
    display: none;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    width: 100%;
    margin-top: 12px;
    padding: 0 10px;
}

.is-description-open .rl-hcm-ref2-description-content {
    display: block;
}

/* Rotate arrow when open */
.is-description-open .rl-hcm-desc-arrow {
    transform: rotate(90deg);
}

.rl-hcm-desc-arrow {
    transition: transform 0.2s ease;
}

/* Custom styling for the Ref-2 Sub-label (Decision makers) */
.rl-hcm-ref2-sub-label {
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Time Slot Loading State */
.rl-hcm-loading-slots {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 15px;
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    width: 100%;
}

.rl-hcm-loading-slots::before {
    content: "";
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: #f97316;
    border-radius: 50%;
    animation: rl-hcm-spin 0.8s linear infinite;
}

@keyframes rl-hcm-spin {
    to { transform: rotate(360deg); }
}

/* Calendar Loading Overlay */
.rl-hcm-calendar-loading-overlay {
    grid-column: 1 / span 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    z-index: 10;
    min-height: 280px;
    text-align: center;
}

.rl-hcm-custom-header {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 24px;
    text-align: center;
}

.rl-hcm-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f1f5f9;
    border-top-color: #48054c;
    border-radius: 50%;
    animation: rl-hcm-spin 0.8s linear infinite;
}

.rl-hcm-calendar-loading-overlay p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #475569;
}

/* ==========================================================================
 * Modal Overlay Styles
 * ========================================================================== */
.rl-hc-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 999999;
    padding: 60px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    /* JS changes display to flex */
    align-items: flex-start;
    justify-content: center;
}

.rl-hc-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.elementor-editor-active .rl-hc-modal-overlay {
    position: relative;
    z-index: 1;
    opacity: 1;
    visibility: visible;
    background: transparent;
    padding: 0;
    backdrop-filter: none;
    display: block !important;
}

.elementor-editor-active .rl-hc-modal-dialog {
    transform: none !important;
}

.rl-hc-modal-dialog {
    position: relative;
    width: 100%;
    margin: auto; /* Centers it vertically when it is smaller than viewport */
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
}

.rl-hc-modal-overlay.is-open .rl-hc-modal-dialog {
    transform: translateY(0);
}

.rl-hc-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #fff;
    line-height: 1;
    padding-bottom: 3px;
    transition: all 0.2s;
}

.rl-hc-modal-close:hover {
    background: #fff;
    color: #0f172a;
}

@media (max-width: 768px) {
    .rl-hc-modal-overlay {
        padding: 40px 10px 20px;
    }
    .rl-hc-modal-close {
        top: -36px;
        right: 0;
    }
}
