/* ===================================================================
   consent-flow.css — Consent / Decline / Withdrawal flow pages
   Design system: #12294B / #3657CD / border-radius 16px
   =================================================================== */

/* ── Page card ────────────────────────────────────────────────────── */
.cflow-card {
    max-width: 640px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(18, 41, 75, 0.08);
    padding: 36px 32px;
}

.cflow-card--narrow {
    max-width: 520px;
}

.cflow-card--wide {
    max-width: 720px;
}

/* ── Titles ───────────────────────────────────────────────────────── */
.cflow-title {
    font-size: 24px;
    font-weight: 700;
    color: #12294B;
    margin: 0 0 8px;
    line-height: 1.3;
}

.cflow-title--center {
    text-align: center;
}

.cflow-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px;
}

.cflow-desc {
    font-size: 15px;
    color: #5a6a7e;
    line-height: 1.6;
    margin: 0 0 24px;
}

.cflow-desc--center {
    text-align: center;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Info box (sender info, document info) ─────────────────────── */
.cflow-info-box {
    background: #f8f9fb;
    border: 1px solid #e0e6ee;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.cflow-info-label {
    font-size: 12px;
    color: #9aa5b4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.cflow-info-name {
    font-size: 15px;
    font-weight: 600;
    color: #12294B;
}

.cflow-info-detail {
    font-size: 14px;
    color: #5a6a7e;
    margin-top: 2px;
}

.cflow-info-sep {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e6ee;
}

/* ── Alert boxes (warning, info, success, danger) ─────────────── */
.cflow-alert {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.cflow-alert--warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
}

.cflow-alert--info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
}

.cflow-alert--success {
    background: #e8f5e9;
    border: 1px solid #c5e1a5;
}

.cflow-alert--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.cflow-alert--neutral {
    background: #f8f9fb;
    border: 1px solid #e0e6ee;
}

.cflow-alert-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cflow-alert-title--warning { color: #e65100; }
.cflow-alert-title--info { color: #1565c0; }
.cflow-alert-title--success { color: #33691e; }
.cflow-alert-title--danger { color: #dc2626; }

.cflow-alert ul {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #333;
    font-size: 14px;
}

.cflow-alert-footnote {
    font-size: 13px;
    color: #5a6a7e;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 12px;
    margin-top: 12px;
    line-height: 1.55;
}

/* ── Law quote ────────────────────────────────────────────────────── */
.cflow-law-quote {
    background: #f5f7fb;
    border-left: 3px solid #9aa5b4;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #374151;
    line-height: 1.55;
}

/* ── Check list (with green checks) ───────────────────────────── */
.cflow-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cflow-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.cflow-check-icon {
    color: #2e7d32;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Status icon (centered circle with icon) ──────────────────── */
.cflow-status-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.cflow-status-icon--success {
    background: #e8f5e9;
    color: #2e7d32;
}

.cflow-status-icon--danger {
    background: #fee2e2;
    color: #dc2626;
}

.cflow-status-icon--info {
    background: #e3f2fd;
    color: #1565c0;
}

.cflow-status-icon svg {
    width: 28px;
    height: 28px;
}

/* ── Centered status page ─────────────────────────────────────── */
.cflow-center {
    text-align: center;
}

.cflow-divider {
    height: 1px;
    background: #e0e6ee;
    border: none;
    margin: 24px auto;
    max-width: 200px;
}

.cflow-muted {
    color: #9aa5b4;
    font-size: 14px;
}

.cflow-date {
    color: #5a6a7e;
    font-size: 15px;
    margin-bottom: 16px;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.cflow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-sizing: border-box;
}

.cflow-btn--primary {
    background: linear-gradient(135deg, #3657CD 0%, #12294B 100%);
    color: #fff;
}

.cflow-btn--primary:hover {
    box-shadow: 0 4px 16px rgba(54, 87, 205, 0.3);
}

.cflow-btn--primary:disabled {
    background: #9aa5b4;
    cursor: not-allowed;
    box-shadow: none;
}

.cflow-btn--danger {
    background: #d32f2f;
    color: #fff;
}

.cflow-btn--danger:hover {
    background: #c62828;
}

.cflow-btn--outline {
    background: #fff;
    color: #12294B;
    border: 1.5px solid #e0e6ee;
}

.cflow-btn--outline:hover {
    background: #f8f9fb;
    border-color: #c5cdd8;
}

.cflow-btn--secondary {
    background: #f0f2f7;
    color: #12294B;
}

.cflow-btn--secondary:hover {
    background: #e0e6ee;
}

.cflow-btn--secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cflow-btn--sm {
    padding: 10px 20px;
    font-size: 13px;
}

.cflow-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.cflow-support-link {
    text-align: center;
    font-size: 14px;
    color: #3657CD;
    font-weight: 500;
    padding: 8px;
    text-decoration: none;
}

.cflow-support-link:hover {
    color: #12294B;
    text-decoration: underline;
}

/* ── Checkboxes ───────────────────────────────────────────────────── */
.cflow-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cflow-checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.cflow-checkbox {
    margin-top: 3px;
    min-width: 18px;
    width: 18px;
    height: 18px;
    accent-color: #3657CD;
    cursor: pointer;
}

.cflow-checkbox-label {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.cflow-checkbox-label a {
    color: #3657CD;
    text-decoration: underline;
}

.cflow-checkbox-label a:hover {
    color: #12294B;
}

/* ── Accordion toggle ─────────────────────────────────────────── */
.cflow-accordion-toggle {
    background: none;
    border: none;
    color: #3657CD;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cflow-accordion-toggle:hover {
    color: #12294B;
    text-decoration: underline;
}

.cflow-accordion-content {
    display: none;
    margin-top: 12px;
    padding: 16px;
    background: #f8f9fb;
    border: 1px solid #e0e6ee;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
    color: #333;
}

/* ── OTP cells ────────────────────────────────────────────────────── */
.cflow-otp-cells {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.cflow-otp-cell {
    width: 60px;
    height: 68px;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    border: 2px solid #e0e6ee;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
    color: #12294B;
    background: #fff;
}

.cflow-otp-cell:focus {
    border-color: #3657CD;
    box-shadow: 0 0 0 3px rgba(54, 87, 205, 0.15);
}

.cflow-otp-cell.filled {
    border-color: #2e7d32;
    background: #f1f8e9;
}

.cflow-otp-cell.error {
    border-color: #d32f2f;
    background: #fef2f2;
}

/* ── Error / resend ───────────────────────────────────────────── */
.cflow-error {
    color: #e53935;
    font-size: 13px;
    text-align: center;
}

.cflow-countdown {
    text-align: center;
    font-size: 13px;
    color: #5a6a7e;
}

.cflow-resend-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.cflow-resend-label {
    font-weight: 600;
    font-size: 14px;
    color: #12294B;
    text-align: center;
}

/* ── Textarea ─────────────────────────────────────────────────────── */
.cflow-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e6ee;
    border-radius: 10px;
    font-size: 14px;
    color: #12294B;
    background: #f8f9fb;
    outline: none;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.cflow-textarea:focus {
    border-color: #3657CD;
    box-shadow: 0 0 0 3px rgba(54, 87, 205, 0.12);
    background: #fff;
}

/* ── OTP notice ───────────────────────────────────────────────── */
.cflow-notice {
    background: #f8f9fb;
    border: 1px solid #e0e6ee;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: #5a6a7e;
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ── Document info compact ────────────────────────────────────── */
.cflow-doc-info {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cflow-doc-info-name {
    font-size: 14px;
    color: #12294B;
    font-weight: 600;
}

.cflow-doc-info-status {
    font-size: 13px;
    color: #5a6a7e;
    padding-left: 28px;
    margin-top: 4px;
}

/* ── Blocked page header ──────────────────────────────────────── */
.cflow-blocked-header {
    background: #fef2f2;
    padding: 32px 32px 24px;
    text-align: center;
    border-radius: 16px 16px 0 0;
    margin: -36px -32px 0;
}

.cflow-blocked-body {
    padding: 28px 32px 36px;
}

.cflow-card--flush {
    padding: 0;
    overflow: hidden;
}

.cflow-btn-group--flush { margin-top: 0; }

.cflow-mb-0 { margin-bottom: 0; }
.cflow-divider--full { max-width: none; width: 100%; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .cflow-card {
        margin: 16px auto;
        padding: 24px 18px;
        border-radius: 12px;
    }

    .cflow-title {
        font-size: 20px;
    }

    .cflow-otp-cell {
        width: 50px;
        height: 58px;
        font-size: 1.6rem;
    }

    .cflow-blocked-header {
        margin: -24px -18px 0;
        padding: 24px 18px 20px;
    }
}
