:root {
    --text-light: #fff;
    --text-dim: #fff;
    --danger: #ef4444;
    --success: #22c55e;
    --border-radius: 12px;
    --transition: 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: #fff;
    color: var(--text-light);
    height: 100vh;
    overflow: hidden;
}

/* App Container */
.app-container {
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: column;
}

@media screen and (min-width: 580px) {}

@media screen and (min-width: 980px) {
    .app-container {
        flex-direction: row;
    }
}

@media screen and (min-width: 1280px) {}

/* Sidebar */
.sidebar {
    background-color: #fff;
    padding: 25px 0 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
	position: relative;
}

.sidebar-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 25px;
    align-items: center;
    padding: 0 20px;
}

.logo-sidebar {
    width: 125px;
}

.sidebar-container {
    background-color: #FF4B00;
    padding: 25px;
    width: 100%;
    border-radius: 0;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 2rem;
}

.sidebar-header h1 {
    font-weight: 700;
    font-size: 1.8rem;
    color: #002180;
}

.sidebar-header p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

@media screen and (min-width: 580px) {}

@media screen and (min-width: 980px) {
    .sidebar {
        padding: 25px 1rem 1rem;
        width: 374px;
        background-color: #fff;
        background-image: url(images/forma.svg);
        background-size: 485px;
        background-position: left -145px bottom -300px;
        background-repeat: no-repeat;
    }

    .sidebar-top {
        padding: 0;
    }

    .sidebar-container {
        width: 425px;
        border-radius: 20px;
    }
}

@media screen and (min-width: 1280px) {}

/* Form Styles */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trip-section {
    border-radius: var(--border-radius);
    padding: 1.25rem;
    border: 1px solid #FFA580;
    position: relative;
    transition: var(--transition);
}

.secondary-trip {
    border-left: 3px solid #002180;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.step-number {
    background: #002180;
    color: white;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.section-title h3 {
    font-size: 1rem;
    font-weight: 600;
    flex-grow: 1;
}

.btn-remove {
    background: transparent;
    border: none;
    color: var(--danger);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
}

.btn-back {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
}

.btn-back img {
    width: 6px;
}

/* Inputs */
.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}

input[type="text"],
input[type="date"],
input[type="time"] {
    width: 100%;
    background-color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.7rem 1rem 0.7rem 1rem;
    color: #002180;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.input-wrapper input {
    padding-left: 1rem;
    /* Adjust if adding icons via CSS psuedo elements later */
}

input:focus {
    outline: none;
}

.row {
    display: flex;
    gap: 0;
    flex-direction: column;
}

@media screen and (min-width: 580px) {
    .row {
        gap: 1rem;
        flex-direction: row;
    }
}

@media screen and (min-width: 980px) {}

@media screen and (min-width: 1280px) {}

.half {
    flex: 1;
}

/* Buttons */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 0.8rem;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    text-align: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-dim);
}

.btn-checkout {
    background: #002180;
    color: var(--text-light);
    border: none;
    padding: 1rem;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    margin-top: 1rem;
}

.btn-checkout:hover {
    background: #001560;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 33, 128, 0.3);
}

.btn-checkout:active {
    transform: translateY(0);
}

/* Results */
.trip-cost {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
}

.price-tag {
    color: var(--success);
    font-weight: 700;
}

.route-info {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: right;
}

.total-result {
    background: #ED7140;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: auto;
}

.total-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.total-amount {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

/* Map */
.map-container {
    flex-grow: 1;
    position: relative;
    background: #e5e5e5;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.map-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 500;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.dot.zone {
    background: rgba(37, 99, 235, 0.4);
    border: 2px solid #2563eb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        overflow: auto;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
        z-index: 2000;
        overflow: visible;
    }

    .map-container {
        height: 50vh;
        min-height: 300px;
    }
}

/* Google Places New Widget Style Override */
gmp-place-autocomplete-element {
    --gmp-px-input-padding-top: 0.8rem;
    --gmp-px-input-padding-bottom: 0.8rem;
    --gmp-px-input-padding-inline-start: 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2) !important;
}

gmp-place-autocomplete-element::part(input) {
    background-color: transparent;
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

gmp-place-autocomplete-element::part(input):focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}


/* Suggestions List Override */
.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.suggestions-list.active {
    display: block;
}

.suggestions-list li {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #cbd5e1;
    transition: 0.2s;
}

.suggestions-list li:hover {
    background: #2563eb;
    color: white;
}

/* Custom Marker Labels */
.custom-marker-label {
    background: #FF4B00;
    color: white;
    padding: 6px 8px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.custom-marker-label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #FF4B00;
    transform: translateX(-51%);
}

.marker-number {
    background: #002180;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.marker-pin {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #6b46c1;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Fix for Google Places Autocomplete on Mobile */
.pac-container {
    z-index: 10000 !important;
	position: absolute !important;
}