:root {
    /* Main background: Airy, modern light gray-blue */
    --bg: #f8fafc; 
    
    /* Card background: Pure white */
    --card: #ffffff; 
    
    /* Primary Aero Blue (#3f6ac9) */
    --mint: #3f6ac9; 
    
    /* Deep Navy for secondary depth and sidebar headers */
    --violet: #1e293b; 
    
    /* Text: High contrast charcoal */
    --text-high: #0f172a; 
    
    /* Muted text: Slate gray */
    --text-low: #64748b; 
    
    /* Subtle blue-tinted border */
    --border: #e2e8f0; 
}

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

body {
    background-color: var(--bg);
    color: var(--text-high);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
}

.ticket-page-wrapper {
    position: relative;
    padding: 60px 5%;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* Subtler Ambient Accents for Light Mode */
.glow-spot {
    position: absolute;
    width: 600px;
    height: 600px;
    filter: blur(140px);
    opacity: 0.05;
    z-index: 0;
}
.top-right { background: var(--mint); top: -200px; right: -100px; }
.bottom-left { background: var(--violet); bottom: -200px; left: -100px; }

/* Main Container */
.ticket-container {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 0.5fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.ticket-form-side {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

/* Header */
.form-header { margin-bottom: 40px; }
.back-link { 
    text-decoration: none; color: var(--text-low); font-size: 0.85rem; 
    font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 20px; 
    transition: 0.2s;
}
.back-link:hover { color: var(--mint); }

.form-header h1 { font-size: 2.5rem; letter-spacing: -1.5px; margin-bottom: 10px; color: var(--text-high); }
.gradient-text { 
    background: linear-gradient(90deg, var(--mint), var(--violet)); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.form-header p { color: var(--text-low); font-weight: 500; }

/* Inputs */
.input-group { margin-bottom: 25px; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 800; margin-bottom: 10px; color: var(--text-high); }

select, input[type="text"], textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 12px;
    color: var(--text-high);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

select:focus, input:focus, textarea:focus { 
    border-color: var(--mint); 
    background: #ffffff; 
    box-shadow: 0 0 0 4px rgba(63, 106, 201, 0.1);
}

textarea { height: 150px; resize: none; }

.input-with-icon { position: relative; display: flex; align-items: center; }
.input-with-icon i { position: absolute; left: 16px; color: var(--text-low); }
.input-with-icon input { padding-left: 45px; }

small { color: var(--text-low); font-size: 0.75rem; margin-top: 8px; display: block; font-weight: 500; }

/* File Upload Zone */
.file-upload-zone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    background: #f8fafc;
    transition: 0.3s;
}
.file-upload-zone:hover { border-color: var(--mint); background: rgba(63, 106, 201, 0.05); }
.file-upload-zone i { font-size: 2rem; color: var(--mint); margin-bottom: 10px; }
.file-upload-zone strong { display: block; margin-bottom: 5px; color: var(--text-high); }
.file-upload-zone span { font-size: 0.8rem; color: var(--text-low); }

.btn-submit-ticket {
    width: 100%;
    background: var(--mint);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-submit-ticket:hover { 
    background: var(--violet);
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(30, 41, 59, 0.15); 
}

/* Sidebar */
.ticket-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-box {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.sidebar-box h4 { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 15px; 
    color: var(--text-low); 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 800;
}
.sidebar-box h4 i { color: var(--mint); }
.sidebar-box p { font-size: 0.85rem; line-height: 1.6; color: var(--text-low); font-weight: 500; }
.sidebar-box strong { color: var(--text-high); font-weight: 800; }

.sidebar-box ul { list-style: none; }
.sidebar-box ul li { font-size: 0.8rem; color: var(--text-low); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.sidebar-box ul li i { color: #10b981; font-size: 0.8rem; }

.status-indicator { display: flex; align-items: center; gap: 12px; font-size: 0.75rem; font-weight: 800; color: var(--text-high); }
.dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; }
.dot.pulsing { animation: pulse-mint-light 2s infinite; }

@keyframes pulse-mint-light {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 900px) {
    .ticket-container { grid-template-columns: 1fr; }
    .ticket-sidebar { order: -1; flex-direction: row; flex-wrap: wrap; }
    .sidebar-box { flex: 1; min-width: 250px; }
    .ticket-form-side { padding: 35px 25px; }
}