/* ===========================================
   EXPERT CALLBACK MODAL - BRANDED VERSION
   Quick callback request modal with de Boer branding
   =========================================== */

/* Overlay */
.expert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s;
}

.expert-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Panel */
.expert-callback-panel {
    position: relative;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.expert-overlay.active .expert-callback-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* BRANDED HEADER (matching quote-request modal) */
.branded-header {
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    padding: 20px 32px;
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.parallax-circle {
    position: absolute;
    border-radius: 50%;
    background: #F59E0B;
}

.parallax-circle:nth-child(1) {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.parallax-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.header-content {
    position: relative;
    z-index: 2;
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
}

/* Logo Section */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo-badge {
    width: 56px;
    height: 64px;
    background: white;
    border-radius: 8px 8px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #F59E0B;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.logo-badge-top {
    font-size: 9px;
    font-weight: 700;
    color: #F59E0B;
    letter-spacing: 0.8px;
    line-height: 1;
}

.logo-badge-year {
    font-size: 15px;
    font-weight: 900;
    color: #2D3748;
    line-height: 1;
    margin-top: 2px;
}

.logo-divider {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.logo-text {
    flex: 1;
}

.logo-company-name {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.logo-company-name-main {
    font-size: 24px;
    font-weight: 900;
    color: white;
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-company-name-sub {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.logo-tagline {
    font-size: 13px;
    font-weight: 600;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.15);
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Welcome Message */
.expert-welcome-message {
    text-align: center;
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-icon {
    font-size: 36px;
    margin-bottom: 8px;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.welcome-title {
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}

.welcome-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* Body */
.expert-body {
    flex: 1;
    min-height: 0;
    padding: 24px 32px;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, #f9fafb 0%, white 50%);
}

.expert-body::-webkit-scrollbar {
    width: 8px;
}

.expert-body::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 10px;
}

.expert-body::-webkit-scrollbar-thumb {
    background: #F59E0B;
    border-radius: 10px;
}

.expert-body::-webkit-scrollbar-thumb:hover {
    background: #D97706;
}

/* Form Elements */
.form-group-expert {
    margin-bottom: 20px;
}

.form-label-expert {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 8px;
}

.label-icon {
    font-size: 16px;
}

.required {
    color: #F59E0B;
    font-weight: 900;
}

.form-input-expert,
.form-select-expert,
.form-textarea-expert {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background: white;
    color: #2D3748;
}

.form-input-expert:focus,
.form-select-expert:focus,
.form-textarea-expert:focus {
    outline: none;
    border-color: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
    transform: translateY(-1px);
}

.form-textarea-expert {
    resize: vertical;
}

/* Quick Reply Bubbles */
.quick-replies-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.quick-reply-bubble {
    background: white;
    border: 2px solid #e5e7eb;
    color: #2D3748;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quick-reply-bubble:hover {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.05);
    transform: translateY(-2px);
}

.quick-reply-bubble.selected {
    background: #F59E0B;
    border-color: #F59E0B;
    color: white;
}

/* Time Options */
.time-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.time-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.time-option:hover {
    border-color: #F59E0B;
    transform: translateY(-2px);
}

.time-option.active {
    border-color: #F59E0B;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.08) 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.time-option-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.time-option-label {
    font-size: 15px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 2px;
}

.time-option-desc {
    font-size: 12px;
    color: #6b7280;
}

/* Footer */
.expert-footer {
    padding: 16px 32px 24px;
    background: white;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.trust-indicator {
    text-align: center;
    margin: 10px 0 0;
    font-size: 11px;
    color: #9ca3af;
    letter-spacing: 0.02em;
}

.btn-expert-submit {
    width: 100%;
    padding: 16px 24px;
    background: #F59E0B;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-expert-submit:hover {
    background: #D97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.btn-expert-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 20px;
}

/* Notification Toast */
.expert-notification {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 3px solid #10b981;
    border-radius: 16px;
    padding: 20px 28px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 400px;
}

.expert-notification.show {
    top: 24px;
}

.expert-notification.error {
    border-color: #ef4444;
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 900;
    flex-shrink: 0;
    background: #10b981;
}

.expert-notification.error .notification-icon {
    background: #ef4444;
}

.notification-content h4 {
    font-size: 16px;
    font-weight: 800;
    color: #2D3748;
    margin-bottom: 4px;
}

.notification-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .expert-callback-panel {
        max-width: 95%;
        width: 95%;
        max-height: 95vh;
    }

    .branded-header {
        padding: 16px 20px;
    }

    .expert-body {
        padding: 20px;
    }

    .expert-footer {
        padding: 12px 20px 16px;
    }

    .logo-company-name-main {
        font-size: 20px;
    }

    .logo-company-name-sub {
        font-size: 11px;
    }

    .time-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .branded-header {
        padding: 24px 20px;
    }

    .header-logo {
        gap: 12px;
    }

    .logo-badge {
        width: 48px;
        height: 56px;
    }

    .welcome-icon {
        font-size: 40px;
    }

    .welcome-title {
        font-size: 18px;
    }

    .welcome-subtitle {
        font-size: 13px;
    }
}
