/*
Theme Name: Flood Control Project Custom Theme
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --blue-color: #1435a4;
    --light-gray-color: #cccccc;
    --yellow-color: #e3b145;
    --header-background-color: #0c4592;
    --text-blue: #032658;
    --gray-border: #828282;
    --input-active: #2d354a;
    --report-btn: #d31111;
    --report-txt: #fff;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
}

h1,
p {
    margin: 0;
}

a {
    text-decoration: none;
}

.navbar-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.navbar-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.overlay-text {
    position: absolute;
    top: 30px;
    right: 50px;
}

.overlay-text a {
    color: var(--yellow-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
}

.overlay-text a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .overlay-text {
        top: 10px;
        right: 10px;
    }

    .overlay-text a {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .overlay-text {
        top: 5px;
        right: 5px;
    }

    .overlay-text a {
        font-size: 9px;
    }
}

.container {
    margin-top: -4px;
    background: linear-gradient(to bottom, #0a2d57, #071b2c, #0c4592);
}

.search,
.fcp-list,
.i-report,
.map-cont,
.feedback-btn-cont {
    max-width: 1100px;
    margin: auto;
    padding-top: 30px;
}

.i-report {
    padding-top: 20px;
    padding-bottom: 0px;
}

.i-report img {
    width: 100%;
}

.fcp-list {
    padding-top: 10px;
}

.search-container,
.fcp-container {
    background: #fff;
    padding: 50px;
    padding-bottom: 10px;
    border-radius: 10px;
}

.fcp-container {
    padding: 30px;
}

.title h1 {
    text-align: center;
    font-size: 25px;
    color: var(--text-blue);
    font-weight: 600;
    padding-bottom: 20px;
}

.search-wrap {
    margin-top: 20px;
}

.search-wrapper {
    position: relative;
    width: 40%;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

#srch-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
}

.search-field {
    width: 100%;
    padding: 10px 10px 10px 36px;
    border: 1px solid var(--gray-border);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}


.filter-group {
    display: none;
    transition: all 0.3s ease;
}

.filter-group.show {
    display: block;
}

.filter-group {
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    margin-top: 20px;
    padding: 20px;
}

.filter-group p {
    color: var(--text-blue);
    text-align: center;
}

.toggle-filters-btn {
    border: none;
    padding: 5px 8px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    font-size: 18px;
}

.filter-group p {
    color: var(--text-blue);
    text-align: center;
}

.label-item {
    font-weight: 300;
    color: var(--text-blue);
}

.input-item {
    width: 100%;
    border: 1px solid var(--gray-border);
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
    color: var(--text-blue);
}

.input-item:focus {
    border: 1px solid var(--input-active);
}

.filter-btns {
    display: flex;
    gap: 10px;
    justify-content: end;
    align-items: center;
}

.filter-search {
    padding: 7px 20px;
    border: none;
    font-size: 12px;
    border-radius: 10px;
    background: var(--header-background-color);
    color: #fff;
    cursor: pointer;
}

.filter-reset {
    padding: 7px 20px;
    border: none;
    font-size: 12px;
    border-radius: 10px;
    background: var(--gray-border);
    color: #fff;
    cursor: pointer;
}

.projects-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.project-card {
    border: 1px solid var(--gray-border);
    padding: 25px;
    border-radius: 10px;
}

.project-card h3 {
    margin-top: 0;
    color: #333;
}

.project-card .description {
    margin: 10px 0;
    text-align: justify;
    color: var(--text-blue);
}

.description h1 {
    font-size: 15px;
}

.start-date {
    font-size: 12px;
    color: #626262;
    margin: 10px 0;
}

.contractor h1 {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-blue);
    line-height: 1.5;
}

.contractor p {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-blue);
    line-height: 1.5;
}

.const h1 {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-blue);
}

.const h1 span {
    font-weight: 700;
}

.project-card hr {
    height: 1px;
    background: var(--gray-border);
    margin: 12px 0;
}

.others span {
    font-size: 12px;
    color: #626262;
}

.other-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.other-details-wrap {
    width: 80%;
}

.other-details-button button,
.open-report-form {
    padding: 10px 20px;
    border: none;
    font-size: 12px;
    border-radius: 10px;
    background: var(--report-btn);
    color: var(--report-txt);
    cursor: pointer;
    text-transform: uppercase;
}

.open-report-form {
    padding: 6px 20px;
}

#project-results {
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #999 #f1f1f1;
}

.fcp-list-title {
    padding: 10px 0 30px 0;
    text-decoration: none;
}

.fcp-list-title h1 {
    font-size: 25px;
    font-weight: 300;
    color: #626262;
}

.fcp-list-title h1:hover {
    color: var(--header-background-color);
    font-weight: 500;
    text-decoration: underline;
}

.fcp-table {
    width: 100%;
    border-collapse: collapse;
}

.fcp-table th {
    font-size: 12px;
    border-bottom: 2px solid var(--gray-border);
    padding: 5px 15px;
    color: #626262;

}

.fcp-table td {
    font-size: 12px;
    padding: 5px 15px;
    color: #626262;
    border: 1px solid var(--gray-border);
}

.desc-a a {
    color: var(--text-blue);
}

.desc-a a:hover {
    color: var(--header-background-color);
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.75);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 4px solid var(--blue-color);
    border-top: 4px solid #3059e3;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    z-index: 9999;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

p.spinner-text {
    text-align: center;
    font-weight: 500;
    margin-top: 10px;
}

.project-card.highlight {
    animation: pulse 1.5s ease;
    border: 2px solid var(--yellow-color);
}

.longi {
    padding-top: 10px;
    color: var(--text-blue);
}

.longi i {
    color: #194299;
}

.longi span {
    font-size: 12px;
}

.report-modal,
.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 24px 12px;
}

.modal-content {
    background-color: #fff;
    color: #000;
    border-radius: 8px;
    width: min(800px, 100%);
    position: relative;
    background-image: url(/wp-content/uploads/2025/08/report-bgA.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    max-height: 90dvh;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content.feedback {
    background: linear-gradient(to bottom, #0a2d57, #071b2c, #0c4592);
}

.close-project-modal {
    position: absolute;
    top: 4px;
    right: 10px;
    background-color: #fff;
    color: var(--blue-color);
    border: none;
    cursor: pointer;
    z-index: 1000;
    font-size: 25px;
    padding: 0;
}

.report-form-wrap {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    max-width: 600px;
    min-width: 600px;
    margin-bottom: 30px;
}

body.modal-open {
    overflow: hidden;
}

.report-texts {
    color: #fff;
    padding: 10px;
    text-align: center;
}

.report-texts h1 {
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--yellow-color);
    letter-spacing: 1px;
    padding: 20px 0;
}

.report-texts p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    padding-bottom: 20px;
}

.form-cont {
    padding: 5px 20px;
    color: #626262;
}

.form-cont p {
    padding-bottom: 20px;
}

.input-wrap {
    display: flex;
    padding-bottom: 20px;
    gap: 10px;
}

.input-wrap-report {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    gap: 10px;
}

.filter-item {
    width: 100%;
}

.input-wrap label {
    padding-bottom: 7px;
}

.input-report {
    border: none;
    padding: 6px;
    background: #ededed;
    color: #626262;
}

.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.uploader-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    border: 1px dashed var(--gray-border);
    align-items: center;
    text-align: center;
}

.custom-file-upload {
    color: #626262;
    font-size: 8px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.custom-file-upload span {
    color: #4c98ff;
    font-size: 12px;
    text-decoration: underline;
}

.custom-file-upload:hover {
    font-weight: 600;
}

.custom-file-upload img {
    height: 16px;
    margin-right: 6px;
}

input[type="file"] {
    display: none;
}

.file-names {
    margin: 10px 0;
    width: 100%;
}

.submit-wrap {
    display: flex;
    justify-content: center;
}

.submit-wrap button {
    background: var(--yellow-color);
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
}

.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(207, 207, 207, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.confirmation-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.confirmation-icon img {
    width: 90px;
}

.confirmation-icon i {
    font-size: 60px;
}

.confirmation-content h1 {
    font-size: 25px;
    color: #032658;
}

.confirmation-content p {
    font-size: 20px;
    margin: 0;
    color: #4a4a4a;
    font-weight: 700;
}

.confirmation-content hr {
    height: 2px;
    background: #8a97af;
    /* margin: 30px 0; */
}

.conf-btn {
    margin: 15px 0;
    padding: 6px 25px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    color: #032658;
    background: #e2b045;
    text-transform: uppercase;
    cursor: pointer;
}

.fcp-list-tbl {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.fcp-list-tbl {
    width: 100%;
    border-collapse: collapse;
}

.project-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.proj-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 25px;
    border-radius: 8px;
    max-width: 800px;
    position: relative;
}

.close-modal, 
.close-feedback-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 35px;
    cursor: pointer;
    color: #ffcc5e;
    border: none;
    background: none;
}

.input-wrap-report span {
    font-size: 14px;
}

.map-cont {
    position: relative;
    padding-top: 0px;
    padding-bottom: 30px;
}

.map-cont img {
    width: 100%;
}

.map-overlay {
    display: flex;
    position: absolute;
    bottom: 22%;
    right: 2%;
    color: #000;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.map-overlay h2 {
    margin: 0 0 10px;
    color: #0d244d;
}

.map-btn {
    background: #e2b045;
    color: #0d244d;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.file-total {
    margin-top: 6px;
    font-size: 12px;
    color: #444;
}

.file-total .over {
    color: #b00020;
    font-weight: 600;
}

.file-total .ok {
    color: #2e7d32;
}

.file-total .meter {
    height: 6px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.file-total .bar {
    height: 100%;
    width: 0;
    background: #2e7d32;
    transition: width .2s;
}

.file-total .bar.over {
    background: #b00020;
}

.feedback-btn-cont {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding-bottom: 30px;
}

.feedback-btn-cont p {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

@media (max-width: 768px) {

    .search,
    .fcp-list {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .search-container,
    .fcp-container {
        padding: 10px;

    }

    .title h1 {
        font-size: 20px;
        padding-bottom: 10px;
    }

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

    .search-form,
    .search-results {
        width: 100%;
    }

    .search-wrapper {
        width: 100%;
    }

    .input-wrap {
        flex-direction: column;
    }

    .map-cont img {
        height: 150px;
        object-fit: fill;
    }

    .map-overlay {
        align-items: end;
    }

    .map-overlay h2 {
        font-size: 18px;
        text-align: end;
        width: 70%;
    }

    .map-btn {
        padding: 10px 10px;
        font-size: 10px;
    }

    .modal-content {
        margin: 10px auto;
        max-width: 280px;
        overflow: scroll;
    }

    .report-texts h1 {
        font-size: 18px;
    }

    .report-texts p {
        font-size: 10px;
        padding-bottom: 10px;
    }

    .report-form-wrap {
        padding: 5px;
        max-width: 250px;
        min-width: 250px;
    }

    .form-cont {
        padding: 10px;
    }

    .input-wrap-report label {
        font-size: 12px;
    }

    .input-wrap-report span {
        font-size: 10px;
    }

    .cf-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .cf-wrap .cf-turnstile {
        transform: scale(0.7);
    }

    .feedback-btn-cont {
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }

    .feedback-btn-cont p {
        font-size: 14px;
    }

    .modal-content.feedback {
        padding: 10px;
    }

}