/* Uber-Inspired Premium Modern Design */

/* CSS Variables */
:root {
    --black: #000000;
    --white: #ffffff;
    --off-white: #f6f6f6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --primary: #000000;
    --accent: #276EF1;
    /* Uber blue-ish accent for focus/links */
    --green: #05a357;
    /* Success/Safe green */
    --green-light: #e6f7ef;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Soft diffuse shadow */
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-family: 'Uber Move Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background: var(--white);
    color: var(--black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-size: 16px;
}

/* App Container */
.app-container {
    max-width: 480px;
    /* Mobile-first container */
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for desktop view */
}

/* Header */
/* Header */
.app-header {
    background: var(--primary);
    padding: 24px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    color: var(--white);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--white);
    font-style: italic;
    position: relative;
    padding-right: 8px;
}

.brand-logo::after {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 0;
    width: 6px;
    height: 6px;
    background-color: var(--green);
    /* Brand accent */
    border-radius: 50%;
}

.header-logo {
    height: 40px;
    /* Slightly larger for better visibility */
    width: auto;
    object-fit: contain;
    /* Removed filter to show original logo colors/transparency */
}

.menu-section {
    display: flex;
    align-items: center;
}

.hamburger-menu {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Main Content */
.main-content {
    padding: 0 0 80px 0;
}

/* Hero Section */
.hero-section {
    padding: 48px 32px 64px;
    background: var(--white);
}

.hero-content {
    margin-bottom: 48px;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: var(--black);
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--gray-600);
}

/* Form Styles - Uber Style */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
}

.input-group {
    position: relative;
}

.input-field {
    position: relative;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    display: flex;
    align-items: center;
}

.input-field:focus-within {
    background: var(--white);
    box-shadow: 0 0 0 2px var(--black);
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--black);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specific icons using simple geometry or specific characters can mimic Uber's square/circle indicators */
.input-group:nth-child(3) .input-icon i::before {
    content: "\f12f";
    /* Circle for pickup */
    font-size: 12px;
}

.input-group:nth-child(4) .input-icon i::before {
    content: "\f5a0";
    /* Square for dropoff (custom mapped or fallback) */
    font-size: 12px;
}

.form-input {
    width: 100%;
    height: 56px;
    padding: 0 16px 0 48px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-family);
    color: var(--black);
    outline: none;
}

.form-input::placeholder {
    color: var(--gray-500);
    font-weight: 400;
}

/* Book Button */
.book-btn {
    width: 100%;
    height: 56px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: transform 0.1s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-btn:hover {
    background: var(--gray-900);
}

.book-btn:active {
    transform: scale(0.98);
}

.btn-loader {
    display: none;
}

.book-btn.loading .btn-text {
    display: none;
}

.book-btn.loading .btn-loader {
    display: block;
}

.loader-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Features Section - Horizontal Scroll or Grid */
.features-section {
    padding: 48px 32px;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-item {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: 0.2s;
}

.feature-item:hover {
    transform: translateY(-2px);
    background: var(--gray-100);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

/* FAQ Section */
.faq-section {
    padding: 64px 32px;
    background: var(--white);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.5;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 24px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 16px;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    line-height: 1.4;
    margin: 0;
}

.faq-toggle {
    color: var(--black);
    font-size: 20px;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    /* Use rotate for plus icon to become cross */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 12px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Footer */
.app-footer {
    background: var(--black);
    color: var(--white);
    padding: 64px 32px 40px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: 32px;
}

.footer-links h4,
.footer-service h4,
.footer-team h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.footer-links ul,
.footer-service ul,
.footer-team ul {
    list-style: none;
    margin-bottom: 32px;
}

.footer-links li,
.footer-service li,
.footer-team li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-service li,
.footer-team a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.2s;
}

.footer-links a:hover,
.footer-team a:hover {
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
}

/* About Screen Overlay */
.about-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow-y: auto;
    padding: 24px;
}

.about-section.open {
    transform: translateY(0);
}

.about-header {
    margin-bottom: 32px;
    position: relative;
    padding-top: 40px;
}

.about-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black);
    line-height: 1.2;
}

.about-header p {
    font-size: 16px;
    color: var(--gray-600);
}

.about-content p {
    color: var(--gray-600);
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.6;
}

.about-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin: 32px 0 16px;
}

.about-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.about-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--gray-600);
    line-height: 1.5;
}

.about-content li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--black);
    border-radius: 50%;
}

.about-content strong {
    color: var(--black);
    font-weight: 600;
}

.about-content a {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
}

/* Fix visibility for feature list in about section */
.about-content .feature span {
    color: var(--gray-600);
    font-size: 15px;
}

.about-content .feature i {
    color: var(--black);
    /* Or var(--green) if preferred */
}

/* Fix visibility for contact details in about section */
.about-content .contact-item span {
    color: var(--gray-600);
    font-size: 15px;
}

.about-content .contact-item i {
    color: var(--black);
}

.about-content .contact-item strong {
    color: var(--black);
}

/* Close button for about section (hidden by default, can be added via JS or reusing hamburguer logic) */

/* Responsive specific overrides */
@media (min-width: 481px) {
    .hero-title {
        font-size: 44px;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .app-container {
        border-left: 1px solid var(--gray-100);
        border-right: 1px solid var(--gray-100);
    }
}