:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    padding-bottom: 40px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    font-weight: 800;
}

p.subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Car Selection */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.car-option {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.car-option:hover {
    transform: translateY(-2px);
}

.car-option.selected {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.car-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.car-name {
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.car-rate {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
    background: var(--white);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Trip Type Toggle */
.trip-type-selector {
    display: flex;
    background: #e5e7eb;
    padding: 4px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.trip-type-option {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.trip-type-option.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

/* Hidden elements */
.hidden {
    display: none;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

/* Result Card */
.result-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    margin-top: 30px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--secondary-color);
    animation: slideUp 0.4s ease-out;
}

.result-header {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 10px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.result-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #e5e7eb;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 16px;
    border-radius: var(--radius);
    font-weight: 600;
    margin-top: 20px;
    transition: filter 0.2s;
}

.btn-whatsapp:hover {
    filter: brightness(0.95);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Autocomplete Dropdown */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.autocomplete-item:hover {
    background-color: #eff6ff;
    color: var(--primary-color);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    padding-left: 40px;
    /* Space for icon */
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-light);
    font-size: 1.1rem;
    pointer-events: none;
}

.autocomplete-item:before {
    content: '📍';
    font-size: 1rem;
}