/* 
 * J-Transfer - Premium Stylesheet
 * Luxury Chauffeur & Transfer Aesthetics
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-dark: #0A0A0C;
    --bg-card: rgba(22, 22, 26, 0.78);
    --border-color: rgba(255, 255, 255, 0.07);
    --primary-gold: #c5a880;
    --primary-gold-hover: #b3946c;
    --primary-gold-alpha: rgba(197, 168, 128, 0.15);
    --text-white: #FFFFFF;
    --text-muted: #A0A0AB;
    --text-dark: #1F2024;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Header & Navigation */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 24px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary-gold);
}

.contact-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.phone-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
    border: 1px solid var(--primary-gold-alpha);
    padding: 8px 18px;
    border-radius: 40px;
    background-color: rgba(197, 168, 128, 0.05);
}

.phone-link:hover {
    background-color: var(--primary-gold);
    color: var(--text-dark);
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 120px 5% 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 10, 12, 0.92) 30%, rgba(10, 10, 12, 0.6) 100%), 
                url('../images/hero_car.png') no-repeat center center/cover;
    background-attachment: fixed;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

/* Hero Text & Info */
.hero-text {
    padding-right: 20px;
}

.hero-tagline {
    color: var(--primary-gold);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 600;
}

.hero-title span {
    font-style: italic;
    color: var(--primary-gold);
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 500px;
    font-weight: 300;
}

.usps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.usp-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-gold-alpha);
    border: 1px solid rgba(197, 168, 128, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    flex-shrink: 0;
}

.usp-text h4 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.usp-text p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Booking Card (Glassmorphism) */
.booking-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
}

.booking-card:hover {
    border-color: rgba(197, 168, 128, 0.2);
}

.booking-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-align: center;
}

.booking-card .card-subtitle {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container i {
    position: absolute;
    left: 16px;
    color: var(--primary-gold);
    font-size: 1rem;
    pointer-events: none;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px 14px 44px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-gold);
    box-shadow: 0 0 12px rgba(197, 168, 128, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Custom Select (Payment) */
.payment-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.payment-option {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
    user-select: none;
}

.payment-option img {
    height: 18px;
    filter: brightness(0.9);
}

.payment-option input {
    display: none;
}

.payment-option.active {
    border-color: var(--primary-gold);
    background: var(--primary-gold-alpha);
}

/* Vehicle Highlight (Static - No Choice) */
.vehicle-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-bottom: 24px;
}

.vehicle-info h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
}

.vehicle-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Pricing Display Area */
.price-display-wrapper {
    background: linear-gradient(180deg, rgba(197, 168, 128, 0.08) 0%, rgba(197, 168, 128, 0.01) 100%);
    border: 1px solid rgba(197, 168, 128, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 28px;
    text-align: center;
    display: none; /* Shown dynamically via JS */
    animation: fadeIn 0.4s ease forwards;
}

.price-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-bottom: 1px dashed rgba(197, 168, 128, 0.2);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.price-detail-item {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.price-detail-item strong {
    display: block;
    font-size: 1.05rem;
    color: var(--text-white);
    margin-top: 2px;
}

.total-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.total-price span {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1.2;
    margin-top: 4px;
}

/* CTA Submit Button */
.submit-btn {
    width: 100%;
    background: var(--primary-gold);
    color: var(--text-dark);
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: var(--primary-gold-hover);
    box-shadow: 0 8px 25px rgba(197, 168, 128, 0.3);
    transform: translateY(-2px);
}

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

.submit-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Section Services */
.services-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-smooth);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-5px);
    border-color: rgba(197, 168, 128, 0.2);
}

.service-card h3 {
    font-size: 1.4rem;
    margin: 20px 0 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Status Pages (Success & Cancel) */
.status-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 5%;
    background: linear-gradient(135deg, #0A0A0C 0%, #16171B 100%);
}

.status-card {
    max-width: 550px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(20px);
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 28px;
}

.status-icon.success {
    background-color: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.status-icon.cancel {
    background-color: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.status-card h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.status-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.booking-summary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 32px;
    text-align: left;
}

.booking-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.booking-summary-row:last-child {
    border-bottom: none;
    font-weight: 600;
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.booking-summary-row span:first-child {
    color: var(--text-muted);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--text-dark);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 5%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: #060608;
}

footer p span {
    color: var(--primary-gold);
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-section {
        background-attachment: scroll !important; /* Fix for iOS background-attachment zoom bugs */
        padding: 100px 5% 40px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
    }
    
    .usps {
        align-items: center;
        width: 100%;
        max-width: 500px;
    }

    .usp-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 10px;
    }

    .usp-text {
        text-align: center;
    }

    .usp-text p {
        text-align: center;
    }
    
    .services-section {
        padding: 60px 5%;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 90px 4% 30px;
    }

    .hero-title {
        font-size: 1.95rem; /* Prevents text-wrapping bugs on narrow screens */
        line-height: 1.25;
    }

    .hero-desc {
        font-size: 1.05rem;
    }

    .booking-card {
        padding: 20px; /* Maximize input field area */
        border-radius: 18px;
    }
    
    .booking-card h3 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px; /* Creates spacing between date/time and email/phone when stacked */
    }

    .form-group {
        margin-bottom: 16px;
    }
    
    .form-input {
        padding: 12px 14px 12px 40px; /* Touch target optimized size */
        font-size: 0.9rem;
    }
    
    .input-container i {
        left: 14px;
    }

    .embedded-route-map {
        height: 180px; /* Slightly shorter on mobile to prevent excessive scrolling */
        margin: 14px 0;
    }

    .submit-btn {
        padding: 14px;
        font-size: 0.95rem;
    }

    .logo {
        font-size: 1.35rem;
    }
    
    .phone-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
}

/* Google Autocomplete custom styling */
.pac-container {
    background-color: #121216 !important;
    border: 1px solid rgba(197, 168, 128, 0.25) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    font-family: 'Outfit', sans-serif !important;
    margin-top: 4px !important;
    z-index: 99999 !important;
}

.pac-item {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 10px 14px !important;
    color: #e2e2e7 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.pac-item:hover, .pac-item-selected {
    background-color: rgba(197, 168, 128, 0.1) !important;
}

.pac-item-query {
    color: #FFFFFF !important;
    font-size: 0.95rem !important;
    padding-right: 5px !important;
}

.pac-matched {
    color: #c5a880 !important;
    font-weight: 600 !important;
}

.pac-icon {
    filter: invert(72%) sepia(17%) saturate(541%) hue-rotate(354deg) brightness(88%) contrast(87%) !important;
}

/* Hide Powered by Google Logo */
.pac-logo:after, .hdpi.pac-logo:after {
    display: none !important;
    content: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Embedded Route Map styling */
.embedded-route-map {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    margin: 18px 0;
    border: 1px solid rgba(197, 168, 128, 0.2);
    background-color: #0d0e11;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    position: relative;
}

/* Simulated Map styling when in fallback/demo mode */
.simulated-map-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: radial-gradient(circle, #1c1d22 0%, #0d0e11 100%);
    position: relative;
    color: #A0A0AB;
}

.simulated-map-fallback::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 2px;
    border-bottom: 2px dashed rgba(197, 168, 128, 0.4);
    top: 50%;
    left: 10%;
}

.simulated-map-fallback-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-gold);
    border: 2px solid white;
    top: 48%;
    box-shadow: 0 0 10px var(--primary-gold);
}

.simulated-map-fallback-marker.start {
    left: 15%;
}
.simulated-map-fallback-marker.end {
    right: 15%;
}

.simulated-map-text {
    z-index: 2;
    background: rgba(10, 10, 12, 0.85);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
    color: var(--primary-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
