/* Trial Lesson Modal Styles */

/* Modal Overlay */
.trial-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.trial-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Container */
.trial-modal {
    max-width: 500px;
    width: 90%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease;
    position: relative;
}

/* Modal Header with Gradient */
.trial-modal-header {
    position: relative;
    padding: 40px 30px 60px;
    background: linear-gradient(135deg, var(--theme-primary-light), var(--theme-primary-dark));
    text-align: center;
}

/* Skewed bottom edge effect */
.trial-modal-header:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -30px;
    width: 50%;
    height: 60px;
    z-index: 1;
    transform: skewY(-10deg);
    background-color: #fff;
}

.trial-modal-header:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -30px;
    width: 50%;
    height: 60px;
    z-index: 1;
    transform: skewY(10deg);
    background-color: #fff;
}

/* Close Button */
.trial-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.trial-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Logo/Icon */
.trial-modal-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.trial-modal-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* Header Title */
.trial-modal-header h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal Body */
.trial-modal-body {
    padding: 60px 40px 40px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

/* Form Styles */
.trial-form-group {
    margin-bottom: 20px;
}

.trial-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.trial-form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Nunito Sans', sans-serif;
}

.trial-form-control:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.1);
}

.trial-form-control::placeholder {
    color: #999;
}

/* Buttons Container */
.trial-modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Button Styles */
.trial-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trial-btn-primary {
    background: linear-gradient(135deg, var(--theme-primary-light), var(--theme-primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--theme-primary-rgb), 0.3);
}

.trial-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--theme-primary-rgb), 0.4);
}

.trial-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.trial-btn-secondary:hover {
    background: #e0e0e0;
}

/* Success Message */
.trial-success-message {
    display: none;
    text-align: center;
    padding: 20px;
}

.trial-success-message.active {
    display: block;
}

.trial-success-message i {
    font-size: 60px;
    color: var(--theme-primary);
    margin-bottom: 20px;
}

.trial-success-message h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.trial-success-message p {
    color: #666;
    font-size: 16px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media only screen and (max-width: 767px) {
    .trial-modal {
        width: 95%;
        max-width: none;
    }

    .trial-modal-header {
        padding: 30px 20px 50px;
    }

    .trial-modal-icon {
        width: 100px;
        height: 100px;
    }

    .trial-modal-header h2 {
        font-size: 18px;
    }

    .trial-modal-body {
        padding: 50px 25px 30px;
    }

    .trial-modal-buttons {
        flex-direction: column;
    }

    .trial-btn {
        width: 100%;
    }
}