/* Policy Popup Styles */

/* Overlay */
.policy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.policy-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.policy-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: #000000;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.policy-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Popup Header */
.popup-header {
    padding: 1.5rem 2rem;
    background: #000;
    position: relative;
}

.popup-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
}

.popup-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.popup-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gold);
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 0.5rem;
}

.popup-subtitle {
    font-size: 0.9rem;
    margin: 0;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.popup-close svg {
    width: 18px;
    height: 18px;
    color: white;
}

/* Popup Body */
.popup-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.policy-section {
    margin-bottom: 1.5rem;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.policy-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.policy-section-icon {
    background: var(--gold);
}
.policy-section-icon svg { color: #fff; }

.policy-section-icon svg {
    width: 16px;
    height: 16px;
}

.policy-section p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* Highlight Box */
.policy-highlight {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    border-radius: 0 12px 12px 0;
    margin: 1rem 0;
}

.policy-highlight p {
    color: #92400e;
    font-size: 0.85rem;
    margin: 0;
}

.policy-highlight strong {
    color: #78350f;
}

/* Checkbox Agreement */
.policy-agreement {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    cursor: pointer;
}

.policy-agreement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #4f46e5;
    cursor: pointer;
    flex-shrink: 0;
}

.policy-agreement label {
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.policy-agreement label a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.policy-agreement label a:hover {
    text-decoration: underline;
}

/* Popup Footer */
.popup-footer {
    padding: 1.25rem 2rem;
    background: rgba(212, 175, 55, 0.5);
    border-top: 1px solid var(--gold);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-popup {
    flex: 1;
    min-width: 120px;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    text-decoration: none;
}

.btn-popup-primary {
    background: var(--gold);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-popup-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-popup-primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-popup-secondary {
    background: #808148;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-popup-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Links in footer */
.popup-links {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.popup-links a {
    color: #6b7280;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.popup-links a:hover {
    color: #4f46e5;
}


.lawyer-popup .btn-popup-primary {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.lawyer-popup .btn-popup-primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Scrollbar */
.popup-body::-webkit-scrollbar {
    width: 6px;
}

.popup-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.popup-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.popup-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive */
@media (max-width: 640px) {
    .policy-popup {
        width: 95%;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .popup-header,
    .popup-body,
    .popup-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .popup-title {
        font-size: 1.25rem;
    }
    
    .popup-footer {
        flex-direction: column;
    }
    
    .btn-popup {
        width: 100%;
    }
}