/* assets/banner.css - Updated: Merged with frontend.css for grievance form: better alignment, spacing, box styling. Original banner styles preserved. */
:root {
    --dpdp-primary: #a855f7;
    --dpdp-theme-bg: #f8fafc;
    --dpdp-theme-text: #1f2937;
    --dpdp-banner-font: 'Inter', sans-serif;
}

/* Original Banner Styles */
.dpdp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    padding: 10px;
    box-sizing: border-box;
}

.dpdp-popup-content {
    background: var(--dpdp-theme-bg);
    color: var(--dpdp-theme-text);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    max-width: 100%;
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.1);
    position: relative;
    font-family: var(--dpdp-banner-font);
}

.dpdp-popup-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dpdp-theme-text);
    margin-bottom: 6px;
}

.dpdp-lang-selector {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.dpdp-lang-selector select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 0.85rem;
}

.dpdp-consent-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.dpdp-popup-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.dpdp-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.dpdp-testmode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.dpdp-testmode-toggle label {
    font-size: 0.85rem;
    font-weight: 500;
}

.dpdp-export-btn {
    padding: 8px 16px;
    border-radius: 6px;
    background: linear-gradient(135deg, #9333ea, #6d28d9);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.dpdp-script-manager {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.dpdp-script-manager .script-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(6px);
}

.dpdp-script-manager .script-item button {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.dpdp-success, .dpdp-error {
    padding: 14px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 16px;
}

.dpdp-success { background: #d1fae5; color: #065f46; }
.dpdp-error { background: #fee2e2; color: #991b1b; }

/* Merged Frontend/Grievance Styles */
.dpdp-grievance-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dpdp-form-header {
    background: linear-gradient(135deg, #f3e5f5 0%, #e9d5ff 100%);
    padding: 30px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dpdp-form-header h2 {
    font-size: 2.2rem;
    color: #1f2937;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.dpdp-form-header p {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}

.dpdp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.dpdp-form-field {
    display: flex;
    flex-direction: column;
}

.dpdp-form-field label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.dpdp-form-field input,
.dpdp-form-field select,
.dpdp-form-field textarea {
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.dpdp-form-field input:focus,
.dpdp-form-field select:focus,
.dpdp-form-field textarea:focus {
    border-color: #a855f7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.dpdp-form-field.full-width {
    grid-column: 1 / -1;
}

.dpdp-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.dpdp-submit-btn {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 20px;
}

.dpdp-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.dpdp-success,
.dpdp-error {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

.dpdp-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.dpdp-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Consent Status Styling */
.dpdp-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

.dpdp-status.consented {
    background: #d1fae5;
    color: #065f46;
}

.dpdp-status.pending {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
    .dpdp-popup-content {
        padding: 16px;
        max-height: 70vh;
    }
    
    .dpdp-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dpdp-grievance-container {
        padding: 15px;
        margin: 10px;
    }
    
    .dpdp-form-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
}