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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 20px;
    color: #2c3e50;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px 40px;
    border-bottom: 3px solid #1e3c72;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.content-wrapper {
    padding: 40px;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.section {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 30px;
}

.section-full {
    grid-column: 1 / -1;
}

h2 {
    color: #1e3c72;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #e1e8ed;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.2s;
    background: #ffffff;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
select:hover {
    border-color: #a0aec0;
}

.location-input-group {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
}

.location-input-group select,
.location-input-group input {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.button-group {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn-primary {
    flex: 1;
    padding: 14px 24px;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: #1e3c72;
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-search-icon {
    padding: 10px;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.btn-search-icon:hover {
    background: #1e3c72;
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.btn-search-icon:active {
    transform: translateY(1px);
}

.btn-search-icon svg {
    width: 20px;
    height: 20px;
}


.result-box {
    margin-top: 20px;
    padding: 16px 20px;
    background: #e6f3ff;
    border-left: 4px solid #2a5298;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    color: #1e3c72;
}

.results-section {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    margin-top: 30px;
}

.results-section h2 {
    color: #2c3e50;
    border-bottom-color: #cbd5e0;
}

.price-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.price-item {
    padding: 24px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    transition: all 0.2s;
    text-align: center;
}

.price-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.price-label {
    font-size: 13px;
    color: #718096;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.neighborhood-search-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.neighborhood-dropdown {
    width: 100%;
}

.neighborhood-dropdown select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.2s;
    background: #ffffff;
}

.neighborhood-dropdown select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.error-message {
    color: #e53e3e;
    font-size: 13px;
    padding: 8px 12px;
    background: #fed7d7;
    border-radius: 4px;
    border-left: 3px solid #e53e3e;
}

/* Tablet */
@media (max-width: 1024px) {
    .content-wrapper {
        padding: 30px;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .price-display {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header {
        padding: 20px;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .section {
        padding: 20px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .location-input-group {
        grid-template-columns: 1fr;
    }
    
    .price-display {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .btn-primary {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .button-group {
        flex-direction: column;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 20px;
    }
    
    .section {
        padding: 16px;
    }
    
    .price-value {
        font-size: 20px;
    }
    
    label {
        font-size: 13px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="date"],
    select {
        padding: 10px 12px;
        font-size: 14px;
    }
}
