/*
  Demo Form - Alt Bi Energy (Blue/Purple Palette)
*/

.demo-wrapper {
    min-height: 100vh;
    padding: 60px 20px;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e, #6b21a8);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    font-family: 'Outfit', 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Floating ambient orbs */
.demo-wrapper::before,
.demo-wrapper::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: floatOrb 20s ease-in-out infinite alternate;
}

.demo-wrapper::before {
    background: #0ea5e9;
    top: -100px;
    left: -100px;
}

.demo-wrapper::after {
    background: #c084fc;
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(150px, 150px) scale(1.5);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.glass-panel {
    position: relative;
    z-index: 1;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: panelEnter 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes panelEnter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.glass-panel h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(to right, #93c5fd, #c4b5fd, #fdf4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 30px rgba(139, 92, 246, 0.5);
    letter-spacing: -1px;
}

.demo-wizard legend {
    font-size: 1.6rem;
    font-weight: 800;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    margin-bottom: 25px;
    width: 100%;
    text-align: center;
    color: #f8fafc;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.demo-wizard fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.slot-day-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slot-day-btn summary {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e2e8f0;
    list-style: none;
    outline: none;
}

.slot-day-btn summary::-webkit-details-marker {
    display: none;
}

.slot-day-btn:hover,
.slot-day-btn[open] {
    background: rgba(30, 58, 138, 0.5);
    border-color: rgba(139, 92, 246, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
}

.slot-time-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6, #3b82f6);
    background-size: 200% auto;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    margin: 12px 12px 0 0;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.slot-time-btn:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.6);
}

.alt-time-box {
    margin-top: 35px;
    background: rgba(15, 23, 42, 0.4);
    border: 2px dashed rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s ease;
}

.alt-time-box:hover {
    border-color: rgba(56, 189, 248, 0.8);
    background: rgba(30, 58, 138, 0.3);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15) inset;
}

.alt-time-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: white;
    padding: 18px;
    font-size: 1.1rem;
    margin-top: 15px;
    resize: vertical;
    transition: all 0.3s;
}

.alt-time-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.alt-time-input:focus {
    outline: none;
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.modern-btn {
    background: white;
    color: #4f46e5;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.modern-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
}

.modern-btn:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

.modern-btn:hover:not(:disabled)::after {
    opacity: 1;
    transform: scale(1);
    animation: ripple 1s infinite alternate;
}

@keyframes ripple {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.modern-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}

.modern-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 12px !important;
    color: white !important;
    padding: 15px 18px !important;
    font-size: 1.1rem !important;
    margin-bottom: 20px !important;
    transition: all 0.3s !important;
}

.modern-input:focus {
    outline: none !important;
    border-color: #38bdf8 !important;
    background: rgba(15, 23, 42, 0.8) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.5px;
}

.org-type-options {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.org-type-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #e2e8f0;
}

.thank-you-box {
    text-align: center;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.thank-you-box h3 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #e0e7ff;
}

.charity-list-item {
    background: rgba(30, 41, 59, 0.8);
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.charity-list-item:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    transform: translateX(5px);
}