/* Pool Design Navigation Bar Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #fff;
    line-height: 1.6;
}

#compliance {
    background-color: rgba(38,38,38,.8);
}

.title-section {
    line-height: 0.8rem;
}

.compliance-container {
    max-width: 100vw;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.container {
    width: 100vw !important;
    PADDING: 0 !important;
    margin: 0 !important;
}

.compliance-header {
    text-align: center;
    color: white;
    margin: auto 0px auto 10%;
    font-family: raleway, sans-serif;
}


    .compliance-header h2 {
        font-size: clamp(24px, 5vw, 36px);
        letter-spacing: 0.05em;
        margin-bottom: 20px;
        font-weight: 600;
    }

    .compliance-header p {
        font-size: clamp(16px, 4vw, 22px);
        opacity: 0.9;
        max-width: 1100px;
        margin: 0 auto;
        text-align: left;
    }

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 20px 0;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

    .site-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

/*.header-container {
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}*/

.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Logo Section */
/*.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 300px;
}*/

.logo-image {
    width: 147px;
    height: 43px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 147 43"><rect width="147" height="43" fill="%23ffffff" rx="5"/><text x="73.5" y="25" text-anchor="middle" fill="%23333" font-family="Arial" font-size="12" font-weight="bold">LOGO</text></svg>') no-repeat center;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

    .logo-image:hover {
        transform: scale(1.05);
    }

/* Brand Information */
.brand-info {
    color: white;
}

.brand-title {
    font-size: 33px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.brand-subtitle {
    font-size: 15px;
    color: #ffffff;
    opacity: 0.9;
    font-weight: 400;
}

.footer-subtitle {
    font-size: 15px;
    color: #ffffff;
    opacity: 0.9;
    font-family: raleway, sans-serif;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #9A8A78;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 10px;
    font-weight: lighter;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

    .nav-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .nav-button:hover::before {
        left: 100%;
    }

    .nav-button:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.4);
        text-decoration: none;
        color: white;
    }
/*
    .nav-button:focus {
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: 2px;
    }*/

.nav-button-icon {
    margin-left: 8px;
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.nav-button:hover .nav-button-icon {
    transform: translateX(3px);
}

/* Primary Button Styling */
.nav-button.primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-color: #2980b9;
    font-weight: 600;
}

    .nav-button.primary:hover {
        background: linear-gradient(45deg, #2980b9, #21618c);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
    }

/* Main Content */
.main-content {
    /*padding: 40px 20px;*/
    /*max-width: 1200px;*/
    margin: 0 auto;
    color: white;
    width: 100vw;
}

.content-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

    .content-section:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .content-section h2 {
        /*color: #3498db;*/
        margin-bottom: 15px;
        font-size: 40px;
        font-weight: 600;
        text-align: left;
    }

    .content-section p {
        line-height: 1.2;
        opacity: 0.9;
    }

/* Responsive Design */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    /*    .logo-section {
        min-width: auto;
        flex-direction: column;
        align-items: center;
    }*/

    .navigation-buttons {
        justify-content: center;
        max-width: 100%;
    }

    .brand-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    /*  .header-container {
        padding: 0 15px;
    }
*/
    .site-header {
        padding: 15px 0;
        min-height: auto;
    }

    .navigation-buttons {
        gap: 10px;
    }

    .nav-button {
        padding: 10px 18px;
        font-size: 13px;
    }

    .brand-title {
        font-size: 24px;
    }

    .brand-subtitle {
        font-size: 14px;
    }

    .footer-subtitle {
        font-size: 10px;
    }

    .content-section {
        padding: 20px;
        margin-bottom: 30px;
    }

    .main-content {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .navigation-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .nav-button {
        justify-content: center;
        width: 100%;
        padding: 14px 20px;
    }

    .brand-title {
        font-size: 20px;
    }
    /*
    .logo-section {
        gap: 15px;
    }
*/
    .header-content {
        gap: 25px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations */
.header-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.navigation-buttons .nav-button {
    animation: slideInRight 0.8s ease forwards;
    opacity: 0;
}

    .navigation-buttons .nav-button:nth-child(1) {
        animation-delay: 0.1s;
    }

    .navigation-buttons .nav-button:nth-child(2) {
        animation-delay: 0.2s;
    }

    .navigation-buttons .nav-button:nth-child(3) {
        animation-delay: 0.3s;
    }

    .navigation-buttons .nav-button:nth-child(4) {
        animation-delay: 0.4s;
    }

    .navigation-buttons .nav-button:nth-child(5) {
        animation-delay: 0.5s;
    }

    .navigation-buttons .nav-button:nth-child(6) {
        animation-delay: 0.6s;
    }

    .navigation-buttons .nav-button:nth-child(7) {
        animation-delay: 0.7s;
    }

    .navigation-buttons .nav-button:nth-child(8) {
        animation-delay: 0.8s;
    }

.content-section {
    animation: fadeInUp 0.8s ease forwards;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
/*.nav-button:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}*/

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-button {
        border: 2px solid white;
    }

        .nav-button:hover {
            background: white;
            color: black;
        }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .content-section {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.15);
    }
}



.flowchart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 30px;
}

.process-step {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.process-box {
    position: relative;
    width: 150px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border-radius: 0;
}

    .process-box.completed {
        background-color: #414141;
    }

    .process-box.active {
        background-color: #414141;
    }

    .process-box.pending {
        background-color: #414141;
    }

.status-dot {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

    .status-dot.completed {
        background-color: #4CAF50;
        color: white;
    }

    .status-dot.active {
        background-color: #FF9800;
        color: white;
    }

    .status-dot.pending {
        background-color: #9E9E9E;
        color: white;
    }

.arrow-wrapper {
    display: flex;
    align-items: center;
    background: #9A8A78;
    padding: 10px;
    /*margin-bottom: 30px;*/
}

/*.arrow {
    width: 0;
    height: 0;
    border-left: 15px solid white;*/ /* arrow color */
/*border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    display: inline-block;
}*/
.arrow {
    width: 0;
    height: 0;
    border-left: 15px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin: 0 2px;
    /*margin-bottom: 30px;*/
}
/* Attention-seeking animation */
@keyframes pulse-bounce {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(96, 218, 85, 0.6);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 12px rgba(96, 218, 85, 0.6);
    }
}

.order-button.attention {
    animation: pulse-bounce 1.5s infinite ease-in-out;
}

.order-button {
    background-color: rgba(96,218,85,1);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 25px;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 5px;
    font-family: raleway, sans-serif;
}


    .order-button:hover {
        background-color: #555;
    }

@media (max-width: 1000px) {
    .flowchart-container {
        flex-wrap: wrap;
        gap: 20px;
        flex-direction: column;
    }

    .arrow-wrapper {
        rotate: 90deg;
    }
    /*
    .arrow,
    .arrow-wrapper {
        display: none;
    }*/

    .process-box {
        width: 150px;
        margin: 10px;
    }
}

@media (max-width: 600px) {
    .process-box {
        width: 130px;
        height: 70px;
        font-size: 14px;
    }
}

.visibility-hidden {
    visibility: hidden;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
    color: white;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

    .footer::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
        background-size: 20px 20px;
        animation: float 20s linear infinite;
    }

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-20px, -20px) rotate(360deg);
    }
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    /*display: flex;*/
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 25%;
}


/*ASSESSMENT TABLE CSS*/

.assessment-table {
    border-collapse: collapse;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    font-size: clamp(0.8rem, 1vw + 0.5rem, 1rem); /* responsive text size */
    font-family: raleway, sans-serif;
}

    .assessment-table th,
    .assessment-table td {
        padding: 0.75rem;
        border: 1px solid #ddd;
        text-align: left;
        vertical-align: middle;
    }

    .assessment-table th {
        background-color: #9A8A78;
        color: white;
        font-weight: bold;
        text-align: center;
    }

    .assessment-table td {
        vertical-align: middle;
        border-top: 1px solid #ddd;
    }

.category-row {
    background-color: #efefef;
    font-weight: bold;
    text-transform: uppercase;
    font-size: clamp(1rem, 1vw + 0.5rem, 1.2rem);
}

.result-eligible {
    /*    color: white;
    background-color: #218838;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;*/
    color: white;
    background-color: #218838 !important;
    padding: 0.3rem 0.75rem;
    font-weight: bold;
    display: table-cell;
    vertical-align: middle !important;
    text-align: center !important;
}

.result-conditional {
    /* color: white;
    background-color: #f0ad4e;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;*/
    color: white;
    background-color: #f0ad4e !important;
    padding: 0.3rem 0.75rem;
    font-weight: bold;
    display: table-cell;
    vertical-align: middle !important;
    text-align: center !important;
}

#compliance {
    display: flex;
    justify-content: center;
    /*padding-left: 15%;
    padding-right: 15%;*/
}

.assessment-wrapper {
    overflow-y: auto;
    max-width: 100%;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    margin-right: 15%;
}

/* Make table cells more compact */
.assessment-table th,
.assessment-table td {
    font-size: 0.7rem;
    padding: 0.3rem 0.4rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .assessment-wrapper {
        padding: 1rem;
        margin-right: auto;
    }

    .assessment-table th, .assessment-table td {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

.text-left {
    text-align: left !important;
}

.assessment-table .table > thead > th {
    text-align: center !important;
}

.flowchart-text {
    color: #414141;
}

.address-title {
    position: absolute;
    bottom: 5%; /*35%*/
    left: 5%;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    font-size: clamp(1.3rem, 3vw + 0.5rem, 3.5rem); /* Responsive font size */
    width: clamp(70%, 50vw, 50%);
    font-weight: bold;
    height: auto;
    font-family: raleway, sans-serif;
}

@media (max-width: 768px) {
    .assessment-table th,
    .assessment-table td {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .category-row {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .assessment-table th,
    .assessment-table td {
        font-size: 0.8rem;
    }

    .category-row {
        font-size: 0.95rem;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239A8A78'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239A8A78'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}


/* ENHANCED HEADER STYLES */
/*.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.6);*/
/*backdrop-filter: blur(20px);*/
/*border-bottom: 1px solid rgba(65, 65, 65, 0.1);
    padding: 15px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}*/


/* Default (mobile-first): header scrolls with page */
.header {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(65, 65, 65, 0.1);
    padding: 15px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}


    .header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
        pointer-events: none;
    }

.header-container {
    max-width: 100vw;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25%;
    justify-content: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo {
    background: linear-gradient(135deg, #414141 0%, #2c2c2c 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 4px 16px rgba(65, 65, 65, 0.3);
    min-width: 80px;
    position: relative;
    overflow: hidden;
}

    .logo::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s ease;
    }

    .logo:hover::before {
        left: 100%;
    }

.title-section h1 {
    color: #414141;
    font-size: 33px;
    font-weight: 750;
    margin-bottom: 2px;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title-section h2 {
    color: #414141;
    font-size: 33px;
    font-weight: 750;
    margin-bottom: 2px;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title-section p {
    color: #666;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 0;
    font-family: raleway, sans-serif;
}

/* MODERN BUTTON STYLES */
.nav-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.nav-button {
    /*min-height: 32px;*/
    min-width: 82px;
    background: linear-gradient(135deg, #414141 0%, #2c2c2c 100%);
    color: white;
    padding: 5px 12px;
    border: none;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(65, 65, 65, 0.3);
    position: relative;
    overflow: hidden;
    flex: 1 1 0;
    text-align: center;
    /*min-width: 100px;*/
    justify-content: center;
    font-family: raleway, sans-serif;
    letter-spacing: 0.5px;
    /*text-transform: uppercase;*/
    transform: translateY(0);
}

    /* Animated background gradient */
    .nav-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
        transform: translateX(-100%);
        transition: transform 0.6s ease;
    }

    .nav-button:hover::before {
        transform: translateX(100%);
    }

    /* Modern hover effects */
    .nav-button:hover {
        /*background: linear-gradient(135deg, #555 0%, #777 100%);*/
        background: rgb(223, 216, 209);
        transform: translateY(-4px) scale(1.05);
        color: black;
        box-shadow: 0 12px 32px rgba(65, 65, 65, 0.4);
        letter-spacing: 1px;
    }

    /* Active state */
    .nav-button.active {
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
        box-shadow: 0 8px 24px rgba(52, 152, 219, 0.4);
        transform: translateY(-2px);
    }

        .nav-button.active:hover {
            background: linear-gradient(135deg, #21618c 0%, #2980b9 100%);
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 12px 32px rgba(52, 152, 219, 0.5);
        }

    /* Ripple effect */
    .nav-button::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }

    .nav-button:active::after {
        width: 300px;
        height: 300px;
    }

    /* Focus styles */
    /*.nav-button:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5);
    }*/

    /* Icon styles */
    .nav-button svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
        transition: transform 0.3s ease;
    }

    .nav-button:hover svg {
        transform: scale(1.1);
    }

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #414141;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .mobile-menu-toggle:hover {
        background: rgba(65, 65, 65, 0.1);
        transform: scale(1.1);
    }

/* Mobile Styles */

@media (min-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .logo-section {
        width: 100%;
        justify-content: space-between;
    }

    .title-section h1 {
        font-size: 24px;
    }


    .title-section h2 {
        font-size: 24px;
    }

    .title-section p {
        font-size: 13px;
    }

    .nav-buttons {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .nav-button {
        padding: 10px 18px;
        font-size: 12px;
        min-width: 100px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-buttons.mobile-hidden {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .nav-button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 13px;
    }

    .title-section h1 {
        font-size: 22px;
    }

    .title-section h2 {
        font-size: 22px;
    }

    .logo {
        font-size: 10px;
        padding: 10px 12px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-buttons {
    animation: slideIn 0.3s ease-out;
}

.nav-button {
    animation: slideIn 0.6s ease-out;
}

    .nav-button:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-button:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-button:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-button:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-button:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-button:nth-child(6) {
        animation-delay: 0.6s;
    }

    .nav-button:nth-child(7) {
        animation-delay: 0.7s;
    }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .address-title {
        padding: 0.8rem 1rem;
    }
}


.renders-wrapper {
    background-color: transparent;
    transition: background-color 1s ease;
}

    .renders-wrapper.loaded {
        background-color: white;
    }

.renders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 479px);
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-caption {
    color: #414141;
    font-size: 2em;
}


.document-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    padding: 10px;
    justify-items: center;
    align-items: start;
}

.document-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    max-width: 150px;
}

    .document-grid-item:hover {
        transform: scale(1.05);
    }

.document-thumb {
    width: 100%;
    max-height: 100px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.document-caption {
    margin-top: 6px;
    font-size: 0.85rem;
    word-break: break-word;
}

.modal-body {
    max-height: 70vh; /* or any height you prefer */
    overflow-y: auto;
}

/* Optional: avoid padding-right gap when scroll appears */
body.modal-open {
    padding-right: 0 !important;
}



/* Mobile Card Layout */
.mobile-cards {
    display: none;
}

.mobile-p-title {
    display: none;
}

.desktop-p-title {
    display: block;
}
.assessment-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-left: 4px solid #444;
}

.category-card {
    /*background: linear-gradient(135deg, #444 0%, #666 100%);*/
    background: linear-gradient(135deg, #9a8a78 0%, #ac8c68 100%);
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

    .category-card h3 {
        font-size: 18px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.card-content {
    padding: 20px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

    .card-row:last-child {
        margin-bottom: 0;
    }

.card-label {
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
}

.card-value {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.card-item {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.card-result {
    margin-bottom: 8px;
}

.card-note {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}



/* Mobile Responsive */
@media (max-width: 768px) {
    #compliance {
        padding: 30px 16px;
    }

    .compliance-container {
        gap: 30px;
        flex-direction: column;
    }

    .assessment-table {
        display: none;
    }

    .mobile-cards {
        display: block;
    }
    .mobile-p-title {
        display: block;
    }


    .desktop-p-title {
        display: none;
    }

    .assessment-wrapper {
        box-shadow: none;
        background: transparent;
        border-radius: 0;
    }

    .compliance-header h2 {
        font-size: 28px;
        text-align: center;
    }

    .compliance-header p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #compliance {
        padding: 20px 12px;
    }

    .card-content {
        padding: 16px;
    }

    .card-row {
        flex-direction: column;
        gap: 6px;
    }

    .card-label {
        margin-bottom: 4px;
    }

    .result-eligible,
    .result-conditional {
        display: block;
        text-align: center;
        width: 100%;
        margin-top: 4px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.assessment-card,
.category-card {
    animation: fadeInUp 0.6s ease forwards;
}

    .assessment-card:nth-child(even) {
        animation-delay: 0.1s;
    }

    .assessment-card:nth-child(odd) {
        animation-delay: 0.2s;
    }

/* Hover effects for desktop */
/*@media (min-width: 769px) {
    .assessment-table tbody tr:hover {
        background-color: #f8f9fa;
        transform: translateX(4px);
        transition: all 0.3s ease;
    }
}*/

/* Touch-friendly mobile interactions */
@media (max-width: 768px) {
    .assessment-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media screen and (max-width: 1532px) {
    .nav-buttons {
        margin-top: 10px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .assessment-table th {
        background-color: #000;
        color: #fff;
    }

    .category-row {
        background-color: #000;
        color: #fff;
    }
}

.filter-btn.active {
    background-color: #9A8A78;
    color: white;
}

.filter-bar {
    padding-top: 10px;
}






/* Section background and text */
#additional {
    background-color: #3a3a3a;
    color: white;
    padding: 40px 20px;
}

.other-trade-div, .next-step-div {
    width: 50%;
    margin: 0 auto;
}

    .next-step-div h2, .other-trade-div h2 {
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 10px;
        text-align: center;
    }

    .next-step-div p, .other-trade p {
        font-size: 16px;
        color: #f0f0f0;
    }

/* Table styling */
.next-step-table, .other-trade-table {
    width: 50%;
    border-collapse: collapse;
    background-color: #fff;
    color: #333;
    margin-top: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    margin-right: auto;
}

    .next-step-table tr, .other-trade-table tr {
        border: 1px solid #ddd;
    }

    .next-step-table thead th, .other-trade-table thead th {
        background-color: #222;
        color: #fff;
        padding: 15px;
        text-align: left;
        font-size: 14px;
        border: 1px solid #ddd;
        text-align: center;
    }

    .next-step-table tbody td, .other-trade-table tbody td {
        padding: 20px 15px;
        vertical-align: -webkit-baseline-middle;
        font-size: 15px;
        border: 1px solid #ddd;
    }

    /* View Quote link */
    /*.next-step-table a, .other-trade-table a,*/ .next-step-table button, .other-trade-table button {
        font-size: 12px;
        color: #fff;
        border: none;
    }

        .next-step-table button:hover, .other-trade-table button:hover {
            background: rgb(223, 216, 209);
            transform: translateY(-4px) scale(1.05);
            color: black;
            box-shadow: 0 12px 32px rgba(65, 65, 65, 0.4);
            letter-spacing: 1px;
        }


    .next-step-table td:first-child,
    .other-trade-table td:first-child {
        text-align: center; /* Horizontal center */
        vertical-align: middle; /* Vertical center */
        height: 100%; /* Ensure it can align vertically */
    }


    .next-step-table td:last-child,
    .other-trade-table td:last-child {
        text-align: center; /* Horizontal center */
        vertical-align: middle; /* Vertical center */
        height: 100%; /* Ensure it can align vertically */
    }


/* Style the actual button */
.next-step-button, .other-trade-button {
    display: inline-block;
    background: linear-gradient(135deg, #414141 0%, #2c2c2c 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    line-height: 1; /* Ensures proper vertical sizing */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .next-step-table {
        display: none;
    }

    .next-step-card {
        background-color: #fff;
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        color: #333;
    }

    .next-step-card-content {
        display: flex;
        flex-direction: column;
        /* align-content: center; */
        align-items: center;
    }

        .next-step-card-content .card-item {
            font-weight: bold;
            font-size: 16px;
            margin-bottom: 10px;
        }

    .next-step-card-note {
        margin-bottom: 10px;
        font-size: 14px;
    }

        .next-step-card-note a {
            font-size: 13px;
            color: #555;
            text-decoration: underline;
        }



    .other-trade-div, .next-step-div {
        width: 100%;
    }

    .other-trade-table {
        display: none;
    }

    .other-trade-card {
        background-color: #fff;
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        color: #333;
    }

    .other-trade-card-content {
        display: flex;
        flex-direction: column;
        /* align-content: center; */
        align-items: center;
    }

        .other-trade-card-content .card-item {
            font-weight: bold;
            font-size: 16px;
            margin-bottom: 10px;
        }

    .other-trade-card-note {
        margin-bottom: 10px;
        font-size: 14px;
    }

        .other-trade-card-note a {
            font-size: 13px;
            color: #555;
            text-decoration: underline;
        }
}

.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.custom-dialog {
    background: #fff;
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    max-width: 400px;
    width: 90%;
}

    .custom-dialog p {
        font-size: 16px;
        margin-bottom: 20px;
        color: #333;
    }

    .custom-dialog .yes-btn {
        background: #4CAF50;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        color: white;
        font-size: 14px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        .custom-dialog .yes-btn:hover {
            background: #45a049;
        }


.centered-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    text-align: center;
}

.styled-link {
    background-color: #d5c6b6; /*  background */
    color: white; /* White text */
    padding: 5px 10px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

    .styled-link:hover {
        background-color: rgb(223, 216, 209); /* Darker green on hover */
    }


#driveModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

    #driveModal .modal-content {
        background-color: #fff;
        margin: 5% auto;
        padding: 0;
        border-radius: 8px;
        width: 80%;
        max-width: 900px;
        position: relative;
    }

    #driveModal > .modal-content > .close-btn {
        position: absolute;
        right: 16px;
        top: 30px;
        font-size: 48px;
        font-weight: bold;
        color: #aaa;
        cursor: pointer;
    }

    #driveModal > .modal-content > iframe {
        width: 100%;
        height: 600px;
        border: none;
    }


.a-quote {
    vertical-align: middle !important;
    text-align: center !important;
}

.assessment-table > tbody tr td > span > a,
.other-trade-table > tbody tr td > span > a:not(.downloadableImage),
.next-step-table > tbody tr td > span > a:not(.downloadableImage) {
    color: #212529;
}


/* Pool Configurator Modal - Modern UI/UX Design */

/* Modal Overlay */
#imageModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

    #imageModal.show {
        display: flex;
    }

/* Close Button */
#closeModal {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 32px;
    color: #ffffff;
    cursor: pointer;
    z-index: 10001;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

    #closeModal:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }

    #closeModal:active {
        transform: scale(0.95);
    }

/* Modal Image */
#modalImage {
    max-width: 60%;
    max-height: 85%;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

/* AI Controls Panel */
.ai-controls {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    /* Title */
    .ai-controls h1 {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        font-size: 28px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 24px 0;
        text-align: center;
        letter-spacing: -0.5px;
    }

/* Category Sections */
.category {
    margin-bottom: 24px;
}

    .category h3 {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        font-size: 16px;
        font-weight: 600;
        color: #374151;
        margin: 0 0 8px 0;
        letter-spacing: -0.2px;
    }

    /* Select Dropdowns */
    .category select {
        width: 100%;
        padding: 12px 16px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: #374151;
        background: #ffffff;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        outline: none;
        transition: all 0.2s ease;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 12px center;
        background-repeat: no-repeat;
        background-size: 16px;
        padding-right: 40px;
    }

        .category select:hover {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .category select:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }

/* Generate Button */
#generateBtn {
    width: 100%;
    padding: 16px 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    margin-top: 8px;
    letter-spacing: -0.2px;
}

    #generateBtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
        background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    }

    #generateBtn:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }

    #generateBtn:disabled {
        background: #9ca3af;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* Loading Text */
.loading {
    display: none;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
    animation: pulse 2s infinite;
}

    .loading.show {
        display: block;
    }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .ai-controls {
        width: 280px;
        padding: 28px;
    }

    #modalImage {
        max-width: 55%;
    }
}

@media (max-width: 768px) {
    #imageModal {
        flex-direction: column;
        padding: 16px;
        overflow-y: auto;
    }

    #modalImage {
        max-width: 100%;
        max-height: 45vh;
        margin-bottom: 20px;
        position: relative;
    }

    .ai-controls {
        position: static;
        transform: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 24px;
        border-radius: 16px 16px 0 0;
    }

        .ai-controls h1 {
            font-size: 24px;
            margin-bottom: 20px;
        }

    .category {
        margin-bottom: 20px;
    }

    #closeModal {
        top: 20px;
        right: 20px;
        font-size: 28px;
        width: 44px;
        height: 44px;
        z-index: 10002;
    }
}

@media (max-width: 480px) {
    #imageModal {
        padding: 12px;
    }

    #modalImage {
        max-height: 40vh;
        margin-bottom: 16px;
    }

    .ai-controls {
        width: 100%;
        padding: 20px 16px;
        margin: 0;
        border-radius: 12px 12px 0 0;
    }

        .ai-controls h1 {
            font-size: 22px;
            margin-bottom: 16px;
        }

    .category {
        margin-bottom: 16px;
    }

        .category h3 {
            font-size: 15px;
            margin-bottom: 6px;
        }

        .category select {
            padding: 12px 14px;
            font-size: 14px;
            padding-right: 36px;
            background-size: 14px;
            background-position: right 10px center;
        }

    #generateBtn {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 10px;
    }

    #closeModal {
        top: 16px;
        right: 16px;
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 360px) {
    .ai-controls {
        padding: 16px 12px;
    }

        .ai-controls h1 {
            font-size: 20px;
        }

    .category h3 {
        font-size: 14px;
    }

    .category select {
        padding: 10px 12px;
        font-size: 13px;
        padding-right: 32px;
    }

    #generateBtn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Landscape mobile orientation */
@media (max-height: 600px) and (orientation: landscape) {
    #imageModal {
        flex-direction: row;
        align-items: stretch;
    }

    #modalImage {
        max-width: 60%;
        max-height: 90vh;
        margin: 0;
    }

    .ai-controls {
        position: static;
        transform: none;
        width: 35%;
        min-width: 280px;
        margin: 0;
        padding: 20px;
        height: 90vh;
        overflow-y: auto;
        border-radius: 0 12px 12px 0;
    }

        .ai-controls h1 {
            font-size: 20px;
            margin-bottom: 16px;
        }

    .category {
        margin-bottom: 16px;
    }

        .category h3 {
            font-size: 14px;
            margin-bottom: 6px;
        }

        .category select {
            padding: 10px 14px;
            font-size: 13px;
        }

    #generateBtn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .category select {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    #generateBtn {
        min-height: 48px;
        font-size: 16px;
    }

    #closeModal {
        min-width: 48px;
        min-height: 48px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ai-controls {
        background: rgba(31, 41, 55, 0.95);
        border: 1px solid rgba(75, 85, 99, 0.3);
    }

        .ai-controls h1 {
            color: #f9fafb;
        }

    .category h3 {
        color: #d1d5db;
    }

    .category select {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

        .category select:hover,
        .category select:focus {
            border-color: #60a5fa;
        }

    .loading {
        color: #9ca3af;
    }
}

/* Accessibility enhancements */
.category select:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

#generateBtn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

#closeModal:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}