/* GLOBAL SETTINGS */
:root {
    --primary: #00aaff;
    --red: #ff4444;
    --dark: #121212;
    --light-bg: #f4f7f9;
    --white: #ffffff;
    --text-muted: #666;
}

html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    background: var(--white); 
    color: var(--dark);
    line-height: 1.6;
}

/* HEADER & NAVIGATION */
header { 
    background: var(--white); 
    padding: 18px 8%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; }
.logo span { color: var(--primary); }

nav a {
    margin-left: 25px;
    font-size: 0.85rem;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    text-decoration: none;
}

.nav-btn { background: var(--primary); color: white !important; padding: 10px 22px; border-radius: 8px; transition: 0.3s; }
.back-link { font-size: 0.8rem; font-weight: 700; text-decoration: none; color: var(--dark); opacity: 0.6; }

/* HERO SECTION */
.hero { padding: 120px 10%; text-align: center; background: #fff; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; }

.btn { padding: 16px 35px; border-radius: 10px; text-decoration: none; font-weight: 700; transition: 0.3s; display: inline-block; cursor: pointer; }
.btn.primary { background: var(--primary); color: white; border: none; box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3); }
.btn.secondary { border: 2px solid var(--primary); color: var(--primary); margin-left: 15px; }

/* TRUST BAR & SERVICES */
.trust-bar { background: #f0f9ff; padding: 20px; text-align: center; font-weight: 600; color: var(--primary); font-size: 0.9rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; padding: 100px 10%; background: var(--light-bg); }
.service-card { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: 0.3s; }
.service-card h3 { color: var(--primary); margin-bottom: 15px; }

/* PROCESS SECTION */
.process { padding: 100px 10%; text-align: center; }
.steps { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.step { flex: 1; min-width: 150px; text-align: center; }
.step-num { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: var(--primary); color: white; border-radius: 50%; font-weight: 800; margin: 0 auto 20px; }

/* FORM PAGE UI */
.form-page { background: var(--light-bg); }
.form-container { max-width: 650px; margin: 40px auto; padding: 0 20px; }
.booking-card { background: white; padding: 40px; border-radius: 20px; box-shadow: 0 15px 45px rgba(0,0,0,0.07); }
.form-title { margin-top: 0; font-weight: 800; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; margin-bottom: 30px; }
.form-section { margin-bottom: 35px; }
.form-section h3 { font-size: 0.9rem; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; font-weight: 800; margin-bottom: 15px; }

/* TRIP BOXES */
.location-box .input-row { margin-bottom: 15px; }
.location-box input { background: #fff; }
.box-label { font-size: 0.65rem; font-weight: 800; color: #aaa; display: block; margin-bottom: 10px; letter-spacing: 1px; }
.pickup-box { border-left: 5px solid var(--primary); padding-left: 15px; }
.dropoff-entry { border-left: 5px solid var(--red); padding-left: 15px; margin-top: 5px; }
.connector-line { width: 2px; height: 20px; background: #eee; margin-left: 35px; }

/* INPUTS */
.input-row { display: flex; gap: 15px; }
input, select { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; box-sizing: border-box; font-family: inherit; margin-bottom: 10px; }
input:focus, select:focus { outline: 2px solid var(--primary); border-color: transparent; }
.add-btn { background: none; border: none; color: var(--primary); font-weight: 800; cursor: pointer; padding: 10px 0; }

/* PRICE BOX */
.price-display { background: #f0f9ff; padding: 25px; border-radius: 15px; text-align: center; margin: 30px 0; border: 2px dashed var(--primary); }
.price-display h2 { margin: 5px 0; font-size: 2.2rem; font-weight: 800; }
.price-note { font-size: 0.75rem; color: #888; margin: 0; }
.submit-btn { width: 100%; font-size: 1.1rem; }

/* LOADING SPINNER for distance calculation */
.price-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--primary);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #d0eeff;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* FOOTER */
footer { 
    background: var(--dark); 
    color: #fff; 
    padding: 60px 10% 30px; 
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-left { flex: 1; min-width: 250px; text-align: left; }
.footer-right { flex: 1; min-width: 250px; text-align: right; }

.footer-logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 10px; }
.footer-logo span { color: var(--primary); }

.footer-right h4 {
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-bottom { 
    border-top: 1px solid #222; 
    padding-top: 30px; 
    text-align: center;
    font-size: 0.8rem; 
    color: #666; 
}

.footer-link { color: #fff; text-decoration: none; transition: 0.3s; }
.footer-link:hover { color: var(--primary); }
.social-handle { margin-top: 10px; font-size: 0.85rem; color: #888; }

/* REMOVE BUTTON */
.remove-btn {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    padding: 5px 0;
    display: block;
    text-align: right;
    width: 100%;
}
.remove-btn:hover { text-decoration: underline; }



/* MOBILE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons .btn { display: block; margin: 10px 0; width: 100%; }
    .btn.secondary { margin-left: 0; }
    .input-row { flex-direction: column; gap: 0; }
    nav { display: none; }
    .track-input-group { flex-direction: column; }
}
