* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 16px;
}

.container {
    width: 100%;
    max-width: 650px;
    background: white;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .container {
        padding: 32px;
    }
}

h1 {
    text-align: center;
    color: #673DE6;
    margin-bottom: 8px;
    font-size: 24px;
}

@media (min-width: 768px) {
    h1 {
        font-size: 28px;
    }
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

/* Form Groups - Spacious Layout */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

label i {
    color: #673DE6;
    margin-right: 8px;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

/* Prevent zoom on mobile */
input[type="text"],
input[type="email"],
select,
textarea,
button {
    font-size: 16px;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #673DE6;
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 8px 0;
    cursor: pointer;
}

.checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #673DE6;
}

.checkbox span {
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

button {
    width: 100%;
    padding: 16px;
    background: #673DE6;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button:hover {
    background: #5b30d4;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.footer {
    text-align: center;
    margin-top: 25px;
    font-size: 12px;
    color: #999;
}

.logo {
    text-align: center;
    font-size: 48px;
    margin-bottom: 12px;
}

.student-id-box {
    display: flex;
    margin-bottom: 0;
}

.prefix {
    background: #673DE6;
    color: white;
    padding: 14px 18px;
    border-radius: 12px 0 0 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.student-id-box input {
    border-radius: 0 12px 12px 0;
    margin-bottom: 0;
}

/* ============================================
   NEW STYLES ADDED
   ============================================ */

/* AIU Logo Styles */
.aiu-logo {
    text-align: center;
    margin-bottom: 16px;
}

.aiu-logo img {
    max-width: 140px;
    height: auto;
    display: inline-block;
}

@media (min-width: 768px) {
    .aiu-logo img {
        max-width: 160px;
    }
}

/* Detected Location Badge */
.detected-location {
    background: #f0eaff;
    border-left: 4px solid #673DE6;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detected-location i {
    color: #673DE6;
    font-size: 18px;
}

.detected-location.error {
    background: #fee2e2;
    border-left-color: #dc2626;
    color: #dc2626;
}

.detected-location.error i {
    color: #dc2626;
}

/* Track Complaint Link */
.track-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.track-link a {
    color: #673DE6;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.track-link a:hover {
    text-decoration: underline;
}

/* File input styling */
input[type="file"] {
    padding: 12px;
    border: 1.5px dashed #ccc;
    border-radius: 12px;
    width: 100%;
    background: #fafafa;
    font-size: 14px;
}

input[type="file"]:hover {
    border-color: #673DE6;
    background: #f5f0ff;
}

/* Helper text styling */
.help-text {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 6px;
}

/* Required and optional indicators */
.required {
    color: #e53e3e;
    font-size: 12px;
    font-weight: normal;
}

.optional {
    color: #999;
    font-weight: normal;
    font-size: 12px;
}

/* Disabled fields for anonymous */
.disabled-field {
    opacity: 0.6;
}

.disabled-field input,
.disabled-field input:disabled,
.disabled-field input[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    body {
        padding: 12px;
    }
    
    .container {
        padding: 20px;
        border-radius: 20px;
    }
    
    .student-id-box {
        flex-wrap: nowrap;
    }
    
    .prefix {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    input[type="text"],
    input[type="email"],
    select,
    textarea {
        padding: 12px 14px;
    }
    
    .checkbox {
        margin-bottom: 16px;
    }
    
    button {
        padding: 14px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .logo {
        font-size: 40px;
    }
    
    .prefix {
        padding: 10px 12px;
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS - Success & Track Pages
   (These ONLY affect mobile screens, desktop remains perfect)
   ============================================ */

/* Success Page Mobile Optimizations */
@media (max-width: 640px) {
    .success-container {
        padding: 20px 16px !important;
    }
    
    .success-icon {
        font-size: 60px !important;
        margin-bottom: 16px !important;
    }
    
    .success-container h1 {
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }
    
    .ticket-box {
        padding: 20px 16px !important;
        margin: 20px 0 !important;
    }
    
    .ticket-label {
        font-size: 12px !important;
    }
    
    .ticket-number {
        font-size: 24px !important;
        word-break: break-all !important;
    }
    
    .action-buttons {
        gap: 10px !important;
        margin: 16px 0 !important;
        flex-wrap: wrap !important;
    }
    
    .action-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    .email-confirm, .warning-box, .info-box {
        padding: 12px !important;
        font-size: 13px !important;
        margin: 16px 0 !important;
    }
    
    .buttons {
        gap: 12px !important;
        margin-top: 20px !important;
        flex-direction: column !important;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 20px !important;
        font-size: 14px !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }
    
    hr {
        margin: 20px 0 !important;
    }
}

/* Track Page Mobile Optimizations */
@media (max-width: 640px) {
    .track-container {
        padding: 20px 16px !important;
    }
    
    .track-container h1 {
        font-size: 22px !important;
    }
    
    .track-container .subtitle {
        font-size: 13px !important;
        margin-bottom: 20px !important;
    }
    
    .track-form {
        padding: 20px !important;
    }
    
    .track-input-group {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .track-input-group input {
        padding: 14px !important;
        font-size: 16px !important;
    }
    
    .track-input-group button {
        padding: 14px !important;
        font-size: 16px !important;
        width: 100% !important;
    }
    
    .complaint-card {
        margin-top: 20px !important;
    }
    
    .status-header {
        padding: 16px !important;
    }
    
    .status-header h2 {
        font-size: 18px !important;
    }
    
    .complaint-details {
        padding: 16px !important;
    }
    
    .detail-row {
        flex-direction: column !important;
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
    }
    
    .detail-label {
        width: 100% !important;
        margin-bottom: 6px !important;
        font-size: 13px !important;
    }
    
    .detail-value {
        font-size: 14px !important;
    }
    
    .back-link {
        margin-top: 20px !important;
    }
}

/* Extra small phones (under 480px) */
@media (max-width: 480px) {
    .success-icon {
        font-size: 50px !important;
    }
    
    .ticket-number {
        font-size: 20px !important;
    }
    
    .action-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 16px !important;
    }
    
    .track-container h1 {
        font-size: 20px !important;
    }
}