/* ==========================================================================
   Quickminutes - 10-Minute Grocery Delivery Account Deletion Portal
   Modern Responsive CSS3 Styling (Mobile First, Play Store Compliant)
   ========================================================================== */

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --brand-yellow: #facc15;
    --brand-accent: #10b981;
    --brand-accent-hover: #059669;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --info: #0284c7;
    --info-light: #f0f9ff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --focus-ring: rgba(16, 185, 129, 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.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    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%, #1e293b 100%);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 50;
}

.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.35rem;
    letter-spacing: -0.5px;
}

.brand-badge {
    background: #facc15;
    color: #0b0f19;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    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: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.header-nav a:hover {
    color: #ffffff;
}

/* Main Container */
.main-wrapper {
    flex: 1;
    max-width: 780px;
    width: 100%;
    margin: 2.5rem 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: var(--shadow-xl);
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
}

.qm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #facc15 0%, #10b981 50%, #0284c7 100%);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--danger-light);
    color: var(--danger);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
}

.card-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
}

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

/* Policy Info Box (Google Play Compliance) */
.policy-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--info);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem;
    margin-bottom: 2rem;
}

.policy-box-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
}

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

.policy-list li {
    position: relative;
    padding-left: 1.25rem;
}

.policy-list li::before {
    content: "•";
    position: absolute;
    left: 0.3rem;
    color: var(--info);
    font-weight: bold;
}

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

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.45rem;
}

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

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

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

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus, .country-select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

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

/* Radio / Select Styling */
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='%2364748b' 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 0.85rem center;
    background-size: 1.1em;
    padding-right: 2.5rem;
    appearance: none;
}

/* Checkbox Custom styling */
.checkbox-card {
    background: #fff8f8;
    border: 1px solid #fee2e2;
    border-radius: var(--radius-sm);
    padding: 1rem 1.15rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin-top: 1.25rem;
    margin-bottom: 1.75rem;
}

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

.checkbox-text {
    font-size: 0.86rem;
    color: #4b5563;
    line-height: 1.45;
}

.checkbox-text strong {
    color: #991b1b;
}

/* Action Buttons */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

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

.btn-secondary {
    background: #f1f5f9;
    color: #334155;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    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.4rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Alert Boxes */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

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

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

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

/* Result / Confirmation View */
.success-card {
    text-align: center;
    padding: 1rem 0;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2);
}

.reference-badge {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 1.15rem;
    margin: 1.5rem 0;
    font-family: monospace;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

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

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

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

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

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

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

.timeline-step.active .timeline-dot {
    border-color: var(--brand-accent);
    background: var(--brand-accent);
}

.timeline-step.completed .timeline-dot {
    border-color: #10b981;
    background: #10b981;
}

.timeline-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

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

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

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

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

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

/* Responsive adjust */
@media (max-width: 640px) {
    .qm-card {
        padding: 1.5rem 1.15rem;
    }
    .card-title {
        font-size: 1.4rem;
    }
    .phone-input-group {
        flex-direction: row;
    }
}
