/**
 * Alber Beratungsanfrage Popup - Styles
 * 
 * @package Alber_Seminare_Manager
 * @since 2.7.0
 */

/* ============================
   Button
   ============================ */

.alber-beratung-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.alber-beratung-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: #fff !important;
}

.alber-beratung-button:active {
    transform: translateY(0);
}

/* ============================
   Modal Base
   ============================ */

.alber-ber-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.alber-ber-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.alber-ber-modal-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.alber-ber-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alber-ber-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

/* ============================
   Form Container
   ============================ */

.alber-ber-form {
    overflow-y: auto;
    padding: 32px;
}

.alber-ber-step {
    animation: fadeIn 0.3s ease;
}

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

/* ============================
   Header
   ============================ */

.alber-ber-header {
    text-align: center;
    margin-bottom: 28px;
}

.alber-ber-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.alber-ber-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.alber-ber-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ============================
   Form Elements
   ============================ */

.alber-ber-form-row {
    margin-bottom: 16px;
}

.alber-ber-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.alber-ber-form-group {
    display: flex;
    flex-direction: column;
}

.alber-ber-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.alber-ber-form-group input,
.alber-ber-form-group select,
.alber-ber-form-group textarea {
    padding: 12px 14px;
    font-size: 15px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.alber-ber-form-group input:focus,
.alber-ber-form-group select:focus,
.alber-ber-form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.alber-ber-form-group input::placeholder,
.alber-ber-form-group textarea::placeholder {
    color: #9ca3af;
}

.alber-ber-form-group.has-error input,
.alber-ber-form-group.has-error select,
.alber-ber-form-group.has-error textarea {
    border-color: #ef4444;
}

.alber-ber-form-group .error-message {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

/* ============================
   Divider
   ============================ */

.alber-ber-divider {
    display: flex;
    align-items: center;
    margin: 24px 0 16px;
}

.alber-ber-divider::before,
.alber-ber-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.alber-ber-divider span {
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

/* ============================
   Checkbox
   ============================ */

.alber-ber-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    line-height: 1.5;
}

.alber-ber-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #2563eb;
}

.alber-ber-checkbox-label a {
    color: #2563eb;
    text-decoration: underline;
}

.alber-ber-checkbox-label a:hover {
    color: #1d4ed8;
}

/* ============================
   Actions
   ============================ */

.alber-ber-actions {
    margin-top: 24px;
}

.alber-ber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.alber-ber-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.alber-ber-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.alber-ber-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.alber-ber-btn .btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Spinner */
.alber-ber-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================
   Footer Note
   ============================ */

.alber-ber-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 12px;
    color: #9ca3af;
}

/* ============================
   Success State
   ============================ */

.alber-ber-step-success {
    text-align: center;
    padding: 20px 0;
}

.alber-ber-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.alber-ber-success-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}

.alber-ber-success-message {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.alber-ber-success-info {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    margin-bottom: 24px;
}

.alber-ber-success-info p {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
}

.alber-ber-success-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.alber-ber-success-info li {
    font-size: 14px;
    color: #4b5563;
    padding: 6px 0 6px 24px;
    position: relative;
}

.alber-ber-success-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 600;
}

.alber-ber-success-actions {
    margin-top: 16px;
}

/* ============================
   Mobile Responsive
   ============================ */

@media (max-width: 640px) {
    .alber-ber-modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .alber-ber-modal-container {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
    }
    
    .alber-ber-form {
        padding: 24px 20px;
    }
    
    .alber-ber-form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .alber-ber-header h2 {
        font-size: 20px;
    }
    
    .alber-ber-header p {
        font-size: 13px;
    }
    
    .alber-ber-icon {
        font-size: 40px;
    }
}
