/* =====================
   Complete Original CSS (all unchanged styles)
===================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #CCDBD0; background: #f8f6f0; scroll-behavior: smooth; }

/* Navigation */
.nav { position: fixed; top: 0; width: 100%; background: rgba(248, 246, 240, 0.95); backdrop-filter: blur(10px); z-index: 1000; padding: 15px 0; border-bottom: 1px solid #d4c5a9; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 30px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 20px; font-weight: 600; color: #6b7f6d; }
.nav-status { font-size: 14px; color: #5a6b5c; background: #eae6db; padding: 6px 12px; border-radius: 20px; }

/* Hero Section (Original) */
.hero { min-height: 100vh; display: flex; align-items: center; background: transparent; /*background: linear-gradient(135deg, #6b7f6d 0%, #7a8c6e 50%, #8a9b7b 100%);*/ color: #f8f6f0; text-align: center; padding: 100px 30px 60px; }
.hero-content { max-width: 1000px; margin: 150px auto; }
.hero h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.1; color: #436549; }
.hero .subtitle { font-size: 2rem; margin-bottom: 2rem; opacity: 0.9; font-weight: 400; color: #436549; }
.hero .description { font-size: 1.5rem; margin-bottom: 3rem; opacity: 0.85; max-width: 800px; margin-left: auto; margin-right: auto; color: #436549; }
.cta-button { display: inline-block; background: #e67e22; color: #f8f6f0; padding: 18px 40px; font-size: 1.1rem; font-weight: 600; text-decoration: none; border-radius: 8px; transition: all 0.3s ease; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3); }
.cta-button:hover { background: #d35400; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4); }

/* Form Sections */
.form-section { background: #f8f6f0; min-height: 100vh; padding: 100px 30px 60px; }
.form-container { max-width: 600px; margin: 0 auto; }
.progress-bar { display: flex; justify-content: center; margin-bottom: 3rem; gap: 2rem; }
.progress-step { display: flex; align-items: center; font-size: 14px; color: #8a9b7b; }
.progress-step.active { color: #6b7f6d; font-weight: 600; }
.progress-step.completed { color: #e67e22; }
.progress-step::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 8px; }
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; color: #2d3e2f; text-align: center; }
.section-description, .form-description { font-size: 1.1rem; color: #5a6b5c; text-align: center; margin-bottom: 3rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 8px; color: #2d3e2f; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid #d4c5a9; border-radius: 8px; font-size: 16px; transition: border-color 0.3s ease; background: white; color: #2d3e2f; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #6b7f6d; box-shadow: 0 0 0 3px rgba(107, 127, 109, 0.1); }
.form-group small { display: block; margin-top: 5px; color: #7a8c6e; font-size: 14px; }
.btn-primary, .submit-button { width: 100%; background: #6b7f6d; color: #f8f6f0; border: none; padding: 16px; font-size: 1.1rem; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-top: 2rem; }
.btn-primary:hover, .submit-button:hover { background: #5a6b5c; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(107, 127, 109, 0.3); }

/* Info Section Styles */
.info-section { background: #f8f6f0; min-height: 100vh; padding: 100px 30px 60px; }
.info-section .info-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}
.info-card { background: white; border-left: 4px solid #6b7f6d; padding: 2rem; margin: 2rem 0; border-radius: 0 8px 8px 0; box-shadow: 0 2px 10px rgba(107, 127, 109, 0.1); }
.info-card h3 { color: #2d3e2f; font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.info-card p { color: #4a5a4c; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat-item { text-align: center; background: #f0ede3; padding: 1.5rem; border-radius: 8px; border: 1px solid #d4c5a9; }
.stat-number { font-size: 2rem; font-weight: 700; color: #e67e22; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.9rem; color: #5a6b5c; }
.highlight-card, .highlight-section { background: linear-gradient(135deg, #f0ede3 0%, #eae6db 100%); border-left: 4px solid #e67e22; }
.mission-box { background: linear-gradient(135deg, #6b7f6d 0%, #7a8c6e 100%); color: #f8f6f0; padding: 1.5rem; border-radius: 8px; margin: 1.5rem 0; }
.info-list { margin-left: 1.5rem; margin-top: 1rem; }
.info-list li { margin: 0.5rem 0; color: #4a5a4c; }

/* Survey Styles */
.survey-section { background: #f8f6f0; min-height: 100vh; padding: 100px 30px 60px; }
.survey-container { max-width: 700px; margin: 0 auto; }
.survey-group { background: white; padding: 2rem; margin: 2rem 0; border-radius: 12px; border: 1px solid #d4c5a9; box-shadow: 0 2px 10px rgba(107, 127, 109, 0.08); }
.survey-group h3 { color: #2d3e2f; font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; border-bottom: 2px solid #eae6db; padding-bottom: 0.5rem; }
.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.radio-group label, .checkbox-group label { display: flex; align-items: center; cursor: pointer; padding: 0.75rem; border-radius: 6px; transition: background-color 0.2s ease; font-weight: normal; color: #2d3e2f; }
.radio-group label:hover, .checkbox-group label:hover { background: #f0ede3; }
.radio-group input, .checkbox-group input { width: auto; margin-right: 12px; accent-color: #6b7f6d; }
.thank-you { text-align: center; background: #f0ede3; padding: 4rem 2rem; border-radius: 12px; border: 1px solid #d4c5a9; }
.thank-you h2 { color: #6b7f6d; font-size: 2rem; margin-bottom: 1rem; }
.thank-you p { color: #4a5a4c; font-size: 1.1rem; margin: 0.5rem 0; }

/* Footer */
.footer-info { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #d4c5a9; color: #7a8c6e; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1.25rem; }
    .nav-container, .hero-content, .form-container, .info-container, .survey-container { padding-left: 20px; padding-right: 20px; }
    .progress-bar { flex-direction: column; gap: 1rem; text-align: center; }
    .stat-grid { grid-template-columns: 1fr; }
}

/* Additional TangiblEmpact styling touches */
.info-card strong { color: #e67e22; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #8a9b7b; }

/* Custom selection colors */
::selection { background: rgba(230, 126, 34, 0.2); color: #2d3e2f; }

/* Enhanced button states */
.btn-primary:active, .submit-button:active, .cta-button:active { transform: translateY(0); }

/* Better focus indicators */
.btn-primary:focus, .submit-button:focus, .cta-button:focus { outline: 2px solid #e67e22; outline-offset: 2px; }

/* home.css - Styles only for Devens Rezoning Tool homepage */
/* Background map */
body.homepage { background: url("../data/Background_1.png") no-repeat center center fixed; background-size: cover; }

/* Transparent overlay box */
.hero-overlay { background: rgba(255, 255, 255, 0.7); padding: 40px; border-radius: 12px; max-width: 800px; margin: 0 auto; }

/* Logo image */
.logo-img { height: 40px; width: auto; cursor: pointer; }

/* Book demo button */
.demo-button { margin-left: 15px; padding: 6px 12px; background: #ffffffcc; border-radius: 6px; font-size: 14px; text-decoration: none; color: #333; transition: background 0.2s ease; }
.demo-button:hover { background: #fff; }

/* =====================
   Timeline Section (Original)
===================== */
.timeline-section { padding: 120px 30px 60px; background: #f8f6f0; text-align: center; }
.timeline-section .section-title { font-size: 2.5rem; margin-bottom: 3rem; color: #2d3e2f; font-weight: 700; }

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #6b7f6d #f0ede3;
}

.timeline::-webkit-scrollbar { height: 8px; }
.timeline::-webkit-scrollbar-thumb { background-color: #6b7f6d; border-radius: 4px; }
.timeline::-webkit-scrollbar-track { background-color: #f0ede3; border-radius: 4px; }

.timeline-item {
    flex: 0 0 auto;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.timeline-year { font-weight: 700; color: #e67e22; font-size: 1.2rem; }
.timeline-content {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #6b7f6d;
    box-shadow: 0 2px 8px rgba(107,127,109,0.1);
    font-size: 0.9rem;
    min-height: 60px;
}

/* =====================
   NEW REDESIGNED STYLES FOR BACKGROUND PAGE
===================== */

/* Hero Section - Redesigned */
.hero-redesign {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 30px 60px;
    background: linear-gradient(135deg, #f8f6f0 0%, #eae6db 100%);
    position: relative;
}

.hero-redesign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%236b7f6d" opacity="0.05"/><circle cx="75" cy="75" r="1.5" fill="%236b7f6d" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%236b7f6d" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content-redesign {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-redesign h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #2d3e2f;
    letter-spacing: -1px;
}

.subtitle-redesign {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    font-weight: 400;
    color: #4a5a4c;
    opacity: 0.9;
}

.description-redesign {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 3rem;
    color: #5a6b5c;
    opacity: 0.8;
    max-width: 700px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6b7f6d;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-text {
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: #6b7f6d;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #6b7f6d;
}

/* Community Overview Section */
.community-section {
    padding: 100px 30px;
    background: white;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-redesign {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #2d3e2f;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #5a6b5c;
    max-width: 600px;
    margin: 0 auto;
}

.stats-grid-redesign {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card-redesign {
    background: linear-gradient(135deg, #f0ede3 0%, #eae6db 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #d4c5a9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-redesign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #e67e22, #d35400);
}

.stat-card-redesign:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(107, 127, 109, 0.15);
}

.stat-number-redesign {
    font-size: 3rem;
    font-weight: 800;
    color: #e67e22;
    margin-bottom: 10px;
    display: block;
}

.stat-label-redesign {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3e2f;
    margin-bottom: 10px;
}

.stat-description {
    font-size: 0.9rem;
    color: #5a6b5c;
    line-height: 1.4;
}

/* Timeline Section - Redesigned */
.timeline-section-redesign {
    padding: 100px 30px;
    background: linear-gradient(135deg, #6b7f6d 0%, #5a6b5c 100%);
    color: white;
    position: relative;
}

.timeline-section-redesign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.timeline-section-redesign .section-container {
    position: relative;
    z-index: 2;
}

.timeline-title {
    color: white;
    text-align: center;
    margin-bottom: 60px;
}

.timeline-redesign {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-redesign::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
}

.timeline-item-redesign {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
}

.timeline-item-redesign:nth-child(odd) .timeline-content-redesign {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 40px;
}

.timeline-item-redesign:nth-child(even) .timeline-content-redesign {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 40px;
}

.timeline-year-redesign {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    background: #e67e22;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.timeline-content-redesign {
    background: rgba(255, 255, 255, 0.95);
    color: #2d3e2f;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
}

.timeline-item-redesign:nth-child(odd) .timeline-content-redesign::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid rgba(255, 255, 255, 0.95);
}

.timeline-item-redesign:nth-child(even) .timeline-content-redesign::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid rgba(255, 255, 255, 0.95);
}

.timeline-content-redesign h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2d3e2f;
}

.timeline-content-redesign p {
    color: #4a5a4c;
    line-height: 1.5;
}

/* Updated Info Cards for Redesigned Layout */
.cards-grid-redesign {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

@media (min-width: 1024px) {
    .cards-grid-redesign {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(107, 127, 109, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(107, 127, 109, 0.2);
}

.info-card:hover::before {
    animation: shine 0.8s ease-out;
    opacity: 1;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.highlight-card-redesign {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border-left: 5px solid #fff;
    color: white;
}

.highlight-card-redesign h3,
.highlight-card-redesign p {
    color: white;
}

.highlight-card-redesign .info-list li {
    color: rgba(255, 255, 255, 0.9);
}

.info-list {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.info-list li {
    position: relative;
    padding-left: 30px;
    margin: 12px 0;
    color: #4a5a4c;
}

.info-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #6b7f6d;
    font-weight: bold;
    font-size: 1.1rem;
}

.highlight-card-redesign .info-list li::before {
    color: white;
}

/* CTA Section */
.cta-section-redesign {
    padding: 100px 30px;
    background: linear-gradient(135deg, #2d3e2f 0%, #1a2a1c 100%);
    color: white;
    text-align: center;
    position: relative;
}

.cta-section-redesign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-opacity="0.1" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.cta-content-redesign {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    color: white;
}

/* Enhanced Button Styles for Redesigned Layout */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.3);
    width: auto;
}

.btn-primary::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;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

/* Override for original btn-primary styles in forms */
.form-section .btn-primary,
.survey-section .btn-primary {
    width: 100%;
    background: #6b7f6d;
    color: #f8f6f0;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    box-shadow: none;
}

.form-section .btn-primary:hover,
.survey-section .btn-primary:hover {
    background: #5a6b5c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 127, 109, 0.3);
}

.form-section .btn-primary::before,
.survey-section .btn-primary::before {
    display: none;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .hero-redesign {
        padding: 100px 20px 40px;
    }

    .community-section,
    .timeline-section-redesign,
    .cta-section-redesign {
        padding: 60px 20px;
    }

    .stats-grid-redesign {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cards-grid-redesign {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline-redesign::before {
        left: 20px;
    }

    .timeline-item-redesign:nth-child(odd) .timeline-content-redesign,
    .timeline-item-redesign:nth-child(even) .timeline-content-redesign {
        margin-left: 50px;
        margin-right: 0;
        padding-left: 20px;
        padding-right: 20px;
    }

    .timeline-year-redesign {
        left: 20px;
        transform: translateX(-50%);
    }

    .timeline-item-redesign:nth-child(odd) .timeline-content-redesign::after,
    .timeline-item-redesign:nth-child(even) .timeline-content-redesign::after {
        left: -10px;
        right: auto;
        border-right: 10px solid rgba(255, 255, 255, 0.95);
        border-left: none;
    }

    .info-card {
        padding: 30px 25px;
    }
}