/**
 * Enrollment Success Message Styles
 */

/* Success Message Container */
.enrollment-success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    max-width: 450px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border-top: 4px solid #28a745;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    padding: 25px;
    border-radius: 8px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

/* Success Message - Active State */
.enrollment-success-message.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Success Icon */
.success-icon {
    width: 70px;
    height: 70px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Success Content */
.success-content {
    width: 100%;
    margin-bottom: 15px;
}

.success-content h3 {
    margin: 0 0 15px 0;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
}

.success-content p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

/* Help Text */
.help-text {
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid #f0f0f0;
    font-size: 14px !important;
    color: #777 !important;
    width: 100%;
}

.contact-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* Close Button */
.close-message {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-message:hover {
    color: #555;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* Course Button Enhancement */
.course-btn {
    cursor: pointer !important;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.8s;
}

.course-btn:hover:before {
    transform: translateX(100%);
}

.course-btn:hover, 
.course-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.course-btn:active {
    transform: translateY(-1px);
}

.course-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.course-btn:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Overlay for popup */
.enrollment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.enrollment-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Contact Popup */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.contact-popup.show {
    opacity: 1;
    visibility: visible;
}

.contact-popup-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease-in-out;
}

.contact-popup.show .contact-popup-content {
    transform: translateY(0);
}

.contact-popup-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 22px;
    margin-bottom: 15px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.close-popup:hover {
    color: #666;
    transform: rotate(90deg);
}

.contact-methods {
    margin-top: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.contact-method:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: background-color 0.3s ease;
}

.contact-method:hover .contact-icon {
    background-color: #e0e0e0;
}

.email-icon:before {
    content: "✉";
    font-size: 18px;
}

.phone-icon:before {
    content: "☎";
    font-size: 18px;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .enrollment-success-message {
        width: 85%;
        padding: 20px 15px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .success-content h3 {
        font-size: 20px;
    }
    
    .contact-popup-content {
        width: 85%;
        padding: 20px;
    }
} 