/* Trial Lesson Modal Styles - Redesigned */

/* Modal Overlay */
.trial-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    animation: fadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.trial-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Container */
.trial-modal {
    max-width: 550px;
    width: 90%;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0px 25px 80px rgba(0, 0, 0, 0.5);
    animation: modalScaleUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

/* Modal Header with New Design */
.trial-modal-header {
    position: relative;
    padding: 60px 40px 110px;
    background: linear-gradient(150deg, #D5AD3A 0%, #a07e20 20%, #111 75%);
    text-align: center;
    overflow: hidden;
}

/* Golden Glow Background */
.trial-modal-header::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(213, 173, 58, 0.2) 0%, transparent 75%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(40px);
}

/* Wave Transition Effect */
.trial-modal-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    clip-path: ellipse(65% 100% at 50% 100%);
    z-index: 2;
}

/* Close Button - Glassmorphism */
.trial-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.trial-modal-close:hover {
    background: rgba(213, 173, 58, 0.8);
    border-color: #D5AD3A;
    transform: scale(1.1) rotate(90deg);
}

/* Logo/Icon Area */
.trial-modal-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 25px;
    background: #fff;
    border-radius: 20px; /* Squircle style */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 3;
    border: 3px solid #D5AD3A;
}

.trial-modal-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

/* Header Title */
.trial-modal-header h2 {
    position: relative;
    z-index: 3;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    max-width: 400px;
    margin: 0 auto;
    letter-spacing: -0.5px;
}

/* Modal Body */
.trial-modal-body {
    padding: 20px 50px 50px;
    position: relative;
    z-index: 5;
}

/* Form Styles */
.trial-form-group {
    margin-bottom: 24px;
}

.trial-form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trial-form-control {
    width: 100%;
    height: 54px;
    padding: 0 20px;
    font-size: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-sizing: border-box;
    color: #111 !important;
    background-color: #fcfcfc !important;
}

.trial-form-control:focus {
    border-color: #D5AD3A;
    background-color: #fff !important;
    box-shadow: 0 8px 20px rgba(213, 173, 58, 0.1);
}

.trial-form-control::placeholder {
    color: #bbb !important;
}

/* Buttons Container */
.trial-modal-buttons {
    display: flex;
    gap: 16px;
    margin-top: 35px;
}

/* Button Styles */
.trial-btn {
    flex: 1;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.trial-btn-primary {
    background: #D5AD3A;
    color: #111;
    position: relative;
    overflow: hidden;
}

.trial-btn-primary:hover {
    background: #111;
    color: #D5AD3A;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(213, 173, 58, 0.3);
}

.trial-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.trial-btn-secondary:hover {
    background: #eee;
    color: #111;
}

/* Success Message */
.trial-success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.trial-success-message.active {
    display: block;
}

.trial-success-message i {
    font-size: 72px;
    color: #D5AD3A;
    margin-bottom: 20px;
    display: inline-block;
}

.trial-success-message h3 {
    color: #111;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}

.trial-success-message p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

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

@keyframes modalScaleUp {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Mobile Responsive */
@media only screen and (max-width: 600px) {
    .trial-modal {
        width: 92%;
    }

    .trial-modal-header {
        padding: 50px 25px 90px;
    }

    .trial-modal-header h2 {
        font-size: 17px;
    }

    .trial-modal-body {
        padding: 20px 25px 40px;
    }

    .trial-modal-buttons {
        flex-direction: column-reverse; /* Put close button at bottom */
    }

    .trial-btn {
        width: 100%;
    }
}
