/* styles for ResQ */ 
        :root {
            /* Colors */
            --primary: #E63946;
            --primary-hover: #D62828;
            --bg: #F7F7F5;
            --text: #111111;
            --text-light: #555555;
            --secondary: #F59E0B;
            --success: #16A34A;
            --white: #FFFFFF;
            --border: rgba(17, 17, 17, 0.1);
            --input-bg: #F9F9F9;
            
            /* Typography */
            --font-head: 'Space Grotesk', sans-serif;
            --font-body: 'Inter', sans-serif;
            
            /* UI Elements */
            --radius: 20px;
            --radius-sm: 12px;
            --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-body);
            background-color: var(--bg);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        h1, h2, h3, h4, .brand-logo {
            font-family: var(--font-head);
            font-weight: 700;
            line-height: 1.2;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        /* Container */
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* Buttons */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 14px 28px;
            border-radius: var(--radius-sm);
            font-family: var(--font-head);
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            gap: 8px;
        }

        .btn-primary {
            background-color: var(--primary);
            color: var(--white);
        }

        .btn-primary:hover {
            background-color: var(--primary-hover);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
        }
        
        .btn-primary:active {
            transform: translateY(0);
        }

        .btn-primary:disabled {
            background-color: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--text);
            border: 1px solid var(--border);
        }

        .btn-secondary:hover {
            background-color: var(--border);
        }

        .btn-outline {
            background-color: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        /* Navbar */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: rgba(247, 247, 245, 0.9);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 1000;
            border-bottom: 1px solid var(--border);
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 80px;
        }

        .logo-area {
            display: flex;
            flex-direction: column;
        }

        .brand-logo {
            font-size: 1.75rem;
            letter-spacing: -0.05em;
            color: var(--primary);
        }

        .tagline {
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 32px;
        }

        .nav-links a {
            font-weight: 500;
            font-size: 0.95rem;
            transition: var(--transition);
        }

        .nav-links a:hover:not(.btn) {
            color: var(--primary);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text);
            padding: 8px;
        }

        /* Hero Section */
        .hero {
            padding: 160px 0 100px;
            min-height: 100vh;
            display: flex;
            align-items: center;
        }

        .hero-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .hero-text h1 {
            font-size: clamp(3rem, 5vw, 4.5rem);
            margin-bottom: 24px;
            letter-spacing: -0.03em;
        }

        .hero-text .emphasis {
            color: var(--primary);
            display: block;
        }

        .hero-text p {
            font-size: 1.25rem;
            color: var(--text-light);
            margin-bottom: 40px;
            max-width: 90%;
        }

        .hero-actions {
            display: flex;
            gap: 16px;
            align-items: center;
            flex-wrap: wrap;
        }

        .hero-image {
            width: 100%;
            height: 100%;
            border-radius: var(--radius);
            overflow: hidden;
            position: relative;
        }

        .hero-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: var(--radius);
        }
        
        .hero-image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
            border-radius: var(--radius);
        }

        /* How It Works */
        .how-it-works {
            padding: 100px 0;
            background-color: var(--white);
        }

        .section-header {
            text-align: center;
            margin-bottom: 64px;
        }

        .section-header h2 {
            font-size: 2.5rem;
        }

        .steps-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 32px;
        }

        .step-card {
            background: var(--bg);
            padding: 40px 32px;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            text-align: left;
            transition: var(--transition);
        }

        .step-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow);
            border-color: rgba(230, 57, 70, 0.2);
        }

        .step-number {
            font-family: var(--font-head);
            font-size: 1.25rem;
            color: var(--primary);
            font-weight: 700;
            margin-bottom: 16px;
            display: inline-block;
            border-bottom: 2px solid var(--primary);
            padding-bottom: 4px;
        }

        .step-card h3 {
            font-size: 1.5rem;
            margin-bottom: 12px;
        }

        .step-card p {
            color: var(--text-light);
        }

        /* Image Break Section */
        .image-break {
            padding: 40px 0 80px 0;
            background-color: var(--bg);
        }

        .responsive-image {
            width: 100%;
            height: auto;
            max-height: none;
            object-fit: contain;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            display: block;
        }

        /* Report Section */
        .report-section {
            padding: 100px 0;
        }

        .report-card {
            background: var(--white);
            max-width: 800px;
            margin: 0 auto;
            border-radius: var(--radius);
            padding: 64px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
        }

        .report-header {
            text-align: center;
            margin-bottom: 48px;
        }
        
        .report-header h2 {
            font-size: 2.5rem;
            margin-bottom: 12px;
        }
        
        .report-header p {
            color: var(--text-light);
            font-size: 1.1rem;
        }

        .form-group {
            margin-bottom: 32px;
        }

        label {
            display: block;
            font-weight: 600;
            margin-bottom: 8px;
            font-family: var(--font-head);
            font-size: 1.1rem;
        }
        
        .label-desc {
            display: block;
            font-size: 0.9rem;
            color: var(--text-light);
            margin-top: -4px;
            margin-bottom: 12px;
            font-weight: 400;
            font-family: var(--font-body);
        }

        /* Inputs & Selects */
        input[type="text"],
        input[type="tel"],
        select,
        textarea {
            width: 100%;
            padding: 16px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            background-color: var(--input-bg);
            font-family: var(--font-body);
            font-size: 1rem;
            color: var(--text);
            transition: var(--transition);
        }

        input:focus,
        select:focus,
        textarea:focus {
            outline: none;
            border-color: var(--primary);
            background-color: var(--white);
            box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
        }

        textarea {
            resize: vertical;
            min-height: 120px;
        }
        
        select {
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 16px center;
            background-size: 1em;
        }

        /* Photo Upload UI */
        .photo-upload-container {
            border: 2px dashed var(--border);
            border-radius: var(--radius-sm);
            padding: 40px;
            text-align: center;
            background-color: var(--input-bg);
            cursor: pointer;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .photo-upload-container:hover {
            border-color: var(--primary);
            background-color: rgba(230, 57, 70, 0.02);
        }

        .photo-upload-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            pointer-events: none;
        }

        .photo-icon {
            color: var(--primary);
            width: 48px;
            height: 48px;
        }

        .file-input {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }

        #image-preview-container {
            display: none;
            position: relative;
            width: 100%;
            margin-top: 16px;
            border-radius: var(--radius-sm);
            overflow: hidden;
        }

        #image-preview {
            width: 100%;
            max-height: 300px;
            object-fit: contain;
            background-color: #000;
        }

        .change-photo-btn {
            position: absolute;
            bottom: 16px;
            right: 16px;
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 0.9rem;
            cursor: pointer;
            border: none;
            backdrop-filter: blur(4px);
        }

        /* Location Card */
        .location-card {
            background-color: var(--input-bg);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 24px;
        }

        .location-status {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 16px;
            font-weight: 500;
        }
        
        .status-success { color: var(--success); }
        .status-error { color: var(--primary); }

        #manual-location-group {
            display: none;
            margin-top: 16px;
            animation: fadeIn 0.3s ease;
        }
        
        .maps-link-btn {
            display: none; /* Shown via JS */
            margin-top: 12px;
            font-size: 0.9rem;
            color: var(--text-light);
            text-decoration: underline;
        }

        .submit-btn {
            width: 100%;
            padding: 20px;
            font-size: 1.2rem;
            margin-top: 24px;
            box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
        }

        /* Error Messages */
        .error-msg {
            color: var(--primary);
            font-size: 0.85rem;
            margin-top: 6px;
            display: none;
        }

        .input-error {
            border-color: var(--primary) !important;
            background-color: rgba(230, 57, 70, 0.02) !important;
        }

        /* States (Success / Loading) */
        .form-content { display: block; }
        .success-state { 
            display: none; 
            text-align: center;
            padding: 40px 0;
            animation: fadeIn 0.5s ease;
        }
        
        .success-icon {
            width: 80px;
            height: 80px;
            color: var(--success);
            margin-bottom: 24px;
        }
        
        .success-state h3 {
            font-size: 2rem;
            margin-bottom: 16px;
        }
        
        .ref-box {
            background: var(--bg);
            border: 1px dashed var(--border);
            padding: 16px;
            border-radius: var(--radius-sm);
            font-family: monospace;
            font-size: 1.2rem;
            margin: 24px auto;
            max-width: 250px;
            font-weight: bold;
            color: var(--primary);
        }

        /* Footer */
        footer {
            background-color: var(--text);
            color: var(--white);
            padding: 60px 0 32px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin-bottom: 40px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 40px;
        }

        .footer-brand .brand-logo { color: var(--white); }
        .footer-brand p { color: #999; margin-top: 12px; max-width: 300px; }
        
        .footer-links ul {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .footer-links a { color: #ccc; transition: color 0.2s; }
        .footer-links a:hover { color: var(--white); }
        
        .copyright { text-align: center; color: #666; font-size: 0.9rem; }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .hero-content {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .hero-text p {
                margin: 0 auto 40px;
            }
            .hero-actions {
                justify-content: center;
            }
            .hero-image {
                aspect-ratio: 16/9;
            }
            .steps-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }
            
            .nav-links {
                position: absolute;
                top: 80px;
                left: 0;
                width: 100%;
                background-color: var(--white);
                flex-direction: column;
                padding: 24px;
                gap: 24px;
                box-shadow: 0 10px 20px rgba(0,0,0,0.05);
                clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
                transition: clip-path 0.3s ease-in-out;
            }
            
            .nav-links.active {
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            }
            
            .nav-links .btn {
                width: 100%;
            }

            .hero { padding: 120px 0 60px; }
            .hero-text h1 { font-size: 2.5rem; }
            
            .report-card {
                padding: 32px 24px;
                border-radius: 0;
                border-left: none;
                border-right: none;
                box-shadow: none;
                background: transparent;
            }
            
            .report-section {
                padding: 40px 0;
            }

            .footer-grid { grid-template-columns: 1fr; }
        }
    