/* ==========================================
   AUDIT DATABASE
========================================== */

.audit-database-page {
    background: #fff;
}


/* CONTAINER */

.audit-database-page .container {
    width: min(1180px, 92%);
    margin: auto;
}


/* ==========================================
   INTRO
========================================== */

.audit-intro-section {
    padding: 100px 0 60px;
}

.audit-section-header {
    max-width: 850px;
}

.audit-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #14806f;
    margin-bottom: 18px;
}

.audit-section-header h2 {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 22px;
    color: #1b2d2b;
}

.audit-section-header p {
    font-size: 17px;
    line-height: 1.8;
    color: #687370;
}


/* ==========================================
   BENEFITS
========================================== */

.audit-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 65px;
}

.audit-benefit {
    padding: 30px;
    border: 1px solid #e4e9e7;
    background: #fff;
}

.benefit-number {
    font-size: 13px;
    font-weight: 700;
    color: #14806f;
    margin-bottom: 20px;
}

.audit-benefit h4 {
    font-size: 19px;
    margin-bottom: 12px;
    color: #1b2d2b;
}

.audit-benefit p {
    font-size: 14px;
    line-height: 1.7;
    color: #687370;
}


/* ==========================================
   DATABASE SECTION
========================================== */

.audit-database-section {
    padding: 70px 0 100px;
    background: #f6f8f7;
}


/* SEARCH */

.audit-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 45px;
}

.audit-search-box input {
    flex: 1;
    height: 58px;
    padding: 0 22px;
    border: 1px solid #d9e0de;
    background: #fff;
    font-size: 15px;
    outline: none;
}

.audit-search-box input:focus {
    border-color: #14806f;
}

.audit-search-box button {
    border: none;
    background: #14806f;
    color: #fff;
    padding: 0 30px;
    font-size: 15px;
    cursor: pointer;
    transition: .3s;
}

.audit-search-box button:hover {
    background: #0d6658;
}

.search-icon {
    margin-left: 10px;
}


/* ==========================================
   FILTERS
========================================== */

.audit-filters {
    margin-bottom: 50px;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    font-size: 14px;
    margin-bottom: 14px;
    color: #1b2d2b;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons button {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #d8dfdd;
    color: #53615e;
    cursor: pointer;
    font-size: 13px;
    transition: .3s;
}

.filter-buttons button:hover,
.filter-buttons button.active {
    background: #14806f;
    color: #fff;
    border-color: #14806f;
}


/* ==========================================
   RESULTS HEADER
========================================== */

.audit-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.audit-results-header h3 {
    font-size: 20px;
    color: #1b2d2b;
}

.audit-report-note {
    font-size: 13px;
    color: #7b8582;
}


/* ==========================================
   RECORD CARD
========================================== */

.audit-records {
    display: grid;
    gap: 18px;
}

.audit-record-card {
    background: #fff;
    border: 1px solid #e1e6e4;
    padding: 28px;
    transition: .3s;
}

.audit-record-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,.06);
}

.audit-record-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.audit-id {
    font-size: 11px;
    letter-spacing: 1px;
    color: #14806f;
    font-weight: 700;
}

.audit-company h3 {
    font-size: 22px;
    margin: 8px 0;
    color: #1b2d2b;
}

.audit-address {
    font-size: 14px;
    color: #74807c;
}


/* STATUS */

.audit-status {
    height: fit-content;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
}

.audit-status.available {
    background: #e7f5f1;
    color: #14806f;
}


/* META */

.audit-record-meta {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid #edf0ef;
    border-bottom: 1px solid #edf0ef;
    margin: 25px 0;
    padding: 20px 0;
    gap: 20px;
}

.meta-item span {
    display: block;
    font-size: 11px;
    color: #88918f;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.meta-item strong {
    font-size: 14px;
    color: #263633;
}


/* FOOTER */

.audit-record-footer {
    display: flex;
    gap: 25px;
}

.audit-view-btn,
.audit-request-btn {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
	padding:7px;
	background: var(--brand-orange);
	border-color: var(--brand-orange);
	
}

.audit-view-btn {
    color: #FFFFFF;
}

.audit-request-btn {
    color: #14806f;
}


/* ==========================================
   PAGINATION
========================================== */

.audit-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.audit-pagination button {
    width: 42px;
    height: 42px;
    border: 1px solid #dce3e0;
    background: #fff;
    cursor: pointer;
}

.audit-pagination button.active {
    background: #14806f;
    color: #fff;
}


/* ==========================================
   CTA
========================================== */

.audit-cta-section {
    padding: 90px 0;
}

.audit-cta-box {
    background: #163b35;
    color: #fff;
    padding: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.audit-cta-box h2 {
    font-size: 38px;
    margin: 12px 0 18px;
}

.audit-cta-box p {
    max-width: 650px;
    color: rgba(255,255,255,.75);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 24px;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary {
    background: #1fa88e;
    color: #fff;
}

.btn-outline {
    border: 1px solid rgba(255,255,255,.5);
    color: #fff;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 991px) {

    .audit-benefits {
        grid-template-columns: 1fr;
    }

    .audit-record-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .audit-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

}


@media (max-width: 767px) {

    .audit-intro-section {
        padding: 70px 0 40px;
    }

    .audit-section-header h2 {
        font-size: 32px;
    }

    .audit-search-box {
        flex-direction: column;
    }

    .audit-search-box button {
        height: 52px;
    }

    .audit-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .audit-record-top {
        flex-direction: column;
    }

    .audit-record-meta {
        grid-template-columns: 1fr;
    }

    .audit-record-footer {
        flex-direction: column;
        gap: 15px;
    }

    .audit-cta-box {
        padding: 40px 25px;
    }

    .audit-cta-box h2 {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        justify-content: center;
    }

}
/* =========================================================
   AUDIT DATABASE MODAL
========================================================= */

.audit-modal {
    position: fixed !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 999999 !important;
}


/* ACTIVE MODAL */

.audit-modal.active {
    display: flex !important;
}


/* =========================================================
   MODAL OVERLAY
========================================================= */

.audit-modal-overlay {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.65);

    z-index: 1;
}


/* =========================================================
   MODAL DIALOG
========================================================= */

.audit-modal-dialog {
    position: relative;

    width: 90%;
    max-width: 800px;

    max-height: 90vh;

    overflow-y: auto;

    background: #ffffff;

    border-radius: 10px;

    padding: 35px;

    z-index: 2;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);

    animation: auditModalFadeIn 0.25s ease;
}


/* REQUEST MODAL SMALLER */

.audit-request-dialog {
    max-width: 700px;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.audit-modal-close {
    position: absolute;

    top: 15px;
    right: 20px;

    width: 40px;
    height: 40px;

    border: none;

    background: transparent;

    font-size: 30px;

    line-height: 40px;

    cursor: pointer;

    color: #333;

    z-index: 10;
}


.audit-modal-close:hover {
    color: #c28a2c;
}


/* =========================================================
   MODAL CONTENT
========================================================= */

.audit-modal-content {
    width: 100%;
}


.audit-modal-header {
    padding-bottom: 25px;

    margin-bottom: 25px;

    border-bottom: 1px solid #e5e5e5;
}


.audit-modal-header h2 {
    margin: 10px 0;

    font-size: 28px;

    color: #1f2f2f;
}


.audit-modal-header p {
    margin: 0;

    color: #666;
}


.audit-label,
.audit-id {
    display: inline-block;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #c28a2c;
}


/* =========================================================
   DETAIL GRID
========================================================= */

.audit-detail-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin-bottom: 30px;
}


.audit-detail-item {
    padding: 15px;

    background: #f7f8f8;

    border-left: 3px solid #1f6f6d;
}


.audit-detail-item span {
    display: block;

    font-size: 12px;

    text-transform: uppercase;

    color: #777;

    margin-bottom: 5px;
}


.audit-detail-item strong {
    display: block;

    font-size: 15px;

    color: #222;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.audit-description {
    margin-top: 20px;

    padding-top: 20px;

    border-top: 1px solid #e5e5e5;
}


.audit-description h3 {
    margin-bottom: 10px;
}


.audit-description p {
    line-height: 1.7;

    color: #555;
}


/* =========================================================
   MODAL ACTIONS
========================================================= */

.audit-modal-actions {
    margin-top: 30px;

    display: flex;

    gap: 15px;
}


.audit-modal-actions button,
.audit-request-btn,
.audit-submit-request {
    background: #1f6f6d;

    color: #ffffff;

    border: none;

    padding: 9px 16px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s ease;
}


.audit-modal-actions button:hover,
.audit-request-btn:hover,
.audit-submit-request:hover {
    background: #155452;
}


/* =========================================================
   REQUEST FORM
========================================================= */

#audit-request-form {
    width: 100%;
}


.audit-form-row {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin-bottom: 20px;
}


.audit-form-group {
    margin-bottom: 20px;
}


.audit-form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 600;

    color: #333;
}


.audit-form-group input,
.audit-form-group textarea {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid #d9d9d9;

    font-size: 14px;

    box-sizing: border-box;

    outline: none;
}


.audit-form-group input:focus,
.audit-form-group textarea:focus {
    border-color: #1f6f6d;
}


/* =========================================================
   FORM MESSAGE
========================================================= */

.audit-success-message {
    padding: 12px;

    margin-bottom: 15px;

    background: #e8f7ee;

    color: #1b6b3a;

    border-left: 4px solid #1b8a4b;
}


.audit-error-message,
.audit-modal-error {
    padding: 12px;

    background: #fff0f0;

    color: #a12a2a;

    border-left: 4px solid #d64545;
}


/* =========================================================
   LOADER
========================================================= */

.audit-modal-loader,
.audit-loader-wrapper {
    text-align: center;

    padding: 40px;
}


.audit-spinner {
    width: 35px;

    height: 35px;

    margin: 0 auto 15px;

    border: 3px solid #ddd;

    border-top-color: #1f6f6d;

    border-radius: 50%;

    animation: auditSpin 0.8s linear infinite;
}


@keyframes auditSpin {

    to {
        transform: rotate(360deg);
    }

}


@keyframes auditModalFadeIn {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   BODY MODAL LOCK
========================================================= */

body.audit-modal-open {
    overflow: hidden !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .audit-modal-dialog {
        width: 95%;

        padding: 25px 20px;

        max-height: 92vh;
    }


    .audit-detail-grid,
    .audit-form-row {
        grid-template-columns: 1fr;
    }


    .audit-modal-header h2 {
        font-size: 23px;
    }

}
/* =========================================
   ALPHABET FILTER
========================================= */

.audit-alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 25px 0;
    align-items: center;
}

.audit-alphabet-filter button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #dfe5ea;
    background: #fff;
    color: #243746;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.audit-alphabet-filter button:first-child {
    width: auto;
    padding: 0 14px;
}

.audit-alphabet-filter button:hover,
.audit-alphabet-filter button.active {
    background: #1b5e7a;
    border-color: #1b5e7a;
    color: #fff;
}

@media (max-width: 767px) {

    .audit-alphabet-filter {
        gap: 6px;
    }

    .audit-alphabet-filter button {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

}