/* Passageiro Page Custom Styles */

/* Phone Mockup - Enhanced Design */
.phone-passageiro {
    position: relative;
    width: 320px;
    height: 640px;
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 45px;
    padding: 12px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    margin: 0 auto;
}

.phone-passageiro .phone-screen {
    width: 100%;
    height: 100%;
    background: #f8f9ff;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

.phone-passageiro .app-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f0f2ff 0%, #ffffff 50%);
}

/* App Header */
.app-header-passenger {
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(110, 65, 158, 0.2);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.header-left i {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.header-right i {
    font-size: 1.5rem;
    color: var(--white);
    opacity: 0.9;
}

/* Map Area - Improved */
.phone-passageiro .map-area {
    flex: 1;
    background: linear-gradient(135deg, #e8ebf9 0%, #f5f7ff 100%);
    padding: 1.5rem 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(110, 65, 158, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(251, 177, 47, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.location-input {
    background: var(--white);
    padding: 0.9rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.location-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.location-icon.green {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: var(--white);
}

.location-icon.red {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: var(--white);
}

.location-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.location-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 500;
}

.location-name {
    font-size: 0.85rem;
    color: var(--gray-900);
    font-weight: 600;
}

.route-connector {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg,
            var(--primary-color) 0%,
            var(--primary-light) 50%,
            var(--secondary-color) 100%);
    margin-left: 2rem;
    position: relative;
    z-index: 1;
    opacity: 0.6;
}

/* Ride Options - Redesigned */
.ride-options-passenger {
    padding: 1.2rem;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.options-title {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ride-option-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    padding: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.ride-option-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 65, 158, 0.15);
}

.ride-option-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg,
            rgba(110, 65, 158, 0.05) 0%,
            rgba(251, 177, 47, 0.05) 100%);
    box-shadow: 0 4px 15px rgba(110, 65, 158, 0.2);
}

.best-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--gray-900);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ride-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(110, 65, 158, 0.3);
}

.ride-option-card.active .ride-icon {
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(110, 65, 158, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(110, 65, 158, 0.4);
    }
}

.ride-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ride-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-900);
}

.ride-time {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 500;
}

.ride-price {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.ride-price .currency {
    font-size: 0.75rem;
}

.ride-price .value {
    font-size: 1.1rem;
}

.confirm-ride-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--gray-900);
    border: none;
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(251, 177, 47, 0.4);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.confirm-ride-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 177, 47, 0.5);
}

.confirm-ride-btn i {
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .phone-passageiro {
        width: 280px;
        height: 560px;
    }

    .location-input {
        padding: 0.7rem;
    }

    .ride-option-card {
        padding: 0.8rem;
    }
}