@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1;
    background-color: #ffffff;
    margin: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.form-section {
    text-align: center;
    margin: 2rem 0;
}

.input-group {
    display: block;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    width: 100%;
    margin-top: -20px;
}

input {
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    width: 300px;
    background: rgba(255, 255, 255, 0.9);
}

button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    background-color: #379FC6;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2b89ac;
}

#map-container {
    position: relative;
    height: 400px;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

#map {
    height: 150px;
    margin: 0 0.75rem;
    width: calc(100% - 1.5rem);
    border-radius: 8px;
    overflow: hidden;
}

#scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, #2196f3, transparent);
    animation: scan 2s linear infinite;
    z-index: 2;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.result-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-section {
    text-align: center;
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 0 0.75rem 0.5rem 0.75rem;
}

.cta-section h3 {
    color: #333;
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.cta-section p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.cta-button {
    background: #FBAF00;
    color: black;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 4px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background: #E09E00;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-primary {
    background-color: #379FC6;
}

.cta-primary:hover {
    background-color: #2b89ac;
}

.cta-secondary {
    background-color: #ff9800;
}

.hidden {
    display: none;
}

@keyframes scan {
    0% {
        top: 0;
    }
    50% {
        top: calc(100% - 4px);
    }
    100% {
        top: 0;
    }
}

.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    background-image: url('./site-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 40px 40px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, 
        rgba(0, 124, 190, 0) 0%,
        rgba(0, 124, 190, 0.2) 50%,
        rgba(0, 124, 190, 0) 100%);
    animation: scanBackground 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes scanBackground {
    0% {
        transform: translateY(-100%);
    }
    50% {
        transform: translateY(100vh);
    }
    100% {
        transform: translateY(-100%);
    }
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    margin: 1rem 0;
}

.hero-title h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin: 0;
    max-width: 100%;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
}

.hero-title h1 .risk-text {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 1.5rem;
}

.hero-title h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.white-text {
    color: #ffffff;
}

@media (max-width: 1200px) {
    .hero-title h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero-title h1 {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        justify-content: flex-start;
        padding: 30px 15px;
        min-height: 100%;
        height: auto;
        position: absolute;
    }
    .hero-content {
        padding-top: 0;
        gap: 1rem;
    }
    .hero-title h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    .hero-title h1 .risk-text {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    .hero-title h2 {
        font-size: 1.2rem;
    }
    .hero-title h2 .subtitle {
        top: 40px;
        font-size: 1.2rem;
    }
    .logo-container {
        margin-bottom: 0.5rem;
        margin-top: auto;
    }
    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
    .bottom-logos {
        top: 50px;
    }
    .bottom-logo {
        width: 150px;
    }
    .nws-logo {
        width: 90px;
    }
    .input-group {
        margin-bottom: 1rem;
        padding: 10px;
    }
    .subtitle {
        position: relative;
        font-size: 1.1rem;
        color: #ffffff;
        margin-top: 15px;
        margin-bottom: 10px;
    }
    .bottom-logos {
        gap: 0.75rem;
    }
    .nws-logo {
        top: -8px;
    }
    .bottom-logo {
        width: 150px;
        margin-bottom: 0.75rem;
    }
    .nws-logo {
        width: 70px;
        margin-top: 8px;
    }
    .form-instructions {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    .search-box {
        display: flex;
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }
    .location-icon {
        display: none;
    }
    .search-box input {
        width: 100%;
        padding: 8px;
    }
    .search-box button {
        width: 100%;
        padding: 8px;
        margin-top: 5px;
    }
    .des-logo {
        max-width: 135px;
        height: auto;
    }
    .info-section {
        padding: 0;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        top: -25px;
        max-width: 600px;
    }
    .system-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 25px 0 0 0;
        margin: 0 auto;
        background: white;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
    }
    .info-row {
        background: white;
        padding: 8px;
        border-radius: 8px;
        margin: 0 0.75rem;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: calc(100% - 1.5rem);
        box-sizing: border-box;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    .info-row:nth-child(-n+3) {
        background: rgba(0, 124, 190, 0.05);
        border-radius: 8px;
        border-bottom: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 8px;
        margin-bottom: 1px;
        position: relative;
        width: calc(100% - 1.5rem);
        margin: 0 0.75rem;
    }
    .info-row:nth-child(-n+3) label {
        font-size: 14px;
        font-weight: 500;
        color: #666;
        order: 1;
    }
    .info-row:nth-child(-n+3) span {
        font-size: 18px;
        font-weight: 600;
        color: #007CBE;
        order: 3;
        margin: 2px 0 4px 0;
    }
    .info-row:nth-child(-n+3) .rate-note {
        font-size: 12px;
        color: #666;
        order: 2;
        margin-top: 0;
        margin-bottom: 4px;
    }
    .damage-score-section {
        padding: 8px;
        border-radius: 8px;
        margin: 0;
        margin-top: 4px;
        width: 100%;
        box-sizing: border-box;
        background: rgba(220, 53, 69, 0.05);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: calc(100% - 1.5rem);
        margin: 4px 0.75rem 0;
    }
    .damage-score-section .score-subtitle {
        font-size: 12px;
        color: #666;
        margin: 0;
        margin-bottom: 4px;
    }
    .damage-score-section .score-value {
        font-size: 18px;
        margin: 0 0 4px 0;
        color: #DC3545;
        font-weight: bold;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .system-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 5px 0 0 0;
        margin: 0 auto;
        background: white;
        width: 100%;
        box-sizing: border-box;
    }
    .weather-data {
        background: rgba(0, 124, 190, 0.05);
        margin: 0;
    }
    .weather-data .rate-note {
        font-size: 12px;
        margin-top: 4px;
    }
    .results-layout {
        grid-template-columns: 1fr;
        margin-top: 1rem;
        height: auto;
        padding: 1rem;
    }
    .map-section {
        height: 200px;
        margin: 0;
        width: 100%;
        padding: 0;
        overflow: hidden;
        position: relative;
        top: 0;
        margin-bottom: -25px;
    }
    .map-wrapper {
        margin: 0 0.75rem;
        width: calc(100% - 1.5rem);
        border-radius: 8px;
        overflow: hidden;
    }
    #map {
        height: 150px;
        width: 100%;
        border-radius: 8px;
        box-shadow: none;
        overflow: hidden;
        position: relative;
        z-index: 1;
    }
    #map iframe,
    #map > div,
    .gm-style,
    .gm-style > div,
    .gm-style > div > div {
        border-radius: 8px !important;
        overflow: hidden !important;
    }
    .main-title {
        padding: 10px 10px 5px 10px;
    }
    .main-title p {
        white-space: nowrap;
        font-size: 16px;
    }
    .main-title h2 {
        font-size: 16px;
        font-weight: normal;
        margin: 0 0 2px 0;
    }
}

.highlight {
    color: #4CAF50;
}

.bold {
    font-weight: 700;
}

.underline {
    text-decoration: underline;
    border-bottom: 2px solid #4CAF50;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.form-instructions {
    color: #FBAF00;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
}

.search-box {
    position: relative;
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    gap: 1rem;
    padding: 8px;
}

.location-icon {
    padding: 0;
    color: #666;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    outline: none;
    color: #000000;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.search-box input::placeholder {
    color: #000000;
    opacity: 0.6;
}

.search-box input[type="number"] {
    flex: 0.5;
    min-width: 200px;
}

.search-box input[type="number"]::-webkit-inner-spin-button,
.search-box input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.search-box input[type="number"] {
    -moz-appearance: textfield;
}

.search-box input[type="number"] {
    -moz-appearance: textfield;
}

.search-box button {
    padding: 1rem 2rem;
    background: #007CBE;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.search-box button.active {
    pointer-events: auto;
}

.search-box button:hover {
    background: #006BA4;
}

.error-text {
    color: #ff4444;
    display: none;
    margin-top: 0.5rem;
    text-align: left;
    font-size: 0.9rem;
}

#bill-error {
    margin-left: calc(50% + 1rem);
}

.talk-expert-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #0B2A5B;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-map {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#loading-map-view {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #f5f5f5;
}

.scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to right, 
        rgba(0, 124, 190, 0) 0%,
        rgba(0, 124, 190, 0.4) 50%,
        rgba(0, 124, 190, 0) 100%);
    animation: scanBackground 4s ease-in-out infinite;
    z-index: 2;
}

.scanning-overlay {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 3;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.scanning-overlay h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: #2196f3;
    transition: width 3s linear;
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

.results-layout {
    display: grid;
    grid-template-columns: minmax(600px, 1fr) 600px;
    gap: 2rem;
    margin: 0 auto;
    padding-top: 0;
    position: relative;
    z-index: 2;
    max-width: 100vw;
    overflow: hidden;
}

.map-section {
    height: 550px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-section {
    padding: 0;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    background: white;
    max-width: 600px;
}

.system-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 8px 0 8px;
    margin: 0;
    background: white;
    width: 100%;
    box-sizing: border-box;
}

.info-row {
    background: white;
    padding: 12px 8px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
}

.info-row span {
    color: #4CAF50;
    font-weight: 700;
    font-size: 1.1rem;
}

.savings-highlight {
    border-bottom: none !important;
    margin-top: 0.5rem;
    padding-top: 0.5rem !important;
    border-top: 2px solid #4CAF50 !important;
}

.savings-highlight label {
    color: #4CAF50 !important;
    font-size: 1.2rem !important;
}

.savings-highlight span {
    font-size: 1.4rem !important;
}

.highlight-red {
    color: #ff4444 !important;
}

.panel-adjustment {
    margin: 2rem 0;
}

.next-btn {
    width: 100%;
    background: #FFB800;
    color: black;
    font-weight: bold;
    padding: 1rem;
    border-radius: 4px;
}

.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ff4444;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1001;
    text-align: center;
}

.scanning-text {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 2;
}

h1 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#analysis-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.85);
}

#analysis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#analysis-section > * {
    position: relative;
    z-index: 2;
}

.info-section h2 {
    color: #333;
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.info-section .subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

@media (max-width: 1200px) {
    .results-layout {
        grid-template-columns: 1fr;
        height: auto;
        padding: 1rem;
    }

    .map-section {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .info-section h2 {
        font-size: 1.4rem;
    }

    .info-section .subtitle {
        font-size: 1rem;
    }

    .cta-section {
        padding: 1rem;
    }

    .cta-section h3 {
        font-size: 1.2rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }

    .scanning-overlay {
        width: 90%;
        padding: 1rem;
    }

    .progress-bar {
        width: 100%;
    }
}

.logo-container {
    margin-bottom: 1rem;
}

.des-logo {
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
}

@media (min-width: 1400px) {
    .results-layout {
        grid-template-columns: minmax(600px, 1fr) 600px;
    }
}

.chevron {
    font-size: 1.5em;
    font-weight: 300;
    line-height: 0;
    position: relative;
    top: -1px;
}

.hero-title .second-line {
    display: block;
    text-align: center;
}

.rotating-container {
    position: relative;
    display: inline-block;
    min-height: 1.2em;
    width: 100%;
    text-align: center;
    margin-bottom: 0;
}

.blue-text {
    color: #379FC6;
}

.yellow-text {
    color: #FBAF00;
}

.sharpie-underline {
    position: relative;
    display: inline-block;
}

.sharpie-underline::after {
    content: '';
    position: absolute;
    left: -2%;
    bottom: -3px;
    width: 104%;
    height: 6px;
    background: #FBAF00;
    opacity: 0.3;
    border-radius: 10px;
    transform: rotate(-1deg);
    filter: url(#marker-shape);
}

.survey-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.survey-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.survey-step {
    display: none;
}

.survey-step.active {
    display: block;
}

.input-field {
    margin: 20px 0;
}

.input-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.input-field input.error {
    border-color: #ff4444;
}

.damage-score-section {
    background: white;
    padding: 12px 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.score-header h3 {
    color: #4CAF50;
    font-size: 20px;
    margin: 0;
    text-align: left;
}

.score-subtitle {
    color: #666;
    font-size: 14px;
    margin: 5px 0 0;
    font-style: italic;
    text-align: left;
}

.score-value {
    color: #4CAF50;
    font-size: 32px;
    font-weight: bold;
}

.damage-cta {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0 15px;
    text-align: center;
}

.damage-cta h2 {
    font-size: 20px;
    margin: 0 0 8px;
    color: #333;
}

.damage-cta p {
    color: #666;
    margin: 0 0 15px;
}

.yellow-button {
    background: #FBAF00;
    color: black;
    font-weight: bold;
    padding: 15px;
    width: 100%;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.yellow-button:hover {
    background: #E09E00;
}

.survey-section.hidden {
    display: none;
}

.survey-content h2 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
}

.survey-step h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 2rem;
    text-align: center;
}

.ownership-boxes {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.ownership-option {
    flex: 1;
    padding: 12px 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    color: #333;
}

.ownership-option.selected {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.next-step.yellow-button {
    margin-top: 2rem;
}

.consent-wrapper {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.consent-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.checkbox-wrapper {
    padding-top: 3px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.consent-text {
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    text-align: left;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.success-message .yellow-button {
    max-width: 120px;
    margin: 0 auto;
}

.cost-label-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rate-note {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.dummy-disclaimer {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
    text-align: left;
}

.dummy-disclaimer.hidden {
    display: none;
}

#results {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('./site-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-y: scroll;
    z-index: 1000;
    max-width: 100%;
    overflow-x: hidden;
}

/* Update weather data styling */
.weather-data {
    background: rgba(0, 124, 190, 0.05);
    margin: 0.5rem 0;
    padding: 0.75rem;
}

.weather-data .rate-note {
    color: #007CBE;  /* Blue text for weather notes */
}

.weather-data span {
    color: #007CBE !important;  /* Blue text for weather values */
    font-size: 1.2rem !important;
}

/* Update cost-label-group for weather data */
.weather-data .cost-label-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Add new logo container below subtitle */
.bottom-logo {
    width: 200px;
    height: auto;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.bottom-logo img {
    width: 100%;
    height: auto;
}

/* Style the logo container */
.bottom-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nws-logo {
    width: 120px;
    height: auto;
    opacity: 0.8;
    margin-top: 10px;  /* Adjusted spacing */
}

.nws-logo img {
    width: 100%;
    height: auto;
}

.main-title {
    color: #333;
    margin: 0;
    padding: 10px;
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    width: 100%;
}

.main-title h2 {
    font-size: 18px;
    font-weight: normal;
    margin: 0 0 2px 0;
}

.main-title p {
    font-size: 18px;
    margin: 0;
    color: #333;
    font-weight: 600;
    padding: 0 15px;
    white-space: nowrap;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

#map {
    height: calc(100% - 64px);
    width: 90%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    #results {
        background-color: white;
        background-image: none;
    }

    .main-title {
        padding: 0;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 3;
    }

    .map-section {
        height: 200px;
        margin: 0;
        width: 100%;
        padding: 0;
        overflow: hidden;
        position: relative;
        top: 0;
        margin-bottom: -25px;
    }

    .map-wrapper {
        margin: 0 0.75rem;
        width: calc(100% - 1.5rem);
        border-radius: 8px;
        overflow: hidden;
    }

    #map {
        height: 150px;
        width: 100%;
        border-radius: 8px;
        box-shadow: none;
        overflow: hidden;
        position: relative;
        z-index: 1;
    }

    .info-section {
        padding: 0;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        top: -25px;
    }

    .system-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 25px 0 0 0;
        margin: 0 auto;
        background: white;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
    }

    .info-row {
        background: white;
        padding: 8px;
        border-radius: 8px;
        margin: 0 0.75rem;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: calc(100% - 1.5rem);
        box-sizing: border-box;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

    .info-row:nth-child(-n+3) {
        background: rgba(0, 124, 190, 0.05);
        border-radius: 8px;
        border-bottom: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 8px;
        margin-bottom: 1px;
        position: relative;
        width: calc(100% - 1.5rem);
        margin: 0 0.75rem;
    }

    .info-row:nth-child(-n+3) label {
        font-size: 14px;
        font-weight: 500;
        color: #666;
        order: 1;
    }

    .info-row:nth-child(-n+3) span {
        font-size: 18px;
        font-weight: 600;
        color: #007CBE;
        order: 3;
        margin: 2px 0 4px 0;
    }

    .info-row:nth-child(-n+3) .rate-note {
        font-size: 12px;
        color: #666;
        order: 2;
        margin-top: 0;
        margin-bottom: 4px;
    }

    .weather-data {
        background: rgba(0, 124, 190, 0.05);
        margin: 0;
    }

    .weather-data .rate-note {
        font-size: 12px;
        margin-top: 4px;
        line-height: 1.3;
    }

    .main-title h2 {
        font-size: 16px;
        font-weight: normal;
        margin: 0 0 2px 0;
    }

    .damage-score-section {
        padding: 8px;
        border-radius: 8px;
        margin: 0;
        margin-top: 4px;
        width: 100%;
        box-sizing: border-box;
        background: rgba(220, 53, 69, 0.05);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: calc(100% - 1.5rem);
        margin: 4px 0.75rem 0;
    }

    .damage-score-section .score-subtitle {
        font-size: 12px;
        color: #666;
        margin: 0;
        margin-bottom: 4px;
    }

    .damage-score-section .score-value {
        font-size: 18px;
        margin: 0 0 4px 0;
        color: #DC3545;
        font-weight: bold;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .damage-score-section .score-value span {
        font-size: 24px;
    }

    .system-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 5px 0 0 0;
        margin: 0 auto;
        background: white;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Style specifically the first 3 boxes */
.info-row:nth-child(-n+3) {
    background: rgba(0, 124, 190, 0.05);
    border-bottom: none;
    flex-direction: column;  /* Keep the first 3 boxes stacked */
}

@media (max-width: 768px) {
    .system-info {
        background: white;
    }

    .weather-data {
        background: rgba(0, 124, 190, 0.05);
        margin: 0;
    }

    .info-row:nth-child(-n+3) {
        background: rgba(0, 124, 190, 0.05);
        border-bottom: none;
        flex-direction: column;  /* Keep the first 3 boxes stacked */
        align-items: flex-start;
    }

    .info-row label {
        font-size: 14px;
        font-weight: 500;
        color: #666;
        margin-right: 8px;
    }

    .info-row span {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        text-align: right;
    }
}

#savings-section {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 600px;
}

/* Target the map canvas and its container */
#map-container iframe,
#map-container > div,
#map-container .gm-style,
#map-container .gm-style > div,
#map-container .gm-style > div > div {
    border-radius: 8px !important;
    overflow: hidden !important;
} 