* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    color: #222;
}

/* =========================
HEADER
========================= */

header {
    background: #c8102e;
    color: white;
    padding: 25px 20px 0;
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.flag-container {
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.nepal-flag {
    width: 58px;
    height: auto;
    display: block;
}

.brand h1 {
    margin: 0 0 6px;
    font-size: 2.2rem;
}

.brand p {
    margin: 0;
    font-size: 1.05rem;
    opacity: 0.95;
}

/* =========================
NAVIGATION
========================= */

nav {
    display: flex;
    gap: 5px;
    margin-top: 25px;
    padding-top: 5px;
    border-top: 2px solid #003893;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 18px;
    border-radius: 8px 8px 0 0;
    transition: background 0.2s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* =========================
MAIN CONTENT
========================= */

main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

h2 {
    margin-bottom: 25px;
}

/* =========================
PEOPLE GRID
========================= */

#people-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.person-card {
    background: white;
    border: 1px solid #d6d6d6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.person-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.person-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    display: block;
    background: #eeeeee;
}

.person-info {
    padding: 20px;
}

.person-info h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}

.person-info p {
    margin: 7px 0;
    color: #444;
}

.no-photo {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eeeeee;
    color: #777;
    font-size: 0.95rem;
}

.case-id {
    margin: -5px 0 14px;
    color: #666;
    font-size: 0.9rem;
}

.case-id strong {
    color: #444;
}

/* =========================
STATUS
========================= */

.status {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.status-missing {
    background: #c8102e;
}

.status-found {
    background: #2e7d32;
}

.status-closed {
    background: #777777;
}

/* =========================
DETAILS BUTTON
========================= */

.details-button {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 11px;
    border: none;
    border-radius: 6px;
    background: #c8102e;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.details-button:hover {
    background: #002b70;
}

/* =========================
SEARCH
========================= */

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    max-width: 700px;
}

#search-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

#search-input:focus {
    outline: none;
    border-color: #c8102e;
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.15);
}

#search-button {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    background: #003893;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

#search-button:hover {
    background: #002b70;
}

#search-button:active {
    transform: translateY(1px);
}

#load-more {
    display: block;
    margin: 35px auto 10px;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    background: #e8f0fa;
    color: #003893;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

#load-more:hover {
    background: #dbe7f6;
    border-color: #003893;
}

#load-more:active {
    transform: translateY(1px);
}

/* =========================
CONTACT PAGE
========================= */

.contact-section {
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.contact-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.contact-section p {
    max-width: 750px;
    line-height: 1.6;
    color: #444;
}

.contact-section ul {
    margin: 15px 0 20px;
    padding-left: 25px;
    color: #444;
    line-height: 1.8;
}

.email-box a {
    color: #003893;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    overflow-wrap: anywhere;
}


/* =========================
EMERGENCY CONTACTS
========================= */

.emergency-section {
    margin-top: 20px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.emergency-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.emergency-warning {
    margin-bottom: 25px;
    padding: 16px 18px;
    background: #fff5f5;
    border-left: 4px solid #c8102e;
    border-radius: 6px;
    color: #444;
    line-height: 1.6;
}

.emergency-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.emergency-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    background: #fafafa;
}

.emergency-card h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.emergency-card p {
    margin: 0;
    color: #666;
    line-height: 1.4;
}

.emergency-number {
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #003893;
    text-decoration: none;
    padding: 8px 12px;
}

.emergency-number:hover {
    text-decoration: underline;
}

.emergency-note {
    margin-top: 25px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =========================
PERSON DESCRIPTION
========================= */

.person-description {
    display: none;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #d6d6d6;
    color: #444;
    line-height: 1.6;
}

.person-description p {
    margin: 8px 0 0;
}

.person-description.show {
    display: block;
}

/* =========================
SUBMIT INFORMATION
========================= */

.submission-section {
    margin-top: 20px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.submission-header h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.submission-header p {
    max-width: 800px;
    color: #444;
    line-height: 1.6;
}

.submission-notice {
    margin: 25px 0 30px;
    padding: 16px 18px;
    background: #fff5f5;
    border-left: 4px solid #c8102e;
    border-radius: 6px;
    color: #444;
    line-height: 1.6;
}

.form-section {
    margin-top: 25px;
    padding: 25px;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    background: #fafafa;
}

.form-section h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: #222;
}

.form-section-description {
    margin-top: 0;
    margin-bottom: 22px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.required {
    color: #c8102e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    color: #222;
    font-family: Arial, sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c8102e;
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.15);
}

.form-group input[type="file"] {
    padding: 10px;
}

.form-group small {
    display: block;
    margin-top: 7px;
    color: #666;
    line-height: 1.5;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
}

.checkbox-group input {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    color: #444;
    line-height: 1.5;
    font-weight: normal;
}

.submission-actions {
    margin-top: 30px;
    text-align: center;
}

#submit-report-button {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    background: #c8102e;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

#submit-report-button:hover {
    background: #002b70;
}

#submit-report-button:active {
    transform: translateY(1px);
}

#submit-report-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submission-actions p {
    max-width: 650px;
    margin: 12px auto 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.submission-success {
    margin-top: 25px;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #d6d6d6;
    background: #fafafa;
    text-align: center;
}

.submission-success h2 {
    margin-top: 0;
    color: #003893;
}

.submission-success p {
    color: #444;
    line-height: 1.6;
}

.submission-reference {
    display: inline-block;
    margin: 8px 0 15px;
    padding: 12px 18px;
    border-radius: 8px;
    background: #e8f0fa;
    color: #003893;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.return-home-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 22px;
    border-radius: 8px;
    background: #003893;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.return-home-button:hover {
    background: #002b70;
}


/* =========================
MOBILE
========================= */

@media (max-width: 600px) {

    .emergency-section {
        padding: 20px;
    }

    .emergency-list {
        grid-template-columns: 1fr;
    }

    .emergency-card {
        padding: 16px;
    }

    .emergency-number {
        font-size: 1.4rem;
    }

    header {
        padding: 20px 15px 0;
    }

    .brand {
        align-items: flex-start;
        gap: 12px;
    }

    .flag-container {
        width: 65px;
        height: 65px;
    }

    .nepal-flag {
        width: 45px;
    }

    .brand h1 {
        font-size: 1.6rem;
    }

    .brand p {
        font-size: 0.95rem;
    }

    nav {
        display: flex;
        gap: 5px;
        margin-top: 25px;
        padding-top: 5px;
        border-top: 2px solid #003893;
    }

    nav a {
        flex: 1;
        text-align: center;
        padding: 11px 8px;
        font-size: 0.9rem;
    }

    .search-container {
        flex-direction: column;
    }

    #search-button {
        width: 100%;
    }

    #load-more {
        width: 100%;
        margin-top: 30px;
    }

    /* ===== SUBMISSION form  ===== */
    .submission-section {
        padding: 20px;
    }

    .form-section {
        padding: 18px;
    }

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

    #submit-report-button {
        width: 100%;
    }

}



