/* ═══════════════════════════════════════════════════
   TECHenya Data Compliance — Frontend Styles
   ═══════════════════════════════════════════════════ */

/* ─── Consent Banner ─── */
.tedc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--tedc-bg, #0f172a);
    color: var(--tedc-text, #f1f5f9);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.25);
    animation: tedcSlideUp 0.4s cubic-bezier(.4,0,.2,1);
}

@keyframes tedcSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.tedc-banner-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px;
}

.tedc-banner-view { display: block; }

.tedc-banner-content {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.tedc-banner-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--tedc-accent, #3b82f6);
    margin-top: 2px;
}

.tedc-banner-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.tedc-banner-text p {
    margin: 0;
    opacity: 0.85;
    font-size: 13px;
}

.tedc-banner-text a {
    color: var(--tedc-accent, #3b82f6);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tedc-banner-text a:hover {
    opacity: 0.8;
}

/* ─── Buttons ─── */
.tedc-banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tedc-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tedc-btn-primary {
    background: var(--tedc-accent, #3b82f6);
    color: #fff;
}
.tedc-btn-primary:hover {
    filter: brightness(1.1);
}

.tedc-btn-outline {
    background: transparent;
    color: var(--tedc-text, #f1f5f9);
    border: 1.5px solid rgba(255,255,255,0.25);
}
.tedc-btn-outline:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
}

/* ─── Cookie Categories ─── */
.tedc-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.tedc-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.tedc-category:hover {
    background: rgba(255,255,255,0.1);
}

.tedc-cat-info {
    flex: 1;
}
.tedc-cat-info strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}
.tedc-cat-info small {
    font-size: 11px;
    opacity: 0.6;
}

/* Toggle switch */
.tedc-category input[type="checkbox"] {
    display: none;
}

.tedc-toggle {
    width: 40px;
    height: 22px;
    background: rgba(255,255,255,0.2);
    border-radius: 11px;
    position: relative;
    flex-shrink: 0;
    margin-left: 10px;
    transition: background 0.2s;
}
.tedc-toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
}

.tedc-category input:checked + .tedc-toggle {
    background: var(--tedc-accent, #3b82f6);
}
.tedc-category input:checked + .tedc-toggle::after {
    transform: translateX(18px);
}

.tedc-toggle-locked {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .tedc-banner {
        font-size: 13px;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .tedc-banner-inner {
        padding: 14px 16px;
    }
    .tedc-banner-content {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 12px;
    }
    .tedc-banner-icon {
        display: none;
    }
    .tedc-banner-text strong {
        font-size: 14px;
    }
    .tedc-banner-text p {
        font-size: 12px;
        line-height: 1.5;
    }
    .tedc-banner-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .tedc-btn {
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
        padding: 10px 12px;
        font-size: 12px;
    }
    .tedc-btn-outline {
        flex: 0 1 auto;
        padding: 10px 14px;
    }
    .tedc-btn-primary {
        flex: 1 1 100%;
        order: -1;
    }
    .tedc-categories {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .tedc-category {
        padding: 10px 12px;
    }
    .tedc-cat-info strong {
        font-size: 12px;
    }
    .tedc-cat-info small {
        font-size: 10px;
    }
    .tedc-toggle {
        width: 36px;
        height: 20px;
    }
    .tedc-toggle::after {
        width: 14px;
        height: 14px;
    }
    .tedc-category input:checked + .tedc-toggle::after {
        transform: translateX(16px);
    }
    .tedc-hide-mobile {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════
   Data Request Form Page
   ═══════════════════════════════════════════════════ */
.tedc-request-wrap {
    max-width: 560px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: Inter, -apple-system, sans-serif;
}

.tedc-request-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tedc-request-header {
    background: linear-gradient(135deg, #0a66c2, #0d4f8b);
    padding: 32px 28px;
    text-align: center;
    color: #fff;
}
.tedc-request-header h1 {
    font-size: 22px;
    margin: 0 0 6px;
    font-weight: 700;
}
.tedc-request-header p {
    margin: 0;
    opacity: 0.8;
    font-size: 14px;
}

.tedc-request-body {
    padding: 28px;
}

.tedc-field {
    margin-bottom: 16px;
}

.tedc-field label {
    display: block;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tedc-field input[type="text"],
.tedc-field input[type="email"],
.tedc-field textarea,
.tedc-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.tedc-field input:focus,
.tedc-field textarea:focus,
.tedc-field select:focus {
    border-color: #0a66c2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10,102,194,0.1);
}

.tedc-field textarea {
    min-height: 80px;
    resize: vertical;
}

.tedc-submit-btn {
    display: block;
    width: 100%;
    padding: 13px;
    background: #0a66c2;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.2s;
    font-family: inherit;
}
.tedc-submit-btn:hover {
    background: #084e96;
}
.tedc-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tedc-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.tedc-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #166534;
}
.tedc-success h3 {
    margin: 0 0 8px;
    font-size: 18px;
}
.tedc-success p {
    margin: 0;
    font-size: 14px;
}

.tedc-legal-note {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 16px;
    line-height: 1.6;
}
.tedc-legal-note a {
    color: #0a66c2;
}
