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

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

a {
    color: #2e7d32;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

header {
    background: #2e7d32;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.logo:hover {
    text-decoration: none;
}

nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    font-weight: 500;
}

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

.hero {
    background: linear-gradient(135deg, #1b5e20 0%, #388e3c 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #f57c00;
    text-decoration: none;
}

.btn-secondary {
    background: #666;
}

.btn-secondary:hover {
    background: #555;
}

main {
    padding: 3rem 0;
}

.content-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-section h2 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

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

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

.service-card h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.areas-list {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

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

.area-card h3 {
    color: #2e7d32;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-container h1 {
    color: #2e7d32;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2e7d32;
}

.form-error {
    color: #c62828;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.required::after {
    content: " *";
    color: #c62828;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.thank-you {
    text-align: center;
    padding: 4rem 0;
}

.thank-you h1 {
    color: #2e7d32;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer a {
    color: #81c784;
}

.admin-header {
    background: #1a1a1a;
}

.admin-container {
    padding: 2rem;
}

.admin-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.admin-table tr:hover {
    background: #fafafa;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-new { background: #e3f2fd; color: #1565c0; }
.status-contacted { background: #fff3e0; color: #ef6c00; }
.status-qualified { background: #e8f5e9; color: #2e7d32; }
.status-sent_to_contractor { background: #f3e5f5; color: #7b1fa2; }
.status-closed { background: #eceff1; color: #546e7a; }
.status-spam { background: #ffebee; color: #c62828; }

.filters {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

.lead-detail {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 800px;
}

.lead-detail h1 {
    color: #2e7d32;
    margin-bottom: 1.5rem;
}

.lead-info {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lead-info dt {
    font-weight: 600;
    color: #666;
}

.lead-info dd {
    margin: 0;
}

.login-form {
    max-width: 400px;
    margin: 4rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-form h1 {
    text-align: center;
    color: #2e7d32;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        justify-content: center;
    }
    
    .lead-info {
        grid-template-columns: 1fr;
    }
}
