﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #FFFFFF, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #f8f9fa;
}


.assessment-question {
    margin-bottom: 0;
}

    .assessment-question .form-label {
        margin-bottom: 0.6rem;
    }

    .assessment-question .form-check {
        margin-bottom: 0.35rem;
    }


.assessment-form {
    padding-inline: 1rem;
}

.hero {
    position: relative;
    height: 80vh;
    background: url('/images/bannerhome.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
    }

    .hero .content {
        position: relative;
        text-align: center;
        color: white;
    }

    .hero .btn {
        border-radius: 30px;
        padding: 0.75rem 2rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

.section {
    position: relative;
    padding: 5rem 0;
}

.section-light {
    background: #fff;
}

.section-dark {
    background: #203a43;
    color: white;
}

.curve-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: inherit;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.curve-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: inherit;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

    .card-custom:hover {
        transform: translateY(-8px);
    }
/* Make every Bootstrap container full‑width */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    max-width: 95% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ensure no default body margins */
html, body {
    margin: 0;
    padding: 0;
}

.carousel-img {
    width: 100%;
    height: 600px; 
    object-fit: cover;
    object-position: center; 
}


#heroCarousel .carousel-caption {
    bottom: 9% !important; 
    transform: translateY(-10%);
}

    #heroCarousel .carousel-caption h2 {
        font-size: 3rem !important; 
        line-height: 1.2;
    }

    #heroCarousel .carousel-caption p {
        font-size: 1.25rem !important; 
        margin-bottom: 1.5rem;
    }

    #heroCarousel .carousel-caption .btn {
        padding: 0.75rem 2rem;
        font-size: 1.125rem;
    }

/* Hero banner */
.hero-banner {
    background-color: #004085;
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

    .hero-banner h1 {
        font-size: 3rem;
        font-weight: 600;
    }

    .hero-banner p {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

/* Feature cards */
.feature-card {
    border: none;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .feature-card i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

    .feature-card.blue {
        background-color: #0d6efd;
    }

    .feature-card.green {
        background-color: #198754;
    }

    .feature-card.orange {
        background-color: #fd7e14;
    }

/* Responsive layout */
@media (max-width: 576px) {
    .hero-banner {
        padding: 3rem 1rem;
    }

        .hero-banner h1 {
            font-size: 2rem;
        }

        .hero-banner p {
            font-size: 1rem;
        }

    .feature-card {
        padding: 1.5rem;
    }
}

.score-gauge {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
}

    .score-gauge .gauge {
        width: 100%;
        aspect-ratio: 2 / 1;
        position: relative;
        overflow: hidden;
        border-radius: 999px 999px 0 0;
        border: 4px solid #d0d7de;
        box-shadow: inset 0 6px 12px rgba(17, 24, 39, 0.12);
        background: transparent;
    }

        .score-gauge .gauge .gauge-fill {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            display: block;
        }

    .score-gauge .needle {
        width: 3px;
        height: 88%;
        background: #111827;
        position: absolute;
        bottom: 0;
        left: 50%;
        margin-left: -1.5px;
        transform-origin: bottom center;
    }

        .score-gauge .needle::after {
            content: '';
            position: absolute;
            top: -7px;
            left: 50%;
            transform: translateX(-50%);
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-bottom: 8px solid #111827;
        }

.score-gauge-scale-wrapper {
    margin-top: 0.75rem;
}

.score-gauge-scale {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.score-gauge-scale__segment {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.score-gauge-scale__segment--poor {
    background: #d62828;
}

.score-gauge-scale__segment--weak {
    background: #f2841b;
}

.score-gauge-scale__segment--average {
    background: #f7c443;
    color: #1f2937;
}

.score-gauge-scale__segment--good {
    background: #3fa652;
}

.score-gauge-scale__segment--excellent {
    background: #1e73be;
}

.score-gauge-scale__segment--active {
    transform: translateY(-6px);
    box-shadow: 0 12px 18px rgba(15, 23, 42, 0.18);
}

.assessment-report {
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.admin-assessments-table__details-row > td {
    background: #f8fafc;
    padding: 1.25rem 1.5rem;
    border-top: none;
}

.admin-assessments-table__details {
    display: block;
    width: 100%;
}

.admin-assessments-table__summary {
    font-weight: 600;
    color: #0b4870;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .admin-assessments-table__summary:focus {
        outline: 2px solid #1e73be;
        outline-offset: 2px;
    }

.admin-assessments-table__details-body {
    margin-top: 1rem;
}

.admin-assessments-table__details[open] .admin-assessments-table__summary {
    color: #094068;
}

.admin-assessments-table__spacer td {
    padding: 0;
    border: none;
    height: 18px;
}

.assessment-report__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.assessment-report__title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0b4870;
    margin: 0;
}

.assessment-report__download {
    border: 1px solid #1e73be;
    color: #1e73be;
    background: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

    .assessment-report__download:hover,
    .assessment-report__download:focus {
        background: #1e73be;
        color: #ffffff;
        box-shadow: 0 8px 16px rgba(30, 115, 190, 0.28);
    }

    .assessment-report__download:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.35);
    }

    .assessment-report__download[disabled] {
        cursor: progress;
        opacity: 0.65;
        box-shadow: none;
        background: #ffffff;
        color: #1e73be;
    }

.assessment-report__intro p {
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.assessment-report__section {
    margin-top: 1.5rem;
}

.assessment-report__section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0b4870;
    margin-bottom: 0.75rem;
}

.assessment-report__rating {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.12), rgba(30, 115, 190, 0.03));
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.assessment-report__rating-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.assessment-report__rating-details {
    text-align: center;
    margin-top: 1rem;
    color: #1f2937;
}

.preparedness-rating-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--rating-color, #0b4870);
    line-height: 1;
}

.preparedness-rating-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.preparedness-rating-grade {
    font-size: 0.95rem;
    color: #374151;
    margin-top: 0.25rem;
}

.preparedness-rating-description {
    font-size: 0.9rem;
    color: #4b5563;
    margin-top: 0.35rem;
}

.rating-legend {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.rating-legend__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #1f2937;
}

.rating-legend__label {
    font-weight: 600;
}

.rating-legend__range {
    font-size: 0.85rem;
    color: #4b5563;
}

.rating-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.rating-dot--poor {
    background: #d62828;
}

.rating-dot--weak {
    background: #f2841b;
}

.rating-dot--average {
    background: #f7c443;
}

.rating-dot--good {
    background: #3fa652;
}

.rating-dot--excellent {
    background: #1e73be;
}

.answer-with-rating {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.answer-with-rating__summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1f2937;
}

.answer-with-rating__text {
    color: #374151;
    font-size: 0.95rem;
}

.assessment-next-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.assessment-next-steps__list {
    flex: 2 1 260px;
}

    .assessment-next-steps__list ol {
        padding-left: 1.25rem;
        color: #1f2937;
    }

.assessment-next-steps__contact {
    flex: 1 1 200px;
    border-left: 1px solid #e5e7eb;
    padding-left: 1rem;
    color: #1f2937;
}

@media (max-width: 768px) {
    .assessment-next-steps__contact {
        border-left: none;
        padding-left: 0;
    }
}

@media print {
    body.printing-report * {
        visibility: hidden;
    }

    body.printing-report .assessment-report--print,
    body.printing-report .assessment-report--print * {
        visibility: visible;
    }

    body.printing-report .assessment-report--print {
        position: absolute;
        inset: 0;
        width: auto;
        margin: 0;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    body.printing-report .assessment-report__download {
        display: none !important;
    }
}

.assessment-history-details > summary {
    cursor: pointer;
    font-weight: 600;
    color: #0b4870;
    margin-bottom: 0.5rem;
}

    .assessment-history-details > summary:focus {
        outline: 2px solid #0b4870;
        outline-offset: 2px;
    }

.vps-logo {
    height: 56px;
}

.home-hero-section {
    border: 1px solid #dbe6f3;
    background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: 0 14px 32px rgba(13, 39, 80, 0.1);
}

.hero-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.hero-urc-logo {
    height: 115px;
    width: auto;
}

.get-started-btn {
    background: linear-gradient(50deg, #742534 0%, #742534 100%);
    border: none !important;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.5vw, 2.5rem) !important;
    letter-spacing: 0.02em;
    padding: 1.2rem 2.8rem !important;
    box-shadow: 0 10px 18px rgba(17, 26, 48, 0.28);
    transition: transform 1.2s ease, box-shadow 1.2s ease, filter 1.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.get-started-btn-icon {
    height: 1.5em;
    width: auto;
    transform: scaleY(-1);
    flex-shrink: 0;
}

    .get-started-btn:hover,
    .get-started-btn:focus {
        background: linear-gradient(50deg, #742534 0%, #742534 100%);
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 16px 28px rgba(11, 18, 34, 0.45);
        filter: brightness(1.04);
    }
    .get-started-btn:focus-visible,
    .get-started-btn:active {
        border: none;
        box-shadow: 0 16px 28px rgba(11, 18, 34, 0.45);
    }

.home-tool-card {
    min-height: 98px;
}

    .home-tool-card .card-body {
        padding: 1rem 0.9rem;
    }

    .home-tool-card .card-title {
        font-size: 1.05rem;
    }

    .home-tool-card .card-text {
        font-size: 0.85rem;
    }

@media (max-width: 768px) {
    .vps-logo {
        height: 48px;
    }

    .hero-urc-logo {
        height: 60px;
    }
}

.modal-backdrop {
    z-index: auto;
}

.modal-header {
    background-color: #6693bc;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

    .modal-header > h4,
    .close,
    .close:hover,
    .close:focus {
        color: #fff;
        background-color: #6693bc;
        border: none;
    }

.close {
    opacity: 0.6;
}

    .close:hover,
    .close:focus {
        color: #fff;
        opacity: 1;
    }

.modal-action-buttons {
    padding: 20px 20px 0px 20px;
    text-align: right;
}

    .modal-action-buttons input[type=button]:first-child {
        margin-right: 10px;
    }

.home-page-shell {
    min-height: calc(100vh - 210px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.25rem 0 2.25rem;
}

.home-hero-section {
    border: 1px solid #dbe6f3;
    background-image: linear-gradient(to top right, rgba(33, 52, 95, 1) 0%, rgba(33, 52, 95, 0) 100%), url('/images/hero-wildfire-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 14px 32px rgba(13, 39, 80, 0.1);
    min-height: calc(22rem + 40px);
    display: flex;
    align-items: center;
}

.hero-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.home-hero-lead {
    max-width: 44rem;
    font-size: clamp(1.05rem, 1.4vw, 1.65rem);
    line-height: 1.6;
    color: #233445;
}

.home-hero-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
    width: 100%;
}

.home-cta-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.home-highlight-stack {
    display: grid;
    gap: 1rem;
}

.home-highlight-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid #d5e2f4;
    border-radius: 0.8rem;
    padding: 1rem 1.1rem;
}

.home-highlight-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0d4d70;
    margin-bottom: 0.35rem;
}

.home-highlight-value {
    margin-bottom: 0;
    color: #1f2937;
}

.home-tools-section {
    margin-bottom: 0.5rem;
}

.home-tool-card {
    min-height: 130px;
    border: none;
    border-radius: 0.7rem;
    box-shadow: 0 12px 28px rgba(15, 28, 56, 0.14);
}

.home-tool-card--blue {
    background: linear-gradient(135deg, #5886b5 0%, #3f6f9f 100%);
}

.home-tool-card--green {
    background: linear-gradient(135deg, #0a6f53 0%, #075e46 100%);
}

.home-tool-card .card-body {
    padding: 1rem 1rem;
}

.home-tool-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.home-tool-card .card-text {
    font-size: 0.95rem;
    opacity: 0.95;
}

@media (max-width: 992px) {
    .home-page-shell {
        min-height: auto;
    }
}

.login-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #005f66;
    font-weight: 700;
    white-space: nowrap;
}

.assessment-review-form {
    margin-bottom: 7rem;
}

.assessment-review-submit-bar {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 960px;
    margin-inline: auto;
    padding: 1rem 1.25rem;
    color: #ffffff;
    background: #203a43;
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.25);
}

.assessment-review-submit-bar__message {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    line-height: 1.35;
}

.assessment-review-submit-bar__button {
    flex-shrink: 0;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .assessment-review-submit-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .assessment-review-submit-bar__button {
        width: 100%;
    }
}

.error-page-shell {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
}

.error-card {
    width: min(100%, 720px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dbe6f3;
    border-radius: 1rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    box-shadow: 0 14px 32px rgba(13, 39, 80, 0.1);
}

.error-status-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    padding: 0.35rem 1rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: #203a43;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.error-eyebrow {
    margin-bottom: 0.75rem;
    color: #0b4870;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.error-title {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
}

.error-message {
    max-width: 34rem;
    margin: 0 auto 1.75rem;
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.6;
}

.error-request-id {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d0d7de;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    color: #4b5563;
    font-size: 0.9rem;
}

    .error-request-id span {
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .error-request-id code {
        color: #0b4870;
        word-break: break-all;
    }

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

    .error-actions .btn {
        min-width: 9rem;
        border-radius: 999px;
        font-weight: 700;
    }

    .error-actions .btn-primary {
        background: linear-gradient(135deg, #21345f 0%, #1a2a4d 100%);
        border: none;
        box-shadow: 0 10px 18px rgba(17, 26, 48, 0.22);
    }

        .error-actions .btn-primary:hover,
        .error-actions .btn-primary:focus {
            background: linear-gradient(135deg, #1a2a4d 0%, #111a30 100%);
            transform: translateY(-2px);
            box-shadow: 0 14px 22px rgba(11, 18, 34, 0.32);
        }

@media (max-width: 575.98px) {
    .error-actions {
        flex-direction: column;
    }

        .error-actions .btn {
            width: 100%;
        }
}
