* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
}

.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%;
}

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: #2196f3;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1976d2;
}

#map-container {
    position: relative;
    height: 400px;
    margin: 2rem 0;
}

#map {
    height: 100%;
    width: 100%;
    border-radius: 8px;
}

#scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, #2196f3, transparent);
    animation: scan 2s linear infinite;
}

.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 {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.cta-section h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: #666;
    margin-bottom: 1rem;
}

.cta-button {
    background: #FFB800;
    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: #FFA000;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-primary {
    background-color: #4caf50;
}

.cta-secondary {
    background-color: #ff9800;
}

.hidden {
    display: none;
}

@keyframes scan {
    0% {
        top: 0;
    }
    50% {
        top: calc(100% - 4px);
    }
    100% {
        top: 0;
    }
}

.hero-section {
    background-image: url('https://des.solar/wp-content/uploads/2023/03/fmf_kZro0l2.jpg_1678750864.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 0;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.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 > * {
    position: relative;
    z-index: 2;
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    margin: 2rem 0;
}

.hero-title h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0;
    white-space: normal;
    max-width: 100%;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .hero-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title h2 {
        font-size: 2rem;
    }
}

.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;
}

.search-box {
    position: relative;
    display: flex;
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    gap: 1rem;
    padding: 0.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.location-icon {
    padding: 1rem;
    color: #666;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    outline: none;
}

.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 button {
    padding: 1rem 2rem;
    background: #ff9800;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.7;
    pointer-events: none;
}

.search-box button.active {
    opacity: 1;
    pointer-events: auto;
}

.error-text {
    color: #ff4444;
    display: none;
    margin-top: 0.5rem;
    text-align: left;
    font-size: 0.9rem;
}

#bill-error {
    margin-left: calc(50% + 1rem);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

.address-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.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;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-map {
    position: relative;
    width: 80%;
    height: 80vh;
    max-width: 1200px;
    border-radius: 8px;
    overflow: hidden;
}

#loading-map-view {
    width: 100%;
    height: 100%;
}

.scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, 
        rgba(33, 150, 243, 0), 
        rgba(33, 150, 243, 0.8), 
        rgba(33, 150, 243, 0));
    animation: scan 3s linear 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.7);
    padding: 2rem;
    border-radius: 8px;
}

.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;
    animation: progress 10s linear forwards;
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

.results-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1400px;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    height: calc(100vh - 100px);
    overflow: auto;
}

.map-section {
    position: relative;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
    max-height: 100%;
    overflow: auto;
}

.system-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.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;
}

.panel-adjustment {
    margin: 2rem 0;
}

.next-btn {
    width: 100%;
    background: #FFB800;
    color: black;
    font-weight: bold;
    padding: 1rem;
    border-radius: 4px;
}

@keyframes scan {
    0% {
        top: 0;
    }
    50% {
        top: calc(100% - 4px);
    }
    100% {
        top: 0;
    }
}

.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: 10;
}

h1 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#analysis-section {
    background-image: url('https://des.solar/wp-content/uploads/2023/03/fmf_kZro0l2.jpg_1678750864.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 0;
    padding-top: 80px;
}

#analysis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

#analysis-section .container {
    position: relative;
    z-index: 2;
}

.info-section h2 {
    color: #333;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.info-section .subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .results-layout {
        grid-template-columns: 1fr;
        margin-top: 1rem;
        height: auto;
        padding: 1rem;
    }

    .map-section {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-title h2 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .search-box {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .search-box input {
        width: 100%;
        min-width: unset;
    }

    .search-box button {
        width: 100%;
    }

    .info-section {
        padding: 1rem;
    }

    .system-info {
        padding: 1rem;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .info-row span {
        align-self: flex-end;
    }

    .header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .talk-expert-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    #bill-error {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .hero-title h2 {
        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%;
    }
} 