/* Consent Modal Styles */
.consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.consent-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

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

/* Header */
.consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.consent-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #000;
    margin: 0;
    font-family: "Poppins", sans-serif;
}

.consent-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.consent-close:hover {
    color: #43a1af;
    transform: rotate(90deg);
}

/* Body */
.consent-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

/* Language Selector */
.language-selector {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.language-selector label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.language-selector select {
    padding: 12px 16px;
    border: 2px solid #e0e8ed;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.language-selector select:focus {
    outline: none;
    border-color: #43a1af;
    box-shadow: 0 0 0 3px rgba(67, 161, 175, 0.15);
}

.language-selector select:hover {
    border-color: #43a1af;
}

/* Consent Templates Container */
.consent-templates {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.loading,
.error-message {
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    font-size: 15px;
}

.loading {
    background: #f0f8fa;
    color: #43a1af;
    font-weight: 600;
}

.error-message {
    background: #fff5f5;
    color: #e63946;
    font-weight: 600;
}

/* Consent Template Item */
.consent-template-item {
    border: 2px solid #e0e8ed;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.consent-template-item:hover {
    border-color: #43a1af;
    background: rgba(67, 161, 175, 0.05);
}

.checkbox-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.consent-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #e0e8ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2px;
    flex-shrink: 0;
    background: white;
}

.consent-checkbox:hover {
    border-color: #43a1af;
    box-shadow: 0 0 0 3px rgba(67, 161, 175, 0.1);
}

.consent-checkbox:checked {
    background: linear-gradient(135deg, #43a1af 0%, #4eb3c6 100%);
    border-color: #43a1af;
    box-shadow: inset 0 0 0 2px white;
}

.consent-checkbox:checked::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.consent-checkbox:focus {
    outline: 2px solid #43a1af;
    outline-offset: 2px;
}

.checkbox-wrapper label {
    flex: 1;
    cursor: pointer;
}

.template-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
    text-transform: capitalize;
}

.template-content {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
}

.template-category {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.consent-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
    background: #f9f9f9;
}

.btn-cancel,
.btn-submit {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.btn-cancel {
    background: transparent;
    color: #43a1af;
    border: 2px solid #43a1af;
}

.btn-cancel:hover {
    background: #43a1af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 161, 175, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #43a1af 0%, #4eb3c6 100%);
    color: white;
    box-shadow: 0 6px 15px rgba(67, 161, 175, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(67, 161, 175, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .consent-modal-content {
        max-height: 90vh;
        width: 95%;
        border-radius: 12px;
    }

    .consent-header {
        padding: 20px;
    }

    .consent-header h2 {
        font-size: 20px;
    }

    .consent-body {
        padding: 20px;
    }

    .consent-footer {
        padding: 15px 20px;
        flex-direction: column-reverse;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }

    .consent-template-item {
        padding: 12px;
    }

    .checkbox-wrapper {
        gap: 12px;
    }

    .template-title {
        font-size: 15px;
    }

    .template-content {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .consent-modal-content {
        max-height: 95vh;
    }

    .consent-header h2 {
        font-size: 18px;
    }

    .language-selector select {
        padding: 10px 12px;
        font-size: 14px;
    }

    .template-title {
        font-size: 14px;
    }

    .template-content {
        font-size: 12px;
    }

    .btn-cancel,
    .btn-submit {
        padding: 10px 20px;
        font-size: 14px;
    }
}
