/* ===============================================
   CALLBACK WIDGET - ACADEMIC THEME (CIRCULAR, PROFESSIONAL)
   =============================================== */

/* Floating Callback Widget */
.callback-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 9999;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
}

.callback-button {
    width: 70px;
    height: 70px;
    background: #2C5F8D; /* Academic blue */
    border: none;
    border-radius: 50%; /* Circular */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.25s ease;
    position: relative;
    font-weight: 600;
}

.callback-button:hover {
    background: #1E4364; /* Darker blue on hover */
    transform: none; /* Remove displacement */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); /* Stronger shadow on hover */
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
}

.callback-button {
    animation: pulse 2s infinite;
}

.callback-button i {
    color: #FFFFFF;
}

.callback-popup {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 300px;
    height: 420px;
    background: #FFFFFF;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    animation: slideUp 0.3s ease;
    font-weight: 500;
    z-index: 10002;
}

.callback-popup.active {
    display: block;
}

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

.callback-popup-header {
    background: #2C5F8D;
    color: #FFFFFF;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.callback-popup-header::before {
    display: none;
}

.callback-popup-header h3 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
}

.callback-popup-header h3 i {
    font-size: 1rem;
}

.callback-close-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    font-weight: 600;
    border-radius: 50%;
}

.callback-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    transform: none;
}

.callback-popup-body {
    padding: 15px;
    background: #F7F8FA;
    border-radius: 0 0 12px 12px;
    height: calc(100% - 48px);
    overflow-y: auto;
}

.callback-popup-body::-webkit-scrollbar {
    width: 4px;
}

.callback-popup-body::-webkit-scrollbar-track {
    background: #E5E7EB;
}

.callback-popup-body::-webkit-scrollbar-thumb {
    background: #2C5F8D;
    border-radius: 2px;
}

.callback-popup-body p {
    margin: 0 0 15px 0;
    color: #4B5563;
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 500;
}

.callback-form-group {
    margin-bottom: 12px;
}

.callback-form-group label {
    display: block;
    font-weight: 600;
    color: #1B1F24;
    margin-bottom: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.callback-form-group input,
.callback-form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-size: 0.7rem;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 500;
    transition: all 0.25s ease;
    box-sizing: border-box;
    background: #FFFFFF;
}

.callback-form-group input:focus,
.callback-form-group select:focus {
    outline: none;
    border-color: #2C5F8D;
    box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.1);
}

.callback-submit-btn {
    width: 100%;
    padding: 12px;
    background: #2C5F8D;
    color: #FFFFFF;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.callback-submit-btn:hover {
    background: #1E4364;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.callback-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.callback-submit-btn:hover::before {
    left: 100%;
}

.callback-submit-btn:disabled {
    background: #D1D5DB;
    color: #6B7280;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.callback-success,
.callback-error {
    padding: 8px 0;
    margin-bottom: 10px;
    display: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: transparent;
    border: none;
    color: #22C55E;
    border-radius: 4px;
}

.callback-success {
    color: #22C55E;
}

.callback-error {
    color: #EF4444;
}

.callback-success.show,
.callback-error.show {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .callback-widget {
        bottom: 85px;
        right: 15px;
    }

    .callback-button {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .callback-popup {
        width: calc(100vw - 40px);
        height: 460px;
        position: fixed;
        left: 50%;
        top: 50%;
        bottom: auto;
        right: auto;
        transform: translate(-50%, -50%);
        z-index: 10002;
    }
    
    .callback-popup-body {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .callback-widget {
        bottom: 80px;
        right: 15px;
    }
    
    .callback-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .callback-popup {
        width: calc(100vw - 30px);
        height: 440px;
        position: fixed;
        left: 50%;
        top: 50%;
        bottom: auto;
        right: auto;
        transform: translate(-50%, -50%);
        z-index: 10002;
    }
    
    .callback-popup-body {
        padding: 15px;
    }
}
