/* ========================================
   FREE TRIAL STYLES - LiveExpert.ai
   ======================================== */

/* Free Trial Banner on Registration */
.am-free-trial-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: slide-in-top 0.5s ease-out;
}

@keyframes slide-in-top {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.am-trial-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.am-free-trial-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.am-free-trial-content strong {
    font-weight: 700;
}

/* Free Trial Checkbox */
.am-free-trial-check {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 15px;
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: #86efac;
        box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.4);
    }
    50% {
        border-color: #4ade80;
        box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.2);
    }
}

.am-free-trial-check .am-checkbox {
    margin: 0;
}

.am-free-trial-check label {
    color: #166534 !important;
    font-weight: 600 !important;
    cursor: default !important;
}

.am-free-trial-check input[type="checkbox"] {
    cursor: default;
}

/* Free Trial Popup Overlay */
.am-free-trial-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.am-free-trial-popup {
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

/* Celebration Animation */
.am-celebration-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.am-confetti {
    position: absolute;
    font-size: 32px;
    animation: confetti-fall 3s ease-out forwards;
    opacity: 0;
}

.am-confetti:nth-child(1) { left: 10%; animation-delay: 0s; }
.am-confetti:nth-child(2) { left: 25%; animation-delay: 0.2s; }
.am-confetti:nth-child(3) { left: 40%; animation-delay: 0.4s; }
.am-confetti:nth-child(4) { left: 55%; animation-delay: 0.6s; }
.am-confetti:nth-child(5) { left: 70%; animation-delay: 0.8s; }
.am-confetti:nth-child(6) { left: 85%; animation-delay: 1s; }

@keyframes confetti-fall {
    0% {
        top: -60px;
        opacity: 1;
        transform: rotate(0deg) scale(0.8);
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 110%;
        opacity: 0;
        transform: rotate(720deg) scale(1.2);
    }
}

.am-popup-content {
    position: relative;
    z-index: 2;
}

.am-success-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 45px;
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: success-icon-pop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes success-icon-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.am-popup-content h2 {
    font-size: 32px;
    margin: 0 0 12px;
    color: #1f2937;
    font-weight: 700;
    animation: fade-in-up 0.6s ease-out 0.2s both;
}

.am-popup-content > p {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 20px;
    animation: fade-in-up 0.6s ease-out 0.3s both;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.am-trial-benefits {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    line-height: 2;
    color: #374151;
    font-size: 15px;
    text-align: left;
    border: 1px solid #e5e7eb;
    animation: fade-in-up 0.6s ease-out 0.4s both;
}

.am-trial-badge-large {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    display: inline-block;
    margin-top: 12px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    animation: fade-in-up 0.6s ease-out 0.5s both, pulse-glow 2s ease-in-out 1s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(16, 185, 129, 0.6);
    }
}

/* No Payment Banner */
.am-no-payment-banner {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #6ee7b7;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(110, 231, 183, 0.2);
    animation: slide-in-right 0.5s ease-out;
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.am-no-payment-banner svg {
    width: 28px;
    height: 28px;
    color: #059669;
    flex-shrink: 0;
}

.am-no-payment-banner span {
    color: #065f46;
    font-size: 15px;
    line-height: 1.5;
}

.am-no-payment-banner strong {
    font-weight: 700;
    color: #064e3b;
}

/* Star Tutor Badge */
.am-star-tutor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    margin-left: 8px;
    vertical-align: middle;
}

.am-golden-star {
    font-size: 18px;
    animation: star-pulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes star-pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.3) rotate(15deg);
    }
}

.am-badge-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.am-info-icon {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    transition: all 0.3s ease;
}

.am-info-icon:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Free Trial in Booking */
.am-free-trial-booking {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 30px 24px;
    border-radius: 16px;
    text-align: center;
    margin: 24px 0;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.am-free-trial-booking h3 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 700;
}

.am-free-trial-booking .am-price {
    font-size: 56px;
    font-weight: 800;
    margin: 16px 0;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.am-free-trial-booking .am-price small {
    font-size: 24px;
    opacity: 0.9;
}

.am-free-trial-booking p {
    margin: 8px 0;
    opacity: 0.95;
    font-size: 15px;
}

.am-free-trial-booking .am-trial-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-block;
    margin-top: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .am-free-trial-popup {
        padding: 40px 24px;
        max-width: 90%;
    }
    
    .am-popup-content h2 {
        font-size: 26px;
    }
    
    .am-success-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    
    .am-trial-benefits {
        padding: 18px;
        font-size: 14px;
    }
    
    .am-no-payment-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .am-free-trial-popup-overlay,
    .am-free-trial-banner,
    .am-no-payment-banner {
        display: none !important;
    }
}

