 /* Variables */
        :root {
            --primary-color: #8e44ad;
            --primary-dark: #7d3c98;
            --primary-light: #c39bd3;
            --secondary-color: #e74c3c;
            --secondary-dark: #c03c9b;
            --accent-color: #3498db;
            --light-color: #f8f9fa;
            --dark-color: #343a40;
            --text-color: #333;
            --text-light: #6c757d;
            --success-color: #2ecc71;
            --warning-color: #f39c12;
            --border-color: #dee2e6;
            --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            --radius: 10px;
            --transition: all 0.3s ease;
        }

        /* Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Open Sans', sans-serif;
            font-size: 16px;
            line-height: 1.6;
            color: var(--text-color);
            background-color: #f5f5f5;
            background-image: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
            min-height: 100vh;
        }

        .container {
            width: 90%;
            max-width: 1280px;
            margin: 0 auto;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            line-height: 1.2;
            color: var(--primary-color);
        }

        a {
            text-decoration: none;
            color: var(--accent-color);
            transition: var(--transition);
        }

        a:hover {
            color: var(--primary-color);
            text-decoration: underline;
        }

        ul {
            list-style: none;
        }

        button {
            cursor: pointer;
            font-family: 'Montserrat', sans-serif;
        }

        .required {
            color: var(--secondary-color);
        }

        .hidden {
            display: none !important;
        }

        /* Header */
        .header {
            background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
            color: white;
            padding: 15px 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }

        .logo-container {
            text-align: center;
        }

        .logo-container h1 {
            color: white;
            font-size: 1.8rem;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo-container h1 i {
            margin-right: 10px;
        }

        .tagline {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 400;
        }

        .nav-language-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            gap: 15px;
        }

        .main-nav {
            width: 100%;
        }

        .mobile-menu-btn {
            background: transparent;
            border: none;
            color: white;
            font-size: 1.5rem;
            display: block;
            margin: 0 auto;
        }

        .nav-links {
            display: none;
            flex-direction: column;
            width: 100%;
            gap: 10px;
            margin-top: 10px;
        }

        .nav-links.active {
            display: flex;
        }

        .nav-links li a {
            color: white;
            padding: 10px 15px;
            border-radius: 5px;
            display: flex;
            align-items: center;
            background-color: rgba(255, 255, 255, 0.1);
            transition: var(--transition);
            font-weight: 600;
            text-decoration: none;
        }

        .nav-links li a i {
            margin-right: 8px;
        }

        .nav-links li a:hover {
            background-color: rgba(255, 255, 255, 0.2);
            text-decoration: none;
        }

        .language-selector {
            position: relative;
        }

        .language-dropdown {
            background-color: rgba(255, 255, 255, 0.2);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 8px 12px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.95rem;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
            background-repeat: no-repeat;
            background-position: right 8px center;
            padding-right: 30px;
        }

        .language-dropdown:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
        }

        /* Main Content Layout */
        .main-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 25px;
            padding: 30px 0;
        }

        .card-section {
            background-color: white;
            border-radius: var(--radius);
            padding: 25px;
            box-shadow: var(--shadow);
            margin-bottom: 25px;
        }

        .card-section h2 {
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border-color);
            display: flex;
            align-items: center;
        }

        .card-section h2 i {
            margin-right: 10px;
        }

        /* Emergency SOS Section */
        .emergency-section {
            text-align: center;
        }

        .emergency-description {
            margin-bottom: 20px;
            font-size: 1.1rem;
            color: var(--text-color);
        }

        .sos-button {
            background-color: var(--secondary-color);
            color: white;
            border: none;
            padding: 20px 40px;
            border-radius: 50px;
            font-size: 1.3rem;
            font-weight: 700;
            letter-spacing: 1px;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
        }

        .sos-button i {
            margin-right: 10px;
        }

        .sos-button:hover {
            background-color: var(--secondary-dark);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
        }

        .pulse-animation {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
            }
            70% {
                transform: scale(1.05);
                box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
            }
        }

        /* Form Styles */
        .report-section {
            margin-bottom: 40px;
        }

        .progress-container {
            margin-bottom: 25px;
        }

        .progress-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            font-weight: 600;
            color: var(--text-light);
        }

        .progress-bar {
            height: 8px;
            background-color: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
        }

        .progress {
            height: 100%;
            background: linear-gradient(to right, var(--primary-color), var(--primary-light));
            transition: width 0.3s ease;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            margin-bottom: 5px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text-color);
        }

        .form-input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 5px;
            font-size: 1rem;
            transition: var(--transition);
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
        }

        .location-input-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .detect-location-btn {
            background-color: var(--accent-color);
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 5px;
            font-weight: 600;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .detect-location-btn i {
            margin-right: 8px;
        }

        .detect-location-btn:hover {
            background-color: #2980b9;
        }

        .file-input {
            padding: 10px;
        }

        .input-help {
            font-size: 0.85rem;
            color: var(--text-light);
            margin-top: 5px;
        }

        .checkbox-container {
            display: flex;
            align-items: flex-start;
            position: relative;
            padding-left: 35px;
            cursor: pointer;
            user-select: none;
        }

        .checkbox-container input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            height: 0;
            width: 0;
        }

        .checkmark {
            position: absolute;
            top: 0;
            left: 0;
            height: 24px;
            width: 24px;
            background-color: #eee;
            border: 1px solid var(--border-color);
            border-radius: 3px;
        }

        .checkbox-container:hover input ~ .checkmark {
            background-color: #ccc;
        }

        .checkbox-container input:checked ~ .checkmark {
            background-color: var(--primary-color);
        }

        .checkmark:after {
            content: "";
            position: absolute;
            display: none;
        }

        .checkbox-container input:checked ~ .checkmark:after {
            display: block;
        }

        .checkbox-container .checkmark:after {
            left: 9px;
            top: 5px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        .checkbox-text {
            font-size: 0.95rem;
            position: relative;
            top: 2px;
        }

        .consent-group {
            margin: 30px 0;
        }

        .submit-button {
            background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 5px;
            font-size: 1.1rem;
            font-weight: 600;
            transition: var(--transition);
            display: block;
            width: 100%;
        }

        .submit-button:hover {
            background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        /* Knowledge Center Styles */
        .accordion-item {
            border: 1px solid var(--border-color);
            border-radius: 5px;
            margin-bottom: 15px;
            overflow: hidden;
        }

        .accordion-header {
            background-color: var(--light-color);
            padding: 15px 20px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
            transition: var(--transition);
        }

        .accordion-header:hover {
            background-color: #e9ecef;
        }

        .accordion-icon {
            transition: transform 0.3s ease;
        }

        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out, padding 0.4s ease-out;
            background-color: white;
            padding: 0 20px;
        }

        .accordion-item.active .accordion-header {
            background-color: var(--primary-light);
            color: white;
        }

        .accordion-item.active .accordion-icon {
            transform: rotate(180deg);
        }

        .accordion-item.active .accordion-content {
            max-height: 500px;
            padding: 20px;
            transition: max-height 0.4s ease-in, padding 0.4s ease-in;
        }

        .accordion-content p, .accordion-content ul {
            margin-bottom: 15px;
        }

        .accordion-content ul {
            list-style-type: disc;
            padding-left: 20px;
        }

        .accordion-content li {
            margin-bottom: 8px;
        }

        /* Emergency Contacts Styles */
        .contact-cards {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin-top: 20px;
        }

        .contact-card {
            background-color: var(--light-color);
            border-radius: var(--radius);
            padding: 20px;
            transition: var(--transition);
            border-left: 5px solid var(--primary-color);
        }

        .contact-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow);
        }

        .contact-icon {
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 15px;
            text-align: center;
        }

        .contact-card h3 {
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .contact-detail {
            margin-bottom: 8px;
            display: flex;
            align-items: center;
        }

        .detail-label {
            font-weight: 600;
            margin-right: 5px;
            color: var(--text-light);
            min-width: 50px;
        }

        .contact-description {
            margin-top: 10px;
            font-size: 0.9rem;
            color: var(--text-light);
        }

        /* Footer Styles */
        .footer {
            background-color: var(--dark-color);
            color: white;
            padding-top: 40px;
            margin-top: 40px;
        }

        .footer-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
            padding-bottom: 30px;
        }

        .footer-section h3 {
            color: white;
            margin-bottom: 20px;
            font-size: 1.2rem;
        }

        .footer-section p {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.95rem;
        }

        .footer-section ul li {
            margin-bottom: 10px;
        }

        .footer-section ul li a {
            color: rgba(255, 255, 255, 0.7);
        }

        .footer-section ul li a:hover {
            color: white;
            text-decoration: none;
        }

        .footer-bottom {
            background-color: rgba(0, 0, 0, 0.2);
            padding: 20px 0;
            text-align: center;
        }

        .copyright {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        .emergency-note {
            font-weight: 600;
            font-size: 0.95rem;
        }

        .emergency-note a {
            color: var(--secondary-color);
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            overflow: auto;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background-color: white;
            border-radius: var(--radius);
            max-width: 90%;
            width: 500px;
            margin: 20px;
            position: relative;
            box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
            animation: modalOpen 0.3s ease;
        }

        @keyframes modalOpen {
            from { transform: scale(0.9); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .sos-modal {
            max-width: 90%;
            width: 480px;
        }

        .modal-header {
            background-color: var(--secondary-color);
            color: white;
            padding: 15px 20px;
            border-radius: var(--radius) var(--radius) 0 0;
        }

        .modal-header h2 {
            color: white;
            font-size: 1.3rem;
            margin: 0;
            display: flex;
            align-items: center;
        }

        .modal-header h2 i {
            margin-right: 10px;
        }

        .modal-body {
            padding: 25px;
            text-align: center;
        }

        .cancel-sos-button {
            background-color: var(--text-light);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 5px;
            font-weight: 600;
            transition: var(--transition);
            margin-top: 10px;
        }

        .cancel-sos-button:hover {
            background-color: var(--dark-color);
        }

        .alert-sent {
            margin-top: 20px;
            padding: 15px;
            background-color: #eaf8f0;
            color: var(--success-color);
            border: 1px solid var(--success-color);
            border-radius: 5px;
            font-weight: 600;
        }

        .alert-sent i {
            margin-right: 8px;
        }

        .confirmation-modal {
            padding: 30px;
            text-align: center;
        }

        .close-modal {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-light);
        }

        .close-modal:hover {
            color: var(--text-color);
        }

        .success-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 70px;
            height: 70px;
            background-color: var(--success-color);
            color: white;
            font-size: 2rem;
            border-radius: 50%;
            margin: 0 auto 20px;
        }

        .confirmation-modal h2 {
            color: var(--success-color);
            margin-bottom: 15px;
        }

        .confirmation-modal p {
            margin-bottom: 15px;
        }

        .ref-number {
            background-color: var(--light-color);
            padding: 15px;
            border-radius: 5px;
            margin: 20px 0;
            font-size: 1.1rem;
        }

        .follow-up {
            font-weight: 600;
            margin-bottom: 25px;
        }

        .close-button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 5px;
            font-weight: 600;
        }

        .close-button:hover {
            background-color: var(--primary-dark);
        }

        /* Voice Assistant Styles */
        .voice-assist-container {
            margin-bottom: 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }

        .voice-assist-button {
            background-color: var(--accent-color);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 5px;
            font-weight: 600;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1rem;
        }

        .voice-assist-button:hover {
            background-color: #2980b9;
        }

        .voice-assist-button.active {
            background-color: var(--success-color);
            animation: pulse-green 2s infinite;
        }
        
        .voice-assist-button.off {
            background-color: var(--text-light);
        }
        .voice-assist-button.off:hover {
            background-color: var(--dark-color);
        }


        .voice-status {
            font-weight: 600;
            color: var(--text-light);
            background-color: #f0f0f0;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
        }

        @keyframes pulse-green {
            0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
            100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
        }
        
        /* NEW: SOS Modal Content Styles */
        .sos-status {
            font-size: 1.1rem;
            margin-bottom: 20px;
        }
        
        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid var(--secondary-color);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .nearby-services {
            text-align: left;
            margin-top: 20px;
        }
        
        .nearby-services h4 {
            color: var(--primary-dark);
            margin-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 5px;
        }

        .service-item {
            padding: 8px;
            border-radius: 5px;
            margin-bottom: 8px;
            background-color: var(--light-color);
            display: flex;
            align-items: center;
        }
        
        .service-item i {
            margin-right: 10px;
            color: var(--primary-color);
        }
        
        .service-item .distance {
            margin-left: auto;
            font-weight: 600;
            color: var(--text-light);
            font-size: 0.9rem;
        }


        /* Responsive Styles */
        @media (min-width: 576px) {
            .form-row {
                grid-template-columns: 1fr 1fr;
            }
            .location-input-container {
                flex-direction: row;
            }
            .detect-location-btn {
                flex-shrink: 0;
            }
            .contact-cards {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 768px) {
            .header-container {
                flex-direction: row;
                justify-content: space-between;
            }
            .logo-container {
                text-align: left;
            }
            .logo-container h1 {
                justify-content: flex-start;
                font-size: 1.5rem;
            }
            .nav-language-container {
                flex-direction: row;
                justify-content: flex-end;
                width: auto;
            }
            .mobile-menu-btn {
                display: none;
            }
            .nav-links {
                display: flex;
                flex-direction: row;
                width: auto;
                margin-top: 0;
            }
            .main-content {
                grid-template-columns: 3fr 2fr;
            }
            .footer-container {
                grid-template-columns: 2fr 1fr 1fr;
            }
        }

        @media (min-width: 992px) {
            .logo-container h1 {
                font-size: 1.8rem;
            }
            .contact-cards {
                grid-template-columns: repeat(2, 1fr);
            }
            .sos-button {
                font-size: 1.5rem;
                padding: 20px 50px;
            }
        }

        @media (min-width: 1200px) {
            .main-content {
                gap: 30px;
                grid-template-columns: 5fr 4fr;
            }
        }