/* Consent Modal Styles */
.consent-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.consent-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.consent-modal {
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    margin: 0 20px 0 20px;
}

.consent-modal-overlay.show .consent-modal {
    transform: translateY(0);
}

.consent-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.consent-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.consent-modal-title svg {
    color: #22C55E;
}

.consent-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.consent-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 12px;
    flex-direction: column;
    flex-shrink: 0;
}

.consent-item {
    margin-bottom: 20px;
    padding: 16px;
    background: #F8FAFC;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.consent-item:hover {
    border-color: #E5E7EB;
}

.consent-item.checked {
    border-color: #22C55E;
    background: #F0FDF4;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.consent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    appearance: none;
    flex-shrink: 0;
    margin-top: 2px;
}

.consent-checkbox input[type="checkbox"]:checked {
    background: #22C55E;
    border-color: #22C55E;
}

.consent-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.consent-text {
    flex: 1;
}

.consent-label {
    font-weight: 500;
    color: #1F2937;
    margin-bottom: 4px;
    line-height: 1.4;
}

.consent-description {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
}

.consent-link {
    color: #22C55E;
    text-decoration: none;
    font-weight: 500;
}

.consent-link:hover {
    text-decoration: underline;
}

.consent-modal-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
}

.consent-btn-primary {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.25);
}

.consent-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(34, 197, 94, 0.35);
}

.consent-btn-primary:disabled {
    background: #D1D5DB;
    color: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.consent-btn-outline {
    background: transparent;
    color: #374151;
    border: 2px solid #E5E7EB;
}

.consent-btn-outline:hover {
    border-color: #22C55E;
    color: #22C55E;
}

/* Desktop styles */
@media (min-width: 769px) {
    .consent-modal-overlay {
        align-items: center;
    }
    
    .consent-modal {
        border-radius: 16px;
        margin: 20px;
        max-width: 500px;
        max-height: 70vh;
        transform: scale(0.9) translateY(20px);
    }
    
    .consent-modal-overlay.show .consent-modal {
        transform: scale(1) translateY(0);
    }
    
    .consent-modal-footer {
        flex-direction: row;
    }
    
    .consent-btn {
        width: auto;
        flex: 1;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .consent-modal {
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }
    
    .consent-modal-header {
        padding: 20px 20px 16px;
    }
    
    .consent-modal-body {
        padding: 20px;
    }
    
    .consent-modal-footer {
        padding: 16px 20px 20px;
    }
    
    .consent-modal-title {
        font-size: 1.25rem;
    }
    
    .consent-item {
        padding: 14px;
        margin-bottom: 16px;
    }
    
    .consent-checkbox {
        gap: 10px;
    }
    
    .consent-label {
        font-size: 0.95rem;
    }
    
    .consent-description {
        font-size: 0.8rem;
    }
}

/* Animation for checkbox */
.consent-checkbox input[type="checkbox"] {
    transition: all 0.2s ease;
}

.consent-checkbox input[type="checkbox"]:focus {
    outline: 2px solid #22C55E;
    outline-offset: 2px;
}

/* Smooth scrolling for modal content */
.consent-modal {
    scroll-behavior: smooth;
}

.consent-modal-body::-webkit-scrollbar {
    width: 6px;
}

.consent-modal-body::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 3px;
}

.consent-modal-body::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

.consent-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}