/* Trial Page - Multi-Step Form */

#trial-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* Hide header and footer */
#trial-page header,
#trial-page footer {
    display: none !important;
}

/* Background */
.trial-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: 1;
}

.trial-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 192, 203, 0.3) 0%, 
        rgba(173, 216, 230, 0.3) 100%
    );
    backdrop-filter: blur(10px);
}

/* Close Button */
.trial-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1001;
    color: #64748B;
    text-decoration: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trial-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
    color: #0F172A;
}

/* Modal Container */
.trial-modal-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 80px 20px 60px;
}

/* Modal */
.trial-modal {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    margin: auto;
}

.trial-modal--large {
    max-width: 700px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.trial-logo {
    text-align: center;
    margin-bottom: 24px;
}

.trial-logo img {
    width: 150px;
    /* height: 100px; */
}

/* Progress Steps */
.trial-progress {
    margin-bottom: 32px;
}

.trial-progress-bar {
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}

.trial-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF3F05 0%, #FF6B35 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.trial-progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.trial-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.trial-progress-step.active,
.trial-progress-step.completed {
    opacity: 1;
}

.trial-progress-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.trial-progress-step.active .trial-progress-number {
    background: #FF3F05;
    color: white;
    box-shadow: 0 0 0 4px rgba(255, 63, 5, 0.1);
}

.trial-progress-step.completed .trial-progress-number {
    background: #10B981;
    color: white;
}

.trial-progress-step.completed .trial-progress-number::after {
    content: '✓';
    font-size: 16px;
}

.trial-progress-label {
    font-size: 12px;
    color: #64748B;
    text-align: center;
    font-weight: 500;
}

.trial-progress-step.active .trial-progress-label {
    color: #0F172A;
    font-weight: 600;
}

/* Heading */
.trial-heading {
    font-size: 28px;
    font-weight: 700;
    color: #0F172A;
    text-align: center;
    margin: 0 0 12px 0;
    line-height: 1.3;
    transition: all 0.3s ease;
}

/* Subheading */
.trial-subheading {
    text-align: center;
    font-size: 15px;
    color: #64748B;
    margin: 0 0 32px 0;
    line-height: 1.5;
    transition: all 0.3s ease;
}

/* Multi-step Form */
.trial-multi-step-form {
    position: relative;
}

.trial-step {
    display: none;
    animation: stepFadeIn 0.3s ease-out;
    
}

.trial-step.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step Buttons */
.trial-step-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.trial-step-buttons .btn-page,
.trial-step-buttons .btn-page--outline {
    width: 100%;
    justify-content: center;
}

/* Footer note */
.trial-footer-note {
    text-align: center;
    font-size: 14px;
    color: #64748B;
    margin: 24px 0 0 0;
}

.trial-footer-note a {
    color: #FF3F05;
    text-decoration: none;
    font-weight: 600;
}

.trial-footer-note a:hover {
    text-decoration: underline;
}

/* Checkbox styling for products */
.demo-form__option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #D6DEEB;
    background: #fff;
    appearance: none;
    position: relative;
    flex-shrink: 0;
}

.demo-form__option input[type="checkbox"]:checked {
    border-color: #FF3F05;
    background: #FF3F05;
}

.demo-form__option input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .trial-modal-container {
        padding: 60px 16px 40px;
    }

    .trial-modal {
        padding: 36px 24px;
        max-width: 100%;
    }

    .trial-modal--large {
        max-width: 100%;
    }

    .trial-heading {
        font-size: 24px;
    }

    .trial-subheading {
        font-size: 14px;
    }

    .trial-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    .trial-progress-label {
        font-size: 10px;
    }

    .trial-progress-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .trial-step-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .trial-modal {
        padding: 32px 20px;
        border-radius: 12px;
    }

    .trial-heading {
        font-size: 22px;
    }

    .trial-logo img {
        width: 40px;
        height: 40px;
    }

    .trial-progress-steps {
        gap: 8px;
    }

    .trial-progress-label {
        display: none;
    }
}

/* Scroll styling */
.trial-modal-container::-webkit-scrollbar {
    width: 8px;
}

.trial-modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.trial-modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.trial-modal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}