/* ==========================================================================
   Trustmate - Freelancer Portal Account Deletion Page Styling
   Premium responsive design system with animations and glassmorphism.
   ========================================================================== */

:root {
    --primary: #1e1b4b; /* Deep Indigo Navy */
    --primary-light: #312e81; /* Medium Indigo */
    --brand-accent: #6366f1; /* Vibrant Indigo */
    --brand-accent-hover: #4f46e5;
    --brand-gradient-start: #4f46e5;
    --brand-gradient-end: #8b5cf6; /* Indigo to Purple Gradient */
    --danger: #e11d48; /* Premium Rose Red */
    --danger-light: #fff1f2;
    --warning: #d97706; /* Amber Warning */
    --warning-light: #fef3c7;
    --info: #0284c7; /* Sky Info */
    --info-light: #e0f2fe;
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #475569; /* Slate 600 */
    --bg-page: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-color: #e2e8f0;
    --focus-ring: rgba(99, 102, 241, 0.25);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(99, 102, 241, 0.05), 0 8px 10px -6px rgba(99, 102, 241, 0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background: radial-gradient(at top right, #f5f3ff 0%, #fafafa 50%, #f1f5f9 100%);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navbar */
.qm-header {
    background: linear-gradient(135deg, #0b0f19 0%, #1e1b4b 100%);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 20px rgba(30, 27, 75, 0.15);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif;
}

.brand-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(165, 180, 252, 0.3);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.header-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.header-nav a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

/* Main Container */
.main-wrapper {
    flex: 1;
    max-width: 780px;
    width: 100%;
    margin: 3rem auto;
    padding: 0 1.25rem;
}

/* Card Container */
.qm-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.06), 0 0 0 1px rgba(99, 102, 241, 0.02);
    padding: 2.5rem 2.25rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.qm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
}

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

/* Page Header */
.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--danger-light);
    color: var(--danger);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.8rem;
    box-shadow: 0 8px 16px rgba(225, 29, 72, 0.12);
}

.card-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif;
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 580px;
    margin: 0 auto;
}

/* Policy Info Box */
.policy-box {
    background: #fafbfe;
    border: 1px solid #eef2f6;
    border-left: 4px solid var(--brand-accent);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: inset 0 1px 2px rgba(99, 102, 241, 0.01);
}

.policy-box-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.policy-box-title svg {
    color: var(--brand-accent);
}

.policy-list {
    list-style: none;
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.policy-list li {
    position: relative;
    padding-left: 1.35rem;
    line-height: 1.5;
}

.policy-list li::before {
    content: "•";
    position: absolute;
    left: 0.3rem;
    color: var(--brand-accent);
    font-weight: 900;
    font-size: 1.1rem;
    line-top: -1px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-label .required {
    color: var(--danger);
}

.form-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* Phone Input Combo */
.phone-input-group {
    display: flex;
    gap: 0.75rem;
}

.country-select {
    width: 120px;
    flex-shrink: 0;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:hover, .country-select:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.form-control:focus, .country-select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 4px var(--focus-ring);
    background-color: #ffffff;
    transform: translateY(-1px);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Select Styling Custom dropdown arrow */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1em;
    padding-right: 2.75rem;
    appearance: none;
}

/* Checkbox Custom Card layout */
.checkbox-card {
    background: #fffbfa;
    border: 1px solid #ffebe9;
    border-radius: var(--radius-md);
    padding: 1.15rem 1.35rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    cursor: pointer;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.25s ease;
}

.checkbox-card:hover {
    background: #fff5f4;
    border-color: #ffd1cd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.03);
}

.checkbox-card input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    accent-color: var(--danger);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.5;
}

.checkbox-text strong {
    color: #be123c;
    font-weight: 700;
}

/* Submit Action Button */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
    color: #ffffff;
    padding: 1rem 1.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #4338ca 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -5px rgba(99, 102, 241, 0.45);
}

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

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f1f5f9;
    color: #334155;
    padding: 0.8rem 1.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--primary);
    transform: translateY(-1px);
}

/* Alert Message Boxes */
.alert {
    padding: 1.15rem 1.35rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.75rem;
    font-size: 0.93rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

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

.alert-info {
    background: var(--info-light);
    border: 1px solid #bae6fd;
    color: #0369a1;
}

/* Success Confirmation Screen */
.success-card {
    text-align: center;
    padding: 1.5rem 0;
}

.success-icon {
    width: 74px;
    height: 74px;
    background: #dcfce7;
    color: #10b981;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.reference-badge {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin: 1.75rem 0;
    font-family: monospace;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.reference-label {
    font-size: 0.75rem;
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

/* Status Tracking Timeline */
.timeline {
    margin: 2.5rem 0;
    position: relative;
    padding-left: 2.25rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #e2e8f0;
}

.timeline-step {
    position: relative;
    margin-bottom: 1.75rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.25rem;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #94a3b8;
    transition: all 0.3s ease;
}

.timeline-step.active .timeline-dot {
    border-color: var(--brand-accent);
    background: var(--brand-accent);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.timeline-step.completed .timeline-dot {
    border-color: #10b981;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.timeline-content h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.timeline-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Footer Section */
.qm-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.qm-footer-links {
    margin-top: 0.65rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.qm-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.qm-footer-links a:hover {
    color: var(--brand-accent);
}

/* Responsive Adaptations */
@media (max-width: 640px) {
    .qm-card {
        padding: 1.75rem 1.35rem;
        border-radius: var(--radius-md);
    }
    .card-title {
        font-size: 1.5rem;
    }
    .phone-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    .country-select {
        width: 100%;
    }
    .qm-footer-links {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
}
