/* ============================================
   ACE Scheduler v4.4 - Premium Wide White Design
   Calendly-inspired clean white aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Variables ── */

.ace-scheduler-wrapper {
    --ace-primary: #4f46e5;
    --ace-primary-rgb: 79, 70, 229;
    --ace-primary-dark: #3730a3;
    --ace-primary-light: #eef2ff;
    --ace-primary-subtle: rgba(79, 70, 229, 0.05);
    --ace-bg: #f0f2f5;
    --ace-card: #ffffff;
    --ace-text: #0f172a;
    --ace-text2: #475569;
    --ace-text3: #94a3b8;
    --ace-border: #e2e8f0;
    --ace-border2: #cbd5e1;
    --ace-green: #059669;
    --ace-green-rgb: 5, 150, 105;
    --ace-green-light: #ecfdf5;
    --ace-red: #dc2626;
    --ace-red-rgb: 220, 38, 38;
    --ace-radius: 20px;
    --ace-radius-sm: 12px;
    --ace-radius-xs: 8px;

    --ace-shadow-xs: 0 1px 2px rgba(0,0,0,0.03), 0 1px 1px rgba(0,0,0,0.02);
    --ace-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --ace-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.06);
    --ace-shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 20px 48px rgba(0,0,0,0.10);
    --ace-shadow-xl: 0 20px 60px rgba(0,0,0,0.10), 0 40px 80px rgba(0,0,0,0.08);

    --ace-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    font-family: var(--ace-font);
    color: var(--ace-text);
    line-height: 1.6;

    /* 🔥 Break out of WordPress theme container */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 24px 0;
    position: relative;
    overflow-x: clip;
}

.ace-scheduler-wrapper * {
    box-sizing: border-box;
}

/* ── Page Background ──
     Beautiful subtle gradient anchored behind the card.
     Extends full viewport so it looks gorgeous at any screen size. ── */

.ace-scheduler-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 20% 0%, rgba(var(--ace-primary-rgb), 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 45% 45% at 80% 100%, rgba(var(--ace-primary-rgb), 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 30% 30% at 50% 60%, rgba(99, 102, 241, 0.03) 0%, transparent 40%),
        var(--ace-bg);
    z-index: -1;
    pointer-events: none;
}

/* ── Error / Loading ── */

.ace-scheduler-error {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--ace-red);
    border-radius: var(--ace-radius-sm);
    padding: 36px 44px;
    text-align: center;
    color: #991b1b;
    font-size: 16px;
    box-shadow: var(--ace-shadow);
}

.ace-scheduler-loading {
    text-align: center;
    padding: 100px 24px;
    color: var(--ace-text2);
}

.ace-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 18px;
    border: 3px solid var(--ace-border);
    border-top-color: var(--ace-primary);
    border-radius: 50%;
    animation: ace-spin 0.8s linear infinite;
}

.ace-btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ace-spin 0.8s linear infinite;
    vertical-align: middle;
}

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

/* ── Card Container ── */

.ace-card {
    background: var(--ace-card);
    border-radius: var(--ace-radius);
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 6px 16px rgba(0,0,0,0.06),
        0 24px 48px rgba(0,0,0,0.06),
        0 48px 80px rgba(0,0,0,0.04);
    display: flex;
    min-height: 620px;
    max-width: 1200px;
    margin: 0 auto;
    animation: ace-cardIn 0.5s ease-out;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

@keyframes ace-cardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── LEFT PANEL (Host Info) ──
     Premium dimensional background, wide and spacious. ── */

.ace-left {
    width: 50%;
    min-width: 300px;
    flex-shrink: 0;
    padding: 56px 48px;
    background: linear-gradient(160deg, #ffffff 0%, #fafaff 40%, #f5f5ff 80%, #f0f0ff 100%);
    border-right: 1px solid var(--ace-border);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative glow accent in the top-right area */
.ace-left::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(var(--ace-primary-rgb), 0.10) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

/* Subtle decorative dot pattern woven into the background */
.ace-left::after {
    content: '';
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(var(--ace-primary-rgb), 0.10) 1px, transparent 1px);
    background-size: 14px 14px;
    pointer-events: none;
    opacity: 0.8;
}

/* Ensure left-inner content stacks above the decorative elements */
.ace-left-inner {
    position: relative;
    z-index: 1;
}

.ace-avatar {
    width: 120px;
    height: 120px;
    max-width: 120px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid #fff;
    display: block;
    flex-shrink: 0;
    overflow: hidden;
}

/* ── Avatar Wrapper — Clean Halo Ring ──
     Subtle purple aura glow + a clean border ring.
     No complex masks — just border + box-shadow for reliability. ── */

.ace-avatar-wrap {
    position: relative;
    display: inline-flex;
    margin-bottom: 24px;
}

/* Soft purple aura — warm halo glow behind the avatar */
.ace-avatar-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160%;
    height: 160%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(109, 40, 217, 0.18) 0%,
        rgba(109, 40, 217, 0.08) 30%,
        transparent 60%
    );
    animation: ace-aura-breathe 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Clean ring — uses border + box-shadow instead of conic-mask for reliability */
.ace-avatar-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% + 22px);
    height: calc(100% + 22px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2.5px solid rgba(109, 40, 217, 0.15);
    box-shadow:
        0 0 15px rgba(109, 40, 217, 0.08),
        inset 0 0 12px rgba(109, 40, 217, 0.04);
    animation: ace-ring-pulse 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.ace-avatar-wrap .ace-avatar,
.ace-avatar-wrap .ace-avatar-initial {
    position: relative;
    z-index: 2;
    box-shadow:
        0 4px 20px rgba(109, 40, 217, 0.12),
        0 1px 4px rgba(0, 0, 0, 0.06);
}

.ace-avatar-wrap .ace-avatar-initial {
    box-shadow:
        0 4px 20px rgba(109, 40, 217, 0.18),
        0 1px 4px rgba(0, 0, 0, 0.06);
}

@keyframes ace-aura-breathe {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes ace-ring-pulse {
    0%, 100% {
        opacity: 0.7;
        border-color: rgba(109, 40, 217, 0.12);
        box-shadow: 0 0 10px rgba(109, 40, 217, 0.06), inset 0 0 8px rgba(109, 40, 217, 0.03);
    }
    50% {
        opacity: 1;
        border-color: rgba(109, 40, 217, 0.25);
        box-shadow: 0 0 20px rgba(109, 40, 217, 0.12), inset 0 0 16px rgba(109, 40, 217, 0.06);
    }
}

.ace-avatar-initial {
    background: linear-gradient(135deg, var(--ace-primary), var(--ace-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 700;
    border: 3px solid #fff;
}

.ace-host {
    color: var(--ace-text2);
    margin: 0 0 6px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
}

.ace-event {
    font-size: 30px;
    font-weight: 800;
    color: var(--ace-text);
    margin: 0 0 18px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.ace-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ace-primary);
    margin: 0 0 28px;
    padding: 6px 14px 6px 10px;
    background: var(--ace-primary-light);
    border-radius: 20px;
    border: 1px solid rgba(var(--ace-primary-rgb), 0.1);
}

.ace-meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ace-desc {
    font-size: 15px;
    color: var(--ace-text2);
    line-height: 1.7;
    margin: 0;
    padding-right: 8px;
}

/* ── RIGHT PANEL ──
     Pure white, generous spacing. ── */

.ace-right {
    width: 50%;
    flex-shrink: 0;
    min-width: 0;
    padding: 56px 52px 52px;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ace-card);
}

/* ── Step Progress ──
     Full-width spaced step indicator with always-visible labels.
     Uses space-between to distribute the three step groups evenly
     with flexible connecting lines that fill the available space. ── */

.ace-steps {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--ace-border);
}

.ace-step-group {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
    flex-shrink: 0;
}

.ace-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    position: relative;
}

.ace-step-dot.ace-dot-active {
    background: var(--ace-primary);
    box-shadow: 0 0 0 4px rgba(var(--ace-primary-rgb), 0.15);
    transform: scale(1.1);
}

.ace-step-dot.ace-dot-done {
    background: var(--ace-green);
    box-shadow: 0 0 0 4px rgba(var(--ace-green-rgb), 0.15);
}

.ace-step-dot.ace-dot-done::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    width: 5px;
    height: 2.5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    rotate: -45deg;
}

.ace-step-line {
    flex: 1;
    min-width: 16px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 0 12px;
    transition: background 0.3s ease;
}

.ace-step-line.ace-line-done {
    background: var(--ace-green);
}

.ace-step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ace-text3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* Step label colors sync with dot states */
.ace-step-dot.ace-dot-active ~ .ace-step-label {
    color: var(--ace-primary);
}

.ace-step-dot.ace-dot-done ~ .ace-step-label {
    color: var(--ace-green);
}

/* ── Panel Switcher ── */

.ace-panel {
    display: none;
    animation: ace-slideIn 0.3s ease-out;
    flex: 1;
}

.ace-panel.ace-panel-active {
    display: block;
}

@keyframes ace-slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.ace-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--ace-text);
    margin: 0 0 20px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* ── Back Button ── */

.ace-back {
    background: none;
    border: none;
    color: var(--ace-text2);
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px 6px 6px;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    border-radius: var(--ace-radius-xs);
    font-family: var(--ace-font);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.02);
}

.ace-back:hover {
    color: var(--ace-primary);
    background: rgba(var(--ace-primary-rgb), 0.06);
    transform: translateX(-3px);
}

.ace-back:active {
    transform: translateX(0);
}

.ace-back svg {
    width: 18px;
    height: 18px;
}

/* ── Calendar ── */

.ace-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 2px;
}

.ace-cal-label {
    font-size: 17px;
    font-weight: 700;
    color: var(--ace-text);
    letter-spacing: -0.02em;
}

.ace-cal-btn {
    background: var(--ace-card);
    border: 1px solid var(--ace-border);
    border-radius: var(--ace-radius-xs);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ace-text2);
    transition: all 0.2s ease;
    box-shadow: var(--ace-shadow-xs);
}

.ace-cal-btn:hover {
    background: #f8fafc;
    color: var(--ace-primary);
    border-color: var(--ace-primary);
    box-shadow: 0 3px 10px rgba(var(--ace-primary-rgb), 0.12);
}

.ace-cal-btn:active {
    transform: scale(0.92);
}

.ace-cal-btn svg {
    width: 18px;
    height: 18px;
}

/* Arrow characters rendered inline in JS — more reliable than ::after pseudo-elements */
#ace-prev-month, #ace-next-month {
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

/* ── Calendar Grid ── */

.ace-cal {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 4px;
    margin-bottom: 4px;
}

.ace-cal th {
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 4px 10px;
    text-align: center;
}

.ace-cal td {
    text-align: center;
    padding: 3px;
}

.ace-day {
    width: 100%;
    max-width: 50px;
    height: 46px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background: none;
    color: var(--ace-text);
    margin: 0 auto;
    font-family: var(--ace-font);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ace-day-avail {
    cursor: pointer;
    font-weight: 700;
    color: var(--ace-primary);
    border-color: transparent;
    background: rgba(var(--ace-primary-rgb), 0.04);
}

.ace-day-avail:hover {
    border-color: var(--ace-primary);
    background: rgba(var(--ace-primary-rgb), 0.10);
    transform: scale(1.08);
    color: var(--ace-primary);
    box-shadow: 0 3px 12px rgba(var(--ace-primary-rgb), 0.18);
}

.ace-day-disabled {
    color: #94a3b8;
    cursor: default;
    opacity: 0.70;
    pointer-events: none;
    font-weight: 500;
    border-color: transparent;
}

.ace-day-today {
    font-weight: 700;
    color: var(--ace-primary);
    border-color: rgba(var(--ace-primary-rgb), 0.40);
    background: rgba(var(--ace-primary-rgb), 0.12);
}

.ace-day-today::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ace-primary);
}

.ace-day-today.ace-day-sel::after {
    background: #fff;
}

.ace-day-sel {
    background: var(--ace-primary) !important;
    color: #fff !important;
    font-weight: 800 !important;
    border-color: var(--ace-primary) !important;
    box-shadow: 0 4px 18px rgba(var(--ace-primary-rgb), 0.40);
    transform: scale(1.06);
}

.ace-day-sel:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 22px rgba(var(--ace-primary-rgb), 0.40) !important;
}

/* ── Timezone ── */

.ace-tz-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--ace-border);
}

.ace-tz-icon {
    color: var(--ace-text3);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.ace-tz-select {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--ace-border);
    border-radius: var(--ace-radius-xs);
    font-size: 13px;
    font-weight: 500;
    color: var(--ace-text2);
    background: var(--ace-card);
    cursor: pointer;
    font-family: var(--ace-font);
    transition: border-color 0.2s, box-shadow 0.2s;
    max-width: 260px;
    appearance: auto;
}

.ace-tz-select:hover {
    border-color: var(--ace-primary);
}

.ace-tz-select:focus {
    outline: none;
    border-color: var(--ace-primary);
    box-shadow: 0 0 0 3px rgba(var(--ace-primary-rgb), 0.08);
}

/* ── Time Slots Area ── */

.ace-slots-area {
    margin-top: 18px;
    border-top: 1px solid var(--ace-border);
    padding-top: 18px;
    animation: ace-fadeIn 0.3s ease;
}

@keyframes ace-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ace-slots-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ace-slots-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--ace-text);
    margin: 0;
}

.ace-slots-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--ace-green);
    background: var(--ace-green-light);
    padding: 3px 10px;
    border-radius: 20px;
}

.ace-slots-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 270px;
    overflow-y: auto;
    padding: 4px 4px 0 0;
}

.ace-slots-body::-webkit-scrollbar {
    width: 5px;
}

.ace-slots-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.ace-slots-body::-webkit-scrollbar-track {
    background: transparent;
}

.ace-slots-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 24px;
}

/* ── Slot Button ── */

.ace-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1.5px solid var(--ace-border);
    border-radius: var(--ace-radius-sm);
    background: var(--ace-card);
    color: var(--ace-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--ace-font);
    position: relative;
    box-shadow: var(--ace-shadow-xs);
}

.ace-slot:hover {
    border-color: var(--ace-primary);
    color: var(--ace-primary);
    background: var(--ace-primary-subtle);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--ace-primary-rgb), 0.12);
}

.ace-slot:active {
    transform: translateY(0);
    box-shadow: var(--ace-shadow-xs);
}

.ace-slot-icon {
    width: 16px;
    height: 16px;
    opacity: 0.35;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.ace-slot:hover .ace-slot-icon {
    opacity: 0.7;
}

.ace-no-slots {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 24px;
    color: var(--ace-text2);
    font-size: 14px;
}

.ace-no-slots-icon {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.4;
}

/* ── Booking Form ── */

.ace-summary {
    font-size: 14px;
    color: var(--ace-text2);
    margin: 0 0 28px;
    padding: 14px 18px;
    background: var(--ace-primary-subtle);
    border-radius: var(--ace-radius-sm);
    border: 1px solid rgba(var(--ace-primary-rgb), 0.08);
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ace-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ace-summary-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.5;
    color: var(--ace-primary);
}

.ace-summary-sep {
    color: var(--ace-text3);
    font-size: 12px;
}

.ace-summary-val {
    font-weight: 600;
    color: var(--ace-text);
}

.ace-field {
    margin-bottom: 22px;
}

.ace-field-names {
    margin-bottom: 22px;
}

.ace-name-row {
    display: flex;
    gap: 12px;
}

.ace-name-col {
    flex: 1;
    min-width: 0;
}

.ace-name-col label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ace-text);
    margin-bottom: 6px;
}

.ace-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ace-text);
    margin-bottom: 6px;
}

.ace-req {
    color: var(--ace-red);
    margin-left: 2px;
}

.ace-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--ace-border);
    border-radius: var(--ace-radius-xs);
    font-size: 15px;
    font-weight: 500;
    color: var(--ace-text);
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: var(--ace-font);
}

.ace-input:focus {
    outline: none;
    border-color: var(--ace-primary);
    background: var(--ace-card);
    box-shadow: 0 0 0 3px rgba(var(--ace-primary-rgb), 0.08);
}

.ace-input:hover:not(:focus):not(:disabled) {
    border-color: var(--ace-border2);
    background: var(--ace-card);
}

.ace-input::placeholder {
    color: var(--ace-text3);
    font-weight: 400;
}

.ace-input-ok {
    border-color: var(--ace-green);
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.ace-input-err {
    border-color: var(--ace-red);
    box-shadow: 0 0 0 3px rgba(var(--ace-red-rgb), 0.08);
}

.ace-ta {
    resize: vertical;
    min-height: 70px;
}

/* ── Submit Button ── */

.ace-btn {
    width: 100%;
    padding: 15px 28px;
    border: none;
    border-radius: var(--ace-radius-sm);
    background: linear-gradient(135deg, var(--ace-primary), var(--ace-primary-dark));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--ace-font);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.01em;
    position: relative;
    box-shadow: 0 4px 14px rgba(var(--ace-primary-rgb), 0.25);
}

.ace-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(var(--ace-primary-rgb), 0.30);
}

.ace-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(var(--ace-primary-rgb), 0.20);
}

.ace-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.ace-error {
    color: var(--ace-red);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 18px;
    display: none;
    padding: 12px 16px;
    background: #fff5f5;
    border-radius: var(--ace-radius-xs);
    border: 1px solid #fecaca;
    border-left: 3px solid var(--ace-red);
    line-height: 1.5;
}

/* ── Confirmation ── */

.ace-confirm {
    text-align: center;
    padding: 16px 8px 0;
    animation: ace-confirmIn 0.4s ease-out;
}

@keyframes ace-confirmIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ace-confirm-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.ace-confirm-icon svg {
    width: 100%;
    height: 100%;
}

.ace-check-bg {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    transition: stroke-dashoffset 0.5s ease-out;
}

.ace-check-path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    transition: stroke-dashoffset 0.35s 0.3s ease-out;
}

.ace-confirm-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--ace-text);
    margin: 0 0 8px;
    letter-spacing: -0.03em;
}

.ace-confirm-msg {
    font-size: 15px;
    color: var(--ace-text2);
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 380px;
}

/* ── Confirmation Details Card ── */

.ace-confirm-details {
    background: var(--ace-primary-subtle);
    border: 1px solid rgba(var(--ace-primary-rgb), 0.08);
    border-radius: var(--ace-radius-sm);
    padding: 4px 22px;
    margin: 0 auto 28px;
    max-width: 400px;
    text-align: left;
}

.ace-confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

.ace-confirm-row-zoom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.ace-zoom-link {
    color: var(--ace-primary);
    font-size: 13px;
    word-break: break-all;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.ace-zoom-link::before {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'%3E%3C/path%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    flex-shrink: 0;
}

.ace-zoom-link:hover {
    text-decoration: underline;
    background: rgba(255, 255, 255, 0.9);
}

.ace-confirm-val {
    font-weight: 600;
    color: var(--ace-text);
    text-align: right;
}

.ace-confirm-img {
    max-width: 160px;
    border-radius: var(--ace-radius-sm);
    margin: 0 auto 28px;
    display: block;
    box-shadow: var(--ace-shadow);
}

/* ── Calendar Action Links ── */

.ace-confirm-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.ace-cal-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1.5px solid var(--ace-border);
    border-radius: var(--ace-radius-sm);
    text-decoration: none;
    color: var(--ace-text);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    background: var(--ace-card);
    box-shadow: var(--ace-shadow-xs);
}

.ace-cal-link:hover {
    border-color: var(--ace-primary);
    background: var(--ace-primary-subtle);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--ace-primary-rgb), 0.10);
    color: var(--ace-primary);
}

.ace-cal-link:active {
    transform: translateY(0);
    box-shadow: var(--ace-shadow-xs);
}

.ace-cal-link svg {
    width: 18px;
    height: 18px;
    color: var(--ace-primary);
    flex-shrink: 0;
}

/* ── Countdown Timer ── */

.ace-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 24px auto 2px;
}

.ace-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    padding: 10px 6px;
    background: var(--ace-primary-subtle);
    border-radius: var(--ace-radius-sm);
    border: 1px solid rgba(var(--ace-primary-rgb), 0.08);
}

.ace-countdown-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--ace-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.ace-countdown-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--ace-text3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.ace-countdown-sep {
    font-size: 28px;
    font-weight: 700;
    color: var(--ace-text3);
    margin-top: -16px;
    line-height: 1;
}

.ace-countdown-sub {
    font-size: 12px;
    color: var(--ace-text3);
    margin: 4px 0 22px;
    font-weight: 500;
}

.ace-countdown-started {
    font-size: 16px;
    font-weight: 600;
    color: var(--ace-green);
    padding: 18px 0 11px;
    background: var(--ace-green-light);
    border-radius: var(--ace-radius-sm);
    margin: 16px auto 2px;
    max-width: 260px;
}

/* ── Zoom Join Button & Copy ── */

.ace-zoom-section {
    margin: 0 auto 24px;
    max-width: 400px;
}

.ace-zoom-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #2d8cff;
    color: #fff;
    border: none;
    border-radius: var(--ace-radius-sm);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(45, 140, 255, 0.30);
    font-family: var(--ace-font);
}

.ace-zoom-join-btn:hover {
    background: #1a7aef;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 140, 255, 0.35);
    color: #fff;
}

.ace-zoom-join-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(45, 140, 255, 0.20);
}

.ace-zoom-actions {
    margin-top: 8px;
}

.ace-zoom-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 18px;
    background: var(--ace-card);
    border: 1.5px solid var(--ace-border);
    border-radius: var(--ace-radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--ace-text2);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--ace-font);
    box-shadow: var(--ace-shadow-xs);
}

.ace-zoom-copy-btn:hover {
    border-color: var(--ace-primary);
    color: var(--ace-primary);
    background: var(--ace-primary-subtle);
}

.ace-zoom-copy-btn:active {
    transform: scale(0.97);
}

.ace-zoom-copy-btn svg {
    flex-shrink: 0;
}

/* ── Responsive: Tablet ── */

@media (max-width: 1024px) {
    .ace-scheduler-wrapper {
        margin: 16px 0;
        padding: 0;
    }

    .ace-left {
        min-width: 260px;
        padding: 40px 32px;
    }

    .ace-right {
        padding: 40px 36px 44px;
    }
}

@media (max-width: 860px) {
    .ace-scheduler-wrapper {
        width: 100%;
        margin: 12px 0;
        margin-left: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .ace-card {
        flex-direction: column;
        min-height: auto;
        border-radius: 16px;
    }

    .ace-left {
        width: 100%;
        min-width: auto;
        padding: 32px 24px 22px;
        border-right: none;
        border-bottom: 1px solid var(--ace-border);
    }

    .ace-left-inner {
        text-align: center;
    }

    .ace-avatar {
        width: 96px;
        height: 96px;
    }

    .ace-avatar-wrap {
        margin-bottom: 18px;
    }

    .ace-avatar-initial {
        font-size: 36px;
    }

    .ace-event {
        font-size: 22px;
    }

    .ace-right {
        width: 100%;
        padding: 28px 24px 36px;
    }

    .ace-day {
        width: 100%;
        max-width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .ace-tz-select {
        max-width: none;
    }

    .ace-slots-body {
        grid-template-columns: 1fr 1fr;
        max-height: 260px;
    }

    .ace-confirm-details,
    .ace-confirm-links,
    .ace-zoom-section {
        max-width: 100%;
    }

    .ace-countdown-num {
        font-size: 26px;
    }

    .ace-countdown-item {
        min-width: 52px;
        padding: 8px 4px;
    }

    .ace-countdown-sep {
        font-size: 22px;
        margin-top: -14px;
    }

    .ace-zoom-join-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ── Responsive: Mobile (540px) ── */

@media (max-width: 540px) {
    .ace-scheduler-wrapper {
        width: 100%;
        margin: 6px 0;
        margin-left: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .ace-scheduler-wrapper::before {
        background: var(--ace-bg); /* Simplify background on mobile */
    }

    .ace-left {
        padding: 24px 16px 16px;
        min-width: auto;
    }

    .ace-left-inner {
        text-align: center;
    }

    .ace-left::after,
    .ace-left::before {
        display: none; /* Remove decorative elements on mobile */
    }

    .ace-right {
        width: 100%;
        padding: 20px 16px 28px;
    }

    .ace-day {
        width: 100%;
        max-width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .ace-cal th {
        font-size: 10px;
        padding: 2px 2px 8px;
        letter-spacing: 0.5px;
    }

    .ace-cal {
        border-spacing: 2px;
    }

    .ace-event {
        font-size: 20px;
    }

    .ace-avatar {
        width: 84px;
        height: 84px;
    }

    .ace-avatar-wrap {
        margin-bottom: 14px;
    }

    .ace-avatar-initial {
        font-size: 32px;
    }

    .ace-heading {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .ace-slot {
        padding: 12px 12px;
        font-size: 13px;
        min-height: 44px; /* Better touch target */
    }

    .ace-slots-body {
        grid-template-columns: 1fr;
        max-height: 240px;
    }

    .ace-step-line {
        min-width: 6px;
        margin: 0 6px;
    }

    .ace-confirm-details {
        padding: 4px 14px;
    }

    .ace-confirm-title {
        font-size: 22px;
    }

    .ace-cal-label {
        font-size: 15px;
    }

    .ace-cal-btn {
        width: 36px;
        height: 36px;
    }

    .ace-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .ace-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .ace-meta {
        font-size: 12px;
        padding: 5px 10px 5px 8px;
    }

    .ace-host {
        font-size: 11px;
    }

    .ace-desc {
        font-size: 13px;
    }

    .ace-avatar {
        width: 72px;
        height: 72px;
    }

    .ace-avatar-wrap {
        margin-bottom: 12px;
    }

    .ace-avatar-initial {
        font-size: 28px;
    }

    .ace-countdown-num {
        font-size: 22px;
    }

    .ace-countdown-item {
        min-width: 44px;
        padding: 6px 3px;
    }

    .ace-countdown-sep {
        font-size: 18px;
        margin-top: -12px;
    }

    .ace-zoom-join-btn {
        padding: 12px 14px;
        font-size: 14px;
    }

    .ace-zoom-section {
        max-width: 100%;
    }

    .ace-tz-select {
        font-size: 12px;
        padding: 6px 10px;
    }

    .ace-steps {
        padding-bottom: 16px;
        margin-bottom: 18px;
    }
}

/* ── Responsive: Small Phone (480px) ── */

@media (max-width: 480px) {
    .ace-scheduler-wrapper {
        width: 100%;
        margin: 4px 0;
        margin-left: 0;
        padding: 0;
    }

    .ace-card {
        border-radius: 14px;
    }

    .ace-left {
        padding: 20px 14px 14px;
    }

    .ace-left-inner {
        text-align: center;
    }

    .ace-right {
        width: 100%;
        padding: 16px 14px 24px;
    }

    .ace-day {
        max-width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .ace-cal {
        border-spacing: 1px;
    }

    .ace-cal th {
        font-size: 9px;
        padding: 1px 1px 6px;
        letter-spacing: 0.3px;
    }

    .ace-event {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .ace-avatar {
        width: 76px;
        height: 76px;
    }

    .ace-avatar-initial {
        font-size: 28px;
    }

    .ace-avatar-wrap {
        margin-bottom: 12px;
    }

    .ace-heading {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .ace-avatar {
        width: 64px;
        height: 64px;
    }

    .ace-avatar-initial {
        font-size: 24px;
    }

    .ace-avatar-wrap {
        margin-bottom: 10px;
    }

    /* Hide step labels — show only dots */
    .ace-step-label {
        display: none;
    }

    .ace-step-line {
        min-width: 4px;
        margin: 0 4px;
    }

    .ace-step-group {
        gap: 4px;
    }

    .ace-step-dot {
        width: 12px;
        height: 12px;
    }

    /* Stack name fields vertically */
    .ace-name-row {
        flex-direction: column;
        gap: 16px;
    }

    .ace-slot {
        padding: 11px 10px;
        font-size: 13px;
        min-height: 44px;
    }

    .ace-slots-body {
        max-height: 220px;
        gap: 6px;
    }

    .ace-summary {
        font-size: 13px;
        padding: 12px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ace-summary-sep {
        display: none;
    }

    .ace-confirm-title {
        font-size: 20px;
    }

    .ace-confirm-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 14px;
    }

    .ace-confirm-msg {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .ace-confirm-row {
        font-size: 13px;
        padding: 10px 0;
    }

    .ace-cal-link {
        padding: 10px 14px;
        font-size: 13px;
    }

    .ace-zoom-join-btn {
        padding: 11px 14px;
        font-size: 13px;
    }

    .ace-countdown-item {
        min-width: 40px;
        padding: 5px 2px;
    }

    .ace-countdown-num {
        font-size: 20px;
    }

    .ace-countdown-sep {
        font-size: 16px;
        margin-top: -10px;
    }

    .ace-firewall-box {
        padding: 12px 12px 10px;
    }

    .ace-firewall-icons {
        gap: 6px;
    }

    .ace-firewall-icon {
        padding: 8px 3px 6px;
    }

    .ace-firewall-icon-svg {
        width: 24px;
        height: 24px;
    }

    .ace-tz-wrap {
        margin-top: 14px;
        padding-top: 10px;
    }

    .ace-tz-select {
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* ── Responsive: Very Small Phone (400px) ── */

@media (max-width: 400px) {
    .ace-scheduler-wrapper {
        width: 100%;
        margin: 2px 0;
        margin-left: 0;
    }

    .ace-card {
        border-radius: 12px;
    }

    .ace-left {
        padding: 16px 12px 12px;
    }

    .ace-left-inner {
        text-align: center;
    }

    .ace-right {
        width: 100%;
        padding: 14px 12px 20px;
    }

    .ace-event {
        font-size: 16px;
    }

    .ace-avatar {
        width: 68px;
        height: 68px;
    }

    .ace-avatar-initial {
        font-size: 24px;
    }

    .ace-avatar-wrap {
        margin-bottom: 10px;
    }

    .ace-avatar-wrap::before {
        display: none; /* Remove aura halo on tiny screens */
    }

    .ace-day {
        max-width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .ace-cal td {
        padding: 1px;
    }

    .ace-heading {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .ace-cal-btn {
        width: 32px;
        height: 32px;
    }

    .ace-cal-label {
        font-size: 13px;
    }

    .ace-cal-nav {
        margin-bottom: 10px;
    }

    .ace-slot {
        padding: 10px 8px;
        font-size: 12px;
        min-height: 42px;
    }

    .ace-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .ace-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .ace-confirm-title {
        font-size: 18px;
    }

    .ace-confirm-details {
        padding: 2px 10px;
    }

    .ace-confirm-row {
        font-size: 12px;
        padding: 8px 0;
    }

    .ace-countdown-item {
        min-width: 36px;
        padding: 4px 2px;
    }

    .ace-countdown-num {
        font-size: 18px;
    }

    .ace-countdown-sep {
        font-size: 14px;
        margin-top: -8px;
    }

    .ace-countdown-label {
        font-size: 8px;
    }

    .ace-zoom-join-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .ace-cal-link {
        padding: 9px 12px;
        font-size: 12px;
        gap: 8px;
    }

    .ace-cal-link svg {
        width: 16px;
        height: 16px;
    }

    .ace-desc {
        font-size: 12px;
    }

    .ace-host {
        font-size: 10px;
    }

    .ace-meta {
        font-size: 11px;
        margin-bottom: 18px;
    }

    .ace-tz-wrap {
        margin-top: 12px;
        padding-top: 8px;
        gap: 6px;
    }

    .ace-tz-select {
        font-size: 10px;
        padding: 4px 6px;
        max-width: none;
    }

    .ace-steps {
        padding-bottom: 12px;
        margin-bottom: 14px;
    }
}

/* ── Honeypot (anti-spam hidden field) ── */

.ace-honeypot {
    position: absolute !important;
    left: -99999px !important;
    top: -99999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* ============================================
   FIREWALL INLINE CAPTCHA
   Lightweight inline verification below submit button
   ============================================ */

#ace-firewall-area {
    margin-top: 16px;
}

.ace-firewall-box {
    background: #f8fafc;
    border: 1.5px solid var(--ace-border);
    border-radius: var(--ace-radius-sm);
    padding: 18px 20px 16px;
    animation: ace-fadeIn 0.3s ease;
}

.ace-firewall-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ace-firewall-shield {
    width: 18px;
    height: 18px;
    color: var(--ace-primary);
    flex-shrink: 0;
}

.ace-firewall-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ace-text);
}

.ace-firewall-prompt {
    font-size: 13px;
    font-weight: 600;
    color: var(--ace-text2);
    margin: 0 0 14px;
}

.ace-firewall-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.ace-firewall-icon {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px 8px;
    border: 2px solid var(--ace-border);
    border-radius: var(--ace-radius-xs);
    background: var(--ace-card);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--ace-text2);
    font-family: var(--ace-font);
    min-width: 0;
}

.ace-firewall-icon:hover {
    border-color: var(--ace-border2);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.ace-firewall-icon-sel {
    border-color: var(--ace-primary) !important;
    background: var(--ace-primary-subtle) !important;
    color: var(--ace-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--ace-primary-rgb), 0.12) !important;
}

.ace-firewall-icon-svg {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ace-text2);
    transition: color 0.2s, transform 0.2s;
}

.ace-firewall-icon-svg svg {
    width: 100%;
    height: 100%;
}

.ace-firewall-icon-sel .ace-firewall-icon-svg {
    color: var(--ace-primary);
    transform: scale(1.1);
}

.ace-firewall-icon-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--ace-text3);
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.ace-firewall-icon-sel .ace-firewall-icon-label {
    color: var(--ace-primary);
}

.ace-firewall-error {
    color: var(--ace-red);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: var(--ace-radius-xs);
    border: 1px solid #fecaca;
    border-left: 3px solid var(--ace-red);
    line-height: 1.4;
}

.ace-firewall-actions {
    display: flex;
    gap: 8px;
}

.ace-firewall-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--ace-radius-xs);
    background: linear-gradient(135deg, var(--ace-primary), var(--ace-primary-dark));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--ace-font);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(var(--ace-primary-rgb), 0.20);
}

.ace-firewall-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(var(--ace-primary-rgb), 0.25);
}

.ace-firewall-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.ace-firewall-btn-spinner {
    display: inline-flex;
    align-items: center;
}

.ace-firewall-btn-spinner .ace-spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
    margin: 0;
}

/* ── Inline Captcha Responsive ── */

@media (max-width: 540px) {
    .ace-firewall-icons {
        gap: 8px;
    }

    .ace-firewall-icon {
        padding: 10px 4px 6px;
    }

    .ace-firewall-icon-svg {
        width: 26px;
        height: 26px;
    }

    .ace-firewall-box {
        padding: 14px 14px 12px;
    }
}
