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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 20px 0 10px;
}

h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

main {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero {
    text-align: center;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.services {
    color: #666;
    font-size: 1rem;
}

.cta-section {
    text-align: center;
    margin-bottom: 25px;
}

.cta-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

#zipForm, #quoteForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #d32f2f;
}

.cta-button {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #b71c1c;
}

.cta-button:active {
    transform: scale(0.98);
}

.error-message {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 10px;
    min-height: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature {
    text-align: center;
    padding: 12px;
}

.feature h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.feature p {
    color: #666;
    font-size: 0.9rem;
}

.quote-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.calculator-pane,
.form-pane {
    padding: 20px;
}

.calculator-pane {
    border-right: 2px solid #f0f0f0;
}

.calculator-pane h2,
.form-pane h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #1a1a1a;
}

.zip-display {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 15px;
    color: #666;
}

.zip-display span {
    font-weight: bold;
    color: #1a1a1a;
}

.sqft-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.sqft-input-container label {
    font-size: 1rem;
    color: #1a1a1a;
}

#sqftInput {
    width: 100px;
    padding: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

#sqftInput:focus {
    outline: none;
    border-color: #d32f2f;
}

.sqft-label {
    font-size: 1rem;
    color: #666;
}

.slider-container {
    margin: 15px 0;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d32f2f;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d32f2f;
    cursor: pointer;
    border: none;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.area-checkboxes {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.checkbox-item:last-child {
    margin-bottom: 0;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-item span {
    font-size: 0.95rem;
    color: #333;
}

.verify-maps {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.verify-maps span {
    font-style: italic;
    color: #666;
}

.price-display {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.price-display h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d32f2f;
    margin: 8px 0;
}

.rate {
    color: #666;
    font-size: 0.95rem;
}

.form-pane form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-pane .error-message {
    margin-top: 0;
}

footer {
    text-align: center;
    padding: 15px 0 10px;
    color: #666;
    font-size: 0.95rem;
}

footer a {
    color: #d32f2f;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.thanks-section {
    text-align: center;
    padding: 40px 20px;
}

.thanks-section h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.thanks-message {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.thanks-message p {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.8;
}

.next-steps {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 40px;
}

.next-steps h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    text-align: center;
}

.next-steps ul {
    list-style-position: inside;
    color: #666;
}

.next-steps li {
    margin-bottom: 15px;
    padding-left: 10px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 30px auto 0;
}

.thanks-section .cta-button {
    display: inline-block;
    text-decoration: none;
}

.secondary-button {
    display: inline-block;
    background-color: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    text-align: center;
}

.secondary-button:hover {
    background-color: #e0e0e0;
}

@media (max-width: 1000px) {
    .quote-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calculator-pane {
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 20px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    main {
        padding: 20px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .price {
        font-size: 2.5rem;
    }
}
