/* =========================================
   NAMMUDE — REPORT PAGE
   Clean Blue Theme
   Dark Mode
   Responsive: Mobile • Tablet • Desktop
========================================= */


/* =========================================
   1. REPORT PAGE
========================================= */

.report-page {
    background: #f7f9fc;
    min-height: 100vh;
    padding: 60px 0 90px;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.25s ease;
}


/* =========================================
   2. REPORT CONTAINER
========================================= */

.report-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    box-sizing: border-box;
    min-width: 0;
}


/* =========================================
   3. INTRO
========================================= */

.report-intro {
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 38px;
    box-sizing: border-box;
}

.report-intro .eyebrow {
    color: #1257d6;
    font-weight: 700;
    margin-bottom: 10px;
}

.report-intro h1 {
    color: #172033;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    margin: 0 0 18px;
    overflow-wrap: anywhere;
    transition: color 0.25s ease;
}

.report-intro h1 span {
    color: #1257d6;
}

.report-intro p {
    color: #667085;
    line-height: 1.7;
    overflow-wrap: anywhere;
    transition: color 0.25s ease;
}


/* =========================================
   4. MAIN FORM
========================================= */

.report-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #e4e9f0;
    border-radius: 20px;

    padding: 35px;

    box-shadow: 0 15px 45px rgba(16, 24, 40, 0.06);

    min-width: 0;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================================
   5. QUESTION CONTAINERS
========================================= */

.form-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;

    padding: 28px 24px;

    margin-bottom: 18px;

    border: 1px solid #e4e9f0;
    border-radius: 14px;

    background: #ffffff;

    box-shadow: 0 3px 12px rgba(16, 24, 40, 0.025);

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.form-section:first-child {
    padding-top: 28px;
}

.form-section:last-child {
    margin-bottom: 0;
}


/* =========================================
   6. HEADINGS
========================================= */

.form-section h2 {
    color: #172033;

    font-size: 1.15rem;
    line-height: 1.5;

    margin: 0 0 18px;

    overflow-wrap: anywhere;

    transition: color 0.25s ease;
}

.form-section h2 span {
    color: #1257d6;
    font-size: 0.8rem;
}

.form-section h2 small {
    color: #667085;
    font-size: 0.8rem;
    font-weight: 500;
}


/* =========================================
   7. INPUTS
========================================= */

.report-form input[type="text"],
.report-form input[type="tel"],
.report-form input[type="date"],
.report-form textarea {
    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    border: 1px solid #d6dce5;
    border-radius: 10px;

    padding: 14px 15px;

    background: #ffffff;
    color: #172033;

    font-family: inherit;
    font-size: 0.95rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

.report-form textarea {
    resize: vertical;
    min-height: 150px;
}

.report-form input:focus,
.report-form textarea:focus {
    border-color: #1257d6;

    box-shadow:
        0 0 0 3px rgba(18, 87, 214, 0.10);
}

.report-form input::placeholder,
.report-form textarea::placeholder {
    color: #98a2b3;
}

.report-form small {
    display: block;

    margin-top: 8px;

    color: #667085;
    font-size: 0.8rem;

    overflow-wrap: anywhere;
}


/* =========================================
   8. CHECKBOX
========================================= */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 14px;

    color: #475467;
    font-size: 0.88rem;

    cursor: pointer;
}

.checkbox-label input {
    width: 17px;
    height: 17px;
    accent-color: #1257d6;
}


/* =========================================
   9. CATEGORY
========================================= */

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 14px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.category-option {
    position: relative;

    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 62px;
    min-width: 0;

    padding: 13px 15px;

    border: 1px solid #d9e0ea;
    border-radius: 11px;

    background: #ffffff;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.15s ease;
}

.category-option:hover {
    border-color: #1257d6;
    transform: translateY(-1px);
}

.category-option input {
    position: absolute;
    opacity: 0;
}

.category-option input:checked + span {
    transform: scale(1.08);
}

.category-option:has(input:checked) {
    border-color: #1257d6;
    background: #edf4ff;
}

.category-option strong {
    color: #344054;
    font-size: 0.88rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.category-option:has(input:checked) strong {
    color: #1257d6;
}


/* =========================================
   10. LOCATION
========================================= */

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 16px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.location-grid label,
.previous-fields label {
    display: block;

    margin-bottom: 8px;

    color: #344054;
    font-size: 0.86rem;
    font-weight: 700;
}

.location-button {
    width: 100%;

    margin-top: 18px;

    border: 1px solid #1257d6;
    border-radius: 9px;

    padding: 11px 16px;

    background: #edf4ff;
    color: #1257d6;

    font-family: inherit;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.location-button:hover {
    background: #1257d6;
    color: #ffffff;
}


/* =========================================
   11. PROBLEM METHODS
========================================= */

.problem-methods {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 20px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.method-option {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 11px 15px;

    border: 1px solid #d9e0ea;
    border-radius: 10px;

    color: #344054;

    cursor: pointer;

    box-sizing: border-box;
    min-width: 0;
}

.method-option:has(input:checked) {
    border-color: #1257d6;
    background: #edf4ff;
    color: #1257d6;
}

.method-option input {
    accent-color: #1257d6;
}


/* =========================================
   12. AUDIO
========================================= */

.audio-box {
    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    margin-top: 20px;

    padding: 24px;

    border: 1px dashed #b9c7dc;
    border-radius: 12px;

    background: #f7f9fc;

    text-align: center;
}

.audio-button {
    border: none;
    border-radius: 9px;

    padding: 11px 20px;

    background: #1257d6;
    color: #ffffff;

    font-family: inherit;
    font-weight: 700;

    cursor: pointer;
}

.audio-button:hover {
    background: #0d47b5;
}

.audio-box p {
    margin: 10px 0 0;

    color: #667085;
    font-size: 0.85rem;

    overflow-wrap: anywhere;
}


/* =========================================
   13. EVIDENCE
========================================= */

.evidence-box {
    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    padding: 30px 20px;

    border: 2px dashed #cbd6e6;
    border-radius: 15px;

    background: #f9fbff;

    text-align: center;
}

.evidence-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.evidence-box h3 {
    margin: 0 0 8px;

    color: #172033;
    font-size: 1rem;
}

.evidence-box p {
    max-width: 600px;

    margin: 0 auto 18px;

    color: #667085;
    font-size: 0.85rem;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

.file-input {
    display: none;
}

.file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 20px;

    border-radius: 9px;

    background: #1257d6;
    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 700;

    cursor: pointer;

    box-sizing: border-box;
}

.file-button:hover {
    background: #0d47b5;
}

.file-list {
    margin-top: 16px;

    color: #475467;
    font-size: 0.85rem;

    text-align: left;

    overflow-wrap: anywhere;
}

.file-list div {
    padding: 7px 0;
    border-bottom: 1px solid #e4e9f0;
}


/* =========================================
   14. YES / NO
========================================= */

.yes-no {
    display: flex;
    gap: 12px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.yes-no label {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 100px;

    padding: 12px 16px;

    border: 1px solid #d9e0ea;
    border-radius: 10px;

    cursor: pointer;

    box-sizing: border-box;
}

.yes-no label:has(input:checked) {
    border-color: #1257d6;
    background: #edf4ff;
    color: #1257d6;
}

.yes-no input {
    accent-color: #1257d6;
}


/* =========================================
   15. PREVIOUS COMPLAINT
========================================= */

.previous-fields {
    display: grid;

    gap: 16px;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;

    margin-top: 20px;

    padding: 22px;

    border: 1px solid #e4e9f0;
    border-radius: 12px;

    background: #f7f9fc;
}


/* =========================================
   16. NOTES
========================================= */

.form-note {
    margin: 10px 0 0;

    color: #667085;
    font-size: 0.82rem;
    line-height: 1.5;

    overflow-wrap: anywhere;
}


/* =========================================
   17. SUBMIT
========================================= */

.submit-area {
    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    padding-top: 30px;

    text-align: center;
}

.submit-button {
    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    border: none;
    cursor: pointer;

    font-family: inherit;
    font-size: 1rem;
}

.success-message {
    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    margin-top: 16px;

    padding: 14px;

    border-radius: 10px;

    background: #edf4ff;
    color: #1257d6;

    font-weight: 700;

    overflow-wrap: anywhere;
}


/* =========================================
   18. LOCATION MAP
========================================= */

.map-container {
    width: 100%;
    margin-top: 16px;

    border: 1px solid #e4e9f0;
    border-radius: 14px;

    overflow: hidden;

    background: #ffffff;

    box-sizing: border-box;
}

#reportMap {
    width: 100%;
    height: 380px;
    z-index: 1;
}

.map-actions {
    display: flex;
    gap: 10px;
    padding: 12px;
    flex-wrap: wrap;
}

.map-actions button {
    border: none;
    border-radius: 10px;

    padding: 11px 16px;

    font-family: inherit;
    font-weight: 700;

    cursor: pointer;
}

.map-location-btn {
    background: #edf4ff;
    color: #1257d6;
}

.map-location-btn:hover {
    background: #1257d6;
    color: #ffffff;
}

.map-confirm-btn {
    background: #1257d6;
    color: #ffffff;
}

.map-confirm-btn:hover {
    background: #0d47b5;
}

.map-selected-text {
    margin: 0;
    padding: 0 14px 14px;

    color: #667085;

    font-size: 0.82rem;
    line-height: 1.5;

    overflow-wrap: anywhere;
}


/* =========================================
   19. DARK MODE
========================================= */

body.dark-mode {
    background: #0b1220;
}


/* PAGE */

body.dark-mode .report-page {
    background: #0b1220;
}


/* INTRO */

body.dark-mode .report-intro .eyebrow {
    color: #6ea0ff;
}

body.dark-mode .report-intro h1 {
    color: #f8fafc;
}

body.dark-mode .report-intro h1 span {
    color: #6ea0ff;
}

body.dark-mode .report-intro p {
    color: #a8b4c7;
}


/* MAIN FORM */

body.dark-mode .report-form {
    background: #111b2d;
    border-color: #26364f;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.35);
}


/* QUESTION BOXES */

body.dark-mode .form-section {
    background: #111b2d;
    border-color: #2b3a52;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.18);
}

body.dark-mode .form-section h2 {
    color: #f1f5f9;
}

body.dark-mode .form-section h2 span {
    color: #6ea0ff;
}

body.dark-mode .form-section h2 small {
    color: #94a3b8;
}


/* INPUTS */

body.dark-mode .report-form input[type="text"],
body.dark-mode .report-form input[type="tel"],
body.dark-mode .report-form input[type="date"],
body.dark-mode .report-form textarea {
    background: #0b1424;

    border-color: #34445e;

    color: #f1f5f9;
}

body.dark-mode .report-form input:focus,
body.dark-mode .report-form textarea:focus {
    border-color: #5b91f5;

    box-shadow:
        0 0 0 3px rgba(91, 145, 245, 0.15);
}

body.dark-mode .report-form input::placeholder,
body.dark-mode .report-form textarea::placeholder {
    color: #718096;
}

body.dark-mode .report-form small {
    color: #94a3b8;
}


/* CHECKBOX */

body.dark-mode .checkbox-label {
    color: #c4cedc;
}


/* CATEGORY */

body.dark-mode .category-option {
    background: #0d1728;
    border-color: #34445e;
}

body.dark-mode .category-option:hover {
    border-color: #5b91f5;
    background: #142746;
}

body.dark-mode .category-option strong {
    color: #dbe4f0;
}

body.dark-mode .category-option:has(input:checked) {
    background: #162c50;
    border-color: #5b91f5;
}

body.dark-mode .category-option:has(input:checked) strong {
    color: #79a6ff;
}


/* LOCATION */

body.dark-mode .location-grid label,
body.dark-mode .previous-fields label {
    color: #cbd5e1;
}

body.dark-mode .location-button {
    background: #10213b;
    border-color: #5b91f5;
    color: #79a6ff;
}

body.dark-mode .location-button:hover {
    background: #1257d6;
    color: #ffffff;
}


/* PROBLEM METHODS */

body.dark-mode .method-option {
    background: #0d1728;
    border-color: #34445e;
    color: #dbe4f0;
}

body.dark-mode .method-option:has(input:checked) {
    background: #162c50;
    border-color: #5b91f5;
    color: #79a6ff;
}


/* AUDIO */

body.dark-mode .audio-box {
    background: #0d1728;
    border-color: #465873;
}

body.dark-mode .audio-box p,
body.dark-mode #audioStatus {
    color: #94a3b8;
}


/* EVIDENCE */

body.dark-mode .evidence-box {
    background: #0d1728;
    border-color: #465873;
}

body.dark-mode .evidence-box h3 {
    color: #e2e8f0;
}

body.dark-mode .evidence-box p {
    color: #94a3b8;
}

body.dark-mode .file-list {
    color: #cbd5e1;
}

body.dark-mode .file-list div {
    border-bottom-color: #34445e;
}


/* YES / NO */

body.dark-mode .yes-no label {
    background: #0d1728;
    border-color: #34445e;
    color: #dbe4f0;
}

body.dark-mode .yes-no label:has(input:checked) {
    background: #162c50;
    border-color: #5b91f5;
    color: #79a6ff;
}


/* PREVIOUS */

body.dark-mode .previous-fields {
    background: #0d1728;
    border-color: #34445e;
}


/* NOTES */

body.dark-mode .form-note {
    color: #94a3b8;
}


/* SUCCESS */

body.dark-mode .success-message {
    background: #06352b;
    border: 1px solid #09634f;
    color: #6ee7b7;
}


/* MAP */

body.dark-mode .map-container {
    background: #0d1728;
    border-color: #34445e;
}

body.dark-mode .map-location-btn {
    background: #162c50;
    color: #79a6ff;
}

body.dark-mode .map-location-btn:hover {
    background: #1257d6;
    color: #ffffff;
}

body.dark-mode .map-confirm-btn {
    background: #1257d6;
    color: #ffffff;
}

body.dark-mode .map-selected-text {
    color: #94a3b8;
}


/* =========================================
   20. TABLET
========================================= */

@media (max-width: 950px) {

    .report-container {
        max-width: 850px;
    }

    .report-form {
        padding: 30px;
    }

    .form-section {
        padding: 26px 22px;
        margin-bottom: 17px;
    }

    .category-grid,
    .location-grid {
        gap: 12px;
    }
}


/* =========================================
   21. MOBILE
========================================= */

@media (max-width: 700px) {

    .report-page {
        width: 100%;
        max-width: 100%;

        padding: 40px 0 65px;

        box-sizing: border-box;
    }

    .report-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        padding-left: 16px;
        padding-right: 16px;

        margin-left: auto;
        margin-right: auto;

        box-sizing: border-box;
    }


    .report-intro {
        width: 100%;
        max-width: 100%;
        margin-bottom: 34px;

        box-sizing: border-box;
    }


    .report-form {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        padding: 18px;

        border-radius: 16px;

        box-sizing: border-box;
    }


    .form-section {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        padding: 24px 18px;

        margin-bottom: 16px;

        border-radius: 13px;

        box-sizing: border-box;
    }


    .category-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }


    .location-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }


    .problem-methods {
        flex-direction: column;
        width: 100%;
    }

    .method-option {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }


    .yes-no {
        flex-direction: column;
        width: 100%;
    }

    .yes-no label {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }


    .audio-box,
    .evidence-box,
    .previous-fields {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }


    .report-form input[type="text"],
    .report-form input[type="tel"],
    .report-form input[type="date"],
    .report-form textarea {
        padding: 14px;
    }


    #reportMap {
        height: 320px;
    }

    .map-actions {
        flex-direction: column;
    }

    .map-actions button {
        width: 100%;
    }
}


/* =========================================
   22. SMALL PHONES
========================================= */

@media (max-width: 400px) {

    .report-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .report-form {
        width: 100%;
        max-width: 100%;

        padding: 14px;

        border-radius: 15px;

        box-sizing: border-box;
    }

    .form-section {
        padding: 22px 15px;
        margin-bottom: 14px;
    }

    .report-intro h1 {
        font-size: 1.75rem;
    }

    .category-option {
        padding: 11px 12px;
    }

    .previous-fields {
        padding: 17px;
    }

    #reportMap {
        height: 280px;
    }

    .map-container {
        border-radius: 12px;
    }
}
