/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #2c3e50;
    --accent-color: #16a085;
    --danger-color: #e74c3c;
    --danger-hover: #c0392b;
    --white: #ffffff;
    --text-muted: #666;
    --border-color: #e1e4e8;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--primary-color);
    background-color: #f0f2f5;
    min-height: 100vh;
    padding-top: 80px;

    /* SAME BACKGROUND AS ACCOUNT/LOGIN */
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1920') no-repeat center center fixed;
    background-size: cover;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.75);
    backdrop-filter: blur(3px);
    z-index: -1;
}

/* =========================================
   2. NAVBAR (Locked)
   ========================================= */
.navbar {
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* =========================================
   3. HELP CONTAINER
   ========================================= */
.help-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.help-card {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    /* Wider than login for better button layout */
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.help-header h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--danger-color);
    /* Red for urgency */
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.help-header p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* =========================================
   4. URGENT BUTTONS
   ========================================= */
.urgent-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.emergency-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.emergency-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.police-btn {
    background-color: #fff5f5;
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.helpline-btn {
    background-color: #e8f8f5;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-text {
    text-align: left;
    line-height: 1.2;
}

.btn-text strong {
    display: block;
    font-size: 1.1rem;
}

.btn-text span {
    font-size: 0.85rem;
}

.icon {
    font-size: 2rem;
}

/* =========================================
   5. SOS SECTION
   ========================================= */
.sos-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.sos-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.sos-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.btn-sos {
    width: 100%;
    padding: 15px;
    background-color: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: background 0.3s, transform 0.2s;
    animation: pulse 2s infinite;
}

.btn-sos:hover {
    background-color: var(--danger-hover);
    transform: scale(1.02);
}

.location-status {
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.location-status span {
    color: var(--accent-color);
}

.sos-note {
    font-size: 0.75rem;
    color: #999;
    margin-top: 10px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 30px 0;
}

/* =========================================
   6. DIRECTORY & FORM
   ========================================= */
.directory-section h3,
.contact-form-section h3 {
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.dir-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dir-item:last-child {
    border-bottom: none;
}

.dir-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.dir-info {
    flex: 1;
    text-align: left;
}

.dir-info strong {
    display: block;
    font-size: 0.95rem;
}

.dir-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.call-link {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 5px 10px;
    background: #e8f8f5;
    border-radius: 4px;
}

/* Form Styles (Matching Account/Login) */
.contact-form-section {
    margin-top: 30px;
    text-align: left;
}

.contact-form-section p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.professional-form .form-group {
    margin-bottom: 15px;
}

.professional-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.professional-form select,
.professional-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #f9f9f9;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
}

.professional-form select:focus,
.professional-form textarea:focus {
    background-color: white;
    outline: none;
    border-color: var(--accent-color);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #1a252f;
}

/* Responsive */
@media (max-width: 600px) {
    .urgent-grid {
        flex-direction: column;
    }

    .help-card {
        padding: 25px 20px;
    }
}