/* --- 1. VARIABLES (Consistent with System) --- */
:root {
    /* Colors */
    --bg-main: #030712;
    --bg-secondary: #0f172a;
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.4);
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.4);
    --error: #ef4444;
    --success: #10b981;
    
    /* Text */
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --text-placeholder: #64748b;

    /* UI */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* Ambient Glows */
.ambient-glow {
    position: fixed; width: 600px; height: 600px;
    border-radius: 50%; filter: blur(140px); z-index: -1; opacity: 0.25;
    pointer-events: none;
}
.glow-1 { top: -150px; left: -150px; background: var(--primary); }
.glow-2 { bottom: -150px; right: -150px; background: var(--accent); }

/* --- 3. FIXED SMART BACK BUTTON --- */
.fixed-back-btn {
    position: fixed;
    top: 24px; right: 24px;
    z-index: 100;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-gray); font-size: 0.9rem; font-weight: 500;
    transition: var(--transition); box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.fixed-back-btn:hover {
    background: rgba(255, 255, 255, 0.1); border-color: var(--text-white);
    color: var(--text-white); transform: translateX(-3px);
}

/* --- 4. LAYOUT & CARD --- */
.support-container {
    width: 100%; min-height: 100vh;
    padding: 80px 24px;
    display: flex; justify-content: center; align-items: flex-start;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 50px;
    width: 100%; max-width: 980px;
    position: relative;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
}
.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

/* --- 5. HEADER --- */
.card-header { text-align: center; margin-bottom: 50px; }
.logo-link { display: inline-block; margin-bottom: 20px; }
.card-logo { 
    height: 50px; width: auto; 
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1)); transition: var(--transition);
}
.logo-link:hover .card-logo { transform: scale(1.05); }
.card-header h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; color: var(--text-white); }
.card-header p { color: var(--text-gray); font-size: 1rem; }

/* --- 6. GRID LAYOUT --- */
.support-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
}

/* --- 7. SIDEBAR (LEFT COL) --- */
.sidebar-block { margin-bottom: 40px; }
.sidebar-block h3 { 
    color: var(--text-white); font-size: 1.1rem; margin-bottom: 16px; 
    display: flex; align-items: center; gap: 10px;
}
.sidebar-block h3 i { color: var(--accent); }

.help-links { list-style: none; padding: 0; }
.help-links li { margin-bottom: 10px; }
.help-links a { color: var(--text-gray); font-size: 0.95rem; display: block; }
.help-links a:hover { color: var(--accent); transform: translateX(4px); }

.contact-email { color: var(--text-white); font-weight: 500; margin-bottom: 16px; font-size: 0.95rem; }
.contact-buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.schedule-text { display: block; font-size: 0.8rem; color: var(--text-placeholder); }

.status-block {
    display: flex; align-items: center; gap: 10px;
    background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 12px; border-radius: var(--radius-sm);
}
.status-indicator { width: 8px; height: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 8px var(--success); }
.status-text { font-size: 0.85rem; color: var(--success); font-weight: 500; }

/* --- 8. FORM (RIGHT COL) --- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-gray); margin-bottom: 8px; font-weight: 500; }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon {
    position: absolute; left: 16px; color: var(--text-placeholder); font-size: 1rem;
    transition: var(--transition); pointer-events: none; z-index: 2;
}

.input-wrapper input, .input-wrapper select, .input-wrapper textarea {
    width: 100%;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px 12px 44px; /* Space for icon */
    color: var(--text-white);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none; appearance: none;
}
.input-wrapper textarea { padding-top: 16px; resize: vertical; min-height: 120px; padding-left: 16px; } /* No icon for textarea usually, but wrapper handles it if needed */
.textarea-wrapper textarea { padding-left: 16px; } /* Override if no icon used */

.input-wrapper input:focus, .input-wrapper select:focus, .input-wrapper textarea:focus {
    border-color: var(--accent); background: rgba(3, 7, 18, 0.8);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}
.input-wrapper input:focus ~ .input-icon { color: var(--accent); }

/* Validation States */
.input-wrapper.valid input { border-color: var(--success); }
.input-wrapper.valid .input-icon { color: var(--success); }
.input-wrapper.invalid input { border-color: var(--error); }
.input-wrapper.invalid .input-icon { color: var(--error); }

.select-wrapper { position: relative; }
.select-arrow {
    position: absolute; right: 16px; color: var(--text-placeholder);
    font-size: 0.8rem; pointer-events: none; transition: var(--transition);
}
.input-wrapper select:focus ~ .select-arrow { color: var(--accent); transform: rotate(180deg); }

.char-count { font-size: 0.75rem; color: var(--text-placeholder); display: block; text-align: right; margin-top: 4px; }

/* File Upload Custom */
.hidden-file-input { display: none; }
.file-upload-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.2); border-radius: var(--radius-sm);
    color: var(--text-gray); cursor: pointer; transition: var(--transition);
    font-size: 0.9rem;
}
.file-upload-btn:hover { background: rgba(255,255,255,0.06); border-color: var(--text-white); color: var(--text-white); }
.file-upload-btn i { color: var(--accent); }

/* Checkbox */
.custom-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text-gray); user-select: none; font-size: 0.9rem; }
.custom-checkbox input { display: none; }
.checkmark {
    width: 18px; height: 18px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    background: rgba(3, 7, 18, 0.6); transition: var(--transition);
}
.custom-checkbox input:checked ~ .checkmark { background: var(--primary); border-color: var(--primary); }
.checkmark::after {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    font-size: 10px; color: white; display: none;
}
.custom-checkbox input:checked ~ .checkmark::after { display: block; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 24px; border-radius: 50px; font-weight: 600; font-size: 1rem;
    transition: var(--transition); width: 100%; text-align: center;
}
.btn-primary {
    background: linear-gradient(90deg, var(--primary), #1d4ed8);
    color: white; box-shadow: 0 4px 20px var(--primary-glow); border: 1px solid transparent;
}
.btn-primary:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--primary-glow); }
.btn-primary:disabled { opacity: 0.7; cursor: wait; }

.btn-outline {
    background: transparent; border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-gray); font-weight: 500;
}
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: var(--text-white); color: var(--text-white); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; width: auto; display: inline-flex; }

/* Success Message */
.success-message {
    text-align: center; padding: 40px 0; animation: fadeIn 0.5s ease;
}
.success-icon {
    width: 60px; height: 60px; background: rgba(16, 185, 129, 0.1);
    color: var(--success); font-size: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px auto; border: 1px solid rgba(16, 185, 129, 0.3);
}
.success-message h2 { color: var(--text-white); margin-bottom: 10px; }
.success-message button { max-width: 200px; margin-top: 20px; }

/* Animations */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.fa-spin { animation: spin 1s linear infinite; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- 9. RESPONSIVE --- */
@media(max-width: 900px) {
    .support-grid { grid-template-columns: 1fr; gap: 30px; }
    .support-sidebar { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
    .sidebar-block { margin-bottom: 0; flex: 1; min-width: 200px; }
}

@media(max-width: 767px) {
    .support-container { padding: 80px 16px 40px; } /* More top padding for back button */
    .glass-card { padding: 30px 20px; }
    .card-header h1 { font-size: 1.8rem; }
    
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .support-sidebar { flex-direction: column; gap: 30px; }
    
    .fixed-back-btn { top: 16px; right: 16px; padding: 8px 16px; font-size: 0.8rem; }
}