/* Public Complaint Form Styles */

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

:root {
    --primary-color: #f5b400; /* Gold/Yellow Accent */
    --secondary-color: #fff; /* White Text */
    --bg-dark: #0a0f1c; /* Dark Blue Background */
    --bg-mid: #10182f; /* Slightly lighter dark background */
    --text-light: #aaaaaa; /* Lighter grey for meta info */
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    color: var(--secondary-color);
    padding-top: 80px; /* Account for fixed navbar */
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 15px 0;
    transition: background 0.3s, padding 0.3s;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(16, 24, 47, 0.95);
    backdrop-filter: blur(6px);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-area img {
    width: 80px;
}
.logo-area h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    line-height: 1.2;
}
.logo-area h2 span {
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    position: relative;
}
.nav-menu > li {
    position: relative;
}
.nav-menu li a {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
    display: inline-block;
}
.nav-menu li a:hover {
    color: var(--primary-color);
}
.nav-menu li a i {
    font-size: 0.7rem;
    margin-left: 5px;
}

.language-dropdown .lang-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
}

.language-dropdown .lang-button:hover {
    border-color: var(--primary-color);
}

.lang-icon {
    font-size: 1.2rem;
    margin-right: 5px;
}

.lang-menu {
    min-width: 150px;
    left: auto;
    right: 0;
}

.lang-menu li a {
    padding: 8px 15px;
    display: flex;
    align-items: center;
}

.lang-menu li a .lang-icon {
    margin-right: 8px;
    font-size: 1rem;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-mid);
    padding: 10px 0;
    min-width: 220px;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--secondary-color);
    font-size: 0.95rem;
    white-space: nowrap;
}
.dropdown-menu li a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-color);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Background Image */
#video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    opacity: 0.3;
}

/* Gradient Overlay - Removed for dark theme */

/* Header Bar */
.head-bar {
    position: fixed;
    top: 0;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 100;
    padding: 15px 0;
}

.contact-info {
    color: #fff;
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

/* Header */
header {
    text-align: center;
    padding: 120px 20px 40px;
    color: #fff;
}

header img {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header img:last-child {
    width: 60px;
    margin-top: 10px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Form Card */
.form-card {
    background: var(--bg-mid);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Header */
.form-header {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 40px 30px;
    text-align: center;
    border-bottom: 5px solid var(--secondary-color);
}

.form-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header p {
    font-size: 1.1rem;
    color: var(--bg-dark);
    opacity: 0.8;
}

/* Progress Container */
.progress-container {
    padding: 20px 30px;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
}

/* Form Body */
.form-body {
    padding: 30px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Form Labels */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-mid);
    color: var(--primary-color);
}

    .form-input:focus {
        outline: none;
        border-color: var(--bg-dark);
        box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.1);
        background: rgba(255, 255, 255, 0.1);
    }

.form-select {
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Status Icons */
.status-icon {
    position: absolute;
    right: 15px;
    top: 45px;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Validation States */
.form-group.error .form-input {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group.success .form-input {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group.error .status-icon,
.form-group.success .status-icon {
    opacity: 1;
}

.form-group.error .status-icon:before {
    content: '✕';
    color: #dc3545;
}

.form-group.success .status-icon:before {
    content: '✓';
    color: #28a745;
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

/* File Upload */
.form-file {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.form-file:hover {
    border-color: var(--primary-color);
    background: rgba(245, 180, 0, 0.05);
}

.form-file input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.file-text {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.file-note {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Status Messages */
.status-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 140px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 180, 0, 0.4);
}

.btn-secondary {
    background: var(--bg-mid);
    color: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Location Container */
.location-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.location-container .form-input {
    flex: 1;
}

.location-btn {
    flex-shrink: 0;
    padding: 12px 16px !important;
}

/* Textarea Container */
.textarea-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.textarea-container .form-textarea {
    flex: 1;
}

.voice-btn {
    flex-shrink: 0;
    padding: 12px 16px !important;
}

.voice-btn.recording {
    background: #dc3545 !important;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.voice-status {
    margin-top: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 1.2em;
}

.voice-lang-selector {
    width: 150px;
    margin-right: 10px;
    font-size: 0.85rem;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: var(--secondary-color);
}

.voice-lang-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.voice-lang-selector option {
    background: var(--bg-mid);
    color: var(--secondary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
}

/* Mobile Menu and Responsiveness */
@media (max-width: 768px) {
    .logo-area h2 {
        font-size: 1.2rem;
    }
    .logo-area h2 span {
        font-size: 0.8rem;
    }

    /* Mobile Nav */
    .nav-menu {
        display: none;
        flex-direction: column;
        background: rgba(16, 24, 47, 0.98);
        position: absolute;
        right: 0;
        top: 70px;
        width: 250px;
        padding: 20px;
        text-align: left;
        border-radius: 0 0 5px 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-menu li:last-child {
        border-bottom: none;
    }
    .nav-menu li a {
        padding: 10px 0;
        display: block;
    }

    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        background: rgba(20, 25, 40, 0.9);
        border: none;
        box-shadow: none;
        padding-left: 15px;
        min-width: unset;
        border-top: none;
    }
    /* Show mobile dropdown on click */
    .dropdown.active > .dropdown-menu {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    header h1 {
        font-size: 2rem;
    }

    .head-bar {
        right: 10px;
    }

    .form-header {
        padding: 30px 20px;
    }

    .form-header h1 {
        font-size: 1.8rem;
    }

    .form-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 100px 20px 30px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .form-header h1 {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 15px;
    }
}
