/* Multi-Step Schedule Demo Modal - 2025 Modern UI */

.demo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.demo-modal.active {
    display: flex;
}

.demo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.demo-modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6),
                0 0 100px rgba(139, 92, 246, 0.2);
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

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

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.demo-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 50%;
    color: #ef4444;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Progress Bar */
.demo-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.demo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4, #10b981);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

/* Progress Steps */
.demo-progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 2rem 3rem 1rem;
    gap: 0.5rem;
}

.demo-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.demo-step.active .step-circle {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-color: #8b5cf6;
    color: white;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
    transform: scale(1.1);
}

.demo-step.completed .step-circle {
    background: linear-gradient(135deg, #10b981, #34d399);
    border-color: #10b981;
    color: white;
}

.demo-step.completed .step-circle::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.step-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-align: center;
}

.demo-step.active .step-label {
    color: #8b5cf6;
}

/* Modal Content */
.demo-modal-content {
    padding: 2rem 3rem;
    max-height: calc(90vh - 250px);
    overflow-y: auto;
    position: relative;
}

.demo-modal-content::-webkit-scrollbar {
    width: 8px;
}

.demo-modal-content::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 4px;
}

.demo-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6, #06b6d4);
    border-radius: 4px;
}

.demo-step-content {
    display: none;
    animation: slideIn 0.4s ease;
}

.demo-step-content.active {
    display: block;
}

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

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

.step-header h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.step-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
}

/* Form Styling */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2),
                0 0 20px rgba(139, 92, 246, 0.3);
    background: rgba(30, 41, 59, 0.8);
}

.form-group input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    animation: shake 0.3s ease;
}

.form-group input.valid {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.email-error {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #ef4444;
    font-weight: 500;
}

.email-error i {
    font-size: 0.85rem;
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: rgba(139, 92, 246, 0.8);
}

.form-hint i {
    font-size: 0.75rem;
}

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

/* Plan Selection */
.plan-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.plan-card {
    background: rgba(30, 41, 59, 0.4);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.plan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card.selected {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.plan-card.featured {
    border-color: #10b981;
}

.plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    background: rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.featured {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.5);
    color: #10b981;
}

.plan-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #8b5cf6;
}

.plan-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
}

.plan-card p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    text-align: center;
}

.plan-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.plan-features li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: left;
}

.plan-features li i {
    color: #10b981;
    margin-right: 0.5rem;
}

/* Not Sure Button */
.not-sure-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.not-sure-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}

.not-sure-btn.selected {
    background: rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

.not-sure-btn i {
    font-size: 1.2rem;
}

/* Calendar */
.calendar-container {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.calendar-month-year {
    font-size: 1.3rem;
    color: white;
    font-weight: 700;
}

.calendar-nav {
    width: 36px;
    height: 36px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #8b5cf6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    background: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-day-name {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-date {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.calendar-date:not(.disabled):not(.empty):hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
    transform: scale(1.05);
}

.calendar-date.selected {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.calendar-date.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-date.weekend {
    color: rgba(255, 255, 255, 0.5);
}

.calendar-date.today {
    border-color: #10b981;
    color: #10b981;
}

.calendar-date.empty {
    background: transparent;
    border: none;
}

/* Time Slots */
.time-slots-container {
    margin-top: 2rem;
}

.time-slots-container h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.time-slot {
    padding: 1rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.time-slot:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.time-slot.selected {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-color: #8b5cf6;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

/* Platform Selection */
.platform-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.platform-card {
    background: rgba(30, 41, 59, 0.4);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.platform-card.selected {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.platform-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.platform-card h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.5rem;
}

.platform-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Confirmation Summary */
.confirmation-summary {
    display: grid;
    gap: 1.5rem;
}

.confirm-section {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.confirm-section h4 {
    color: #8b5cf6;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.confirm-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.confirm-section p:last-child {
    margin-bottom: 0;
}

/* Modal Footer */
.demo-modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.demo-btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-btn-back {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: white;
}

.demo-btn-back:hover {
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.demo-btn-next {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: white;
    margin-left: auto;
}

.demo-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.demo-btn-next.submit {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.demo-btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Animation */
.success-animation {
    text-align: center;
    padding: 4rem 2rem;
}

.success-checkmark {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border: 4px solid #10b981;
    animation: scale 0.5s ease-in-out;
}

.success-checkmark i {
    font-size: 4rem;
    color: #10b981;
    animation: fadeIn 0.6s ease-in-out 0.2s both;
}

.success-checkmark .check-icon {
    width: 120px;
    height: 120px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #10b981;
}

.success-checkmark .icon-line {
    height: 5px;
    background-color: #10b981;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .icon-line.line-tip {
    top: 57px;
    left: 25px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.success-checkmark .icon-line.line-long {
    top: 52px;
    right: 20px;
    width: 60px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.success-checkmark .icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(16, 185, 129, 0.5);
}

.success-checkmark .icon-fix {
    top: 12px;
    width: 10px;
    left: 32px;
    z-index: 1;
    height: 100px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: rgba(15, 23, 42, 0.95);
}

@keyframes fillGreen {
    100% {
        box-shadow: inset 0 0 0 60px #10b981;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 25px;
        left: 25px;
        top: 57px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0;
        top: 35px;
    }
    100% {
        width: 60px;
        right: 20px;
        top: 52px;
    }
}

.success-animation h2 {
    font-size: 2rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-animation p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1.5rem 0;
    color: #3b82f6 !important;
    font-size: 1rem !important;
}

.review-notice i {
    margin-right: 0.5rem;
}

.success-note {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1.5rem 0;
    color: #10b981 !important;
}

.success-note i {
    margin-right: 0.5rem;
}

.success-button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.demo-btn-close {
    margin-top: 0;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

/* Alert */
.demo-alert {
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

.demo-alert.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .demo-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .demo-progress-steps {
        padding: 1.5rem 1rem 0.5rem;
        gap: 0.25rem;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    .demo-modal-content {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-selection,
    .platform-selection {
        grid-template-columns: 1fr;
    }
    
    .demo-modal-footer {
        padding: 1rem 1.5rem;
    }
}
