:root {
    --primary-color: #ff7d00;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --error-color: #dc3545;
    --success-color: #28a745;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    min-height: 100vh;
}

.header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.logo {
    height: 50px;
    width: auto;
}

main {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.form-groups-inline {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.form-groups-inline .form-group {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #e67100;
}

.results-container {
    margin-top: 2rem;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 125, 0, 0.2);
}

#results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.provider-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1.5rem;
    background-color: var(--secondary-color);
}

.provider-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.provider-logo-container {
    width: 120px;
    height: 60px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.provider-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.provider-details {
    margin-top: 1rem;
}

.technique-list {
    list-style: none;
    margin-top: 0.5rem;
}

.technique-header {
    background-color: white;
    padding: 1rem;
    margin-bottom: 2px;
    border-radius: 4px;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    font-weight: bold;
    gap: 1rem;
}

.technique-header .speed {
    font-size: 0.9em;
    color: #666;
    white-space: nowrap;
    text-align: right;
}

.technique-header .arrow {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.technique-header.active .arrow {
    transform: rotate(180deg);
}

.technique-header:hover {
    background-color: #f8f8f8;
}

.technique-content {
    display: none;
    background-color: white;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.technique-content.active {
    display: block;
}


.technique-item > div {
    margin-bottom: 0.25rem;
}

.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
}

.loading.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
}

.error-message {
    color: var(--error-color);
    padding: 1rem;
    background-color: #fff;
    border: 1px solid var(--error-color);
    border-radius: 4px;
    margin-top: 1rem;
}

.quote-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
    align-self: flex-start;
    font-size: 0.9rem;
}

.quote-button:hover {
    background-color: #e67100;
}

.address-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--secondary-color);
    border-radius: 4px;
    border: 1px solid #ddd;
}

.address-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.address-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

#map-container {
    position: relative;
    width: 100%;
}

#map {
    height: 170px;
    width: 100%;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Map attribution styles */
.leaflet-control-attribution {
    font-size: 10px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    padding: 2px 5px !important;
    border-radius: 3px !important;
    margin: 3px !important;
}

.leaflet-control-attribution a {
    color: #666 !important;
}

.address-details {
    padding: 0.5rem;
}

.address-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.address-row strong {
    color: var(--text-color);
    white-space: nowrap;
}
