/* Modal Overlay */
.giweb-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

/* Modal Content */
.giweb-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 50px 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.giweb-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #999;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.giweb-modal-close:hover,
.giweb-modal-close:focus {
    color: #333;
}

/* Title */
.giweb-modal-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
    letter-spacing: 1px;
}

/* Level Circles Container */
.giweb-level-circles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Individual Level Circle */
.giweb-level-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Level Colors */
.giweb-level-circle.a1 {
    background-color: #0dd3d3; /* Cyan */
}

.giweb-level-circle.a2 {
    background-color: #eaa20f; /* Orange */
}

.giweb-level-circle.b1 {
    background-color: #e20994; /* Magenta */
}

.giweb-level-circle.b2 {
    background-color: #5802c3; /* Purple */
}

/* Modal Text */
.giweb-modal-text {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    padding: 0 20px;
}

.giweb-modal-text strong {
    font-weight: 700;
    color: #333;
}

/* Form Wrapper */
.giweb-form-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

/* Email Input */
.giweb-email-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.giweb-email-input:focus {
    outline: none;
    border-color: #eaa20f;
}

/* Error Message */
.giweb-error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    display: none;
}

.giweb-error-message:not(:empty) {
    display: block;
}

/* Submit Button */
.giweb-submit-button {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background-color: #eaa20f;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(234, 162, 15, 0.3);
}

.giweb-submit-button:hover {
    background-color: #d89000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 162, 15, 0.4);
}

.giweb-submit-button:active {
    transform: translateY(0);
}

/* Loading Spinner */
.giweb-loading {
    text-align: center;
    padding: 30px;
}

.giweb-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #eaa20f;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.giweb-loading p {
    color: #555;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .giweb-modal-content {
        padding: 40px 25px;
        margin: 10% auto;
    }
    
    .giweb-modal-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .giweb-level-circles {
        gap: 15px;
    }
    
    .giweb-level-circle {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .giweb-modal-text {
        font-size: 14px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .giweb-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .giweb-modal-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .giweb-level-circles {
        gap: 10px;
    }
    
    .giweb-level-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .giweb-email-input,
    .giweb-submit-button {
        padding: 12px 15px;
        font-size: 14px;
    }
}

