/* STOCRX Platform Styles - Updated with Dropdown Menu */

:root {
    --primary: #375fe2;
    --primary-dark: #2748B8;
    --secondary: #53389E;
    --text-dark: #1A202C;
    --text-medium: #4A5568;
    --text-light: #718096;
    --background: #F7FAFC;
    --white: #FFFFFF;
    --gray-100: #EDF2F7;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E0;
    --success: #48BB78;
    --warning: #ECC94B;
    --danger: #F56565;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ANIMATED CAR NOTIFICATION
======================================== */
.car-notification {
    position: fixed;
    top: 100px;
    left: -400px;
    z-index: 9999;
    animation: driveAcross 8s ease-in-out 3s;
}

@keyframes driveAcross {
    0% {
        left: -400px;
        opacity: 1;
    }
    20% {
        left: 50%;
        transform: translateX(-50%);
        opacity: 1;
    }
    80% {
        left: 50%;
        transform: translateX(-50%);
        opacity: 1;
    }
    100% {
        left: calc(100% + 400px);
        opacity: 0;
    }
}

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

.car {
    font-size: 4rem;
    animation: bounce 0.5s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.smoke-trail {
    position: absolute;
    left: -50px;
    display: flex;
    gap: 10px;
}

.smoke {
    width: 30px;
    height: 30px;
    background: rgba(150, 150, 150, 0.5);
    border-radius: 50%;
    animation: smokeFade 1.5s infinite;
}

.smoke:nth-child(1) { animation-delay: 0s; }
.smoke:nth-child(2) { animation-delay: 0.3s; }
.smoke:nth-child(3) { animation-delay: 0.6s; }

@keyframes smokeFade {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

.notification-message {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(55, 95, 226, 0.3);
    animation: messageBounce 0.5s infinite alternate;
}

@keyframes messageBounce {
    from { transform: translateX(-50%) translateY(0); }
    to { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo h1 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
}

.logo a {
    text-decoration: none;
}

/* Desktop Navigation */
.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 2rem;
}

/* Language Selector */
.language-selector select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.language-selector select:hover {
    border-color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-toggle span {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.mobile-nav-toggle.active span {
    transform: rotate(45deg);
}

.mobile-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--gray-100);
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu a {
    display: block;
    padding: 0.75rem 2rem;
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
}

.mobile-submenu a:hover {
    color: var(--primary);
    background: var(--gray-200);
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--white);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

.hero-features {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.feature-icon {
    color: var(--success);
    font-size: 1.5rem;
    font-weight: bold;
}

/* ========================================
   FEATURED CARS SECTION
======================================== */
.featured-cars {
    padding: 80px 0;
    background: var(--white);
}

.featured-vehicles {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.view-all-btn {
    text-align: center;
}

/* ========================================
   HOW IT WORKS SECTION
======================================== */
.how-it-works {
    padding: 80px 0;
    background: var(--gray-100);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step p {
    color: var(--text-medium);
    line-height: 1.8;
}

.cta-button {
    text-align: center;
}

/* ========================================
   FOOTER
======================================== */
.main-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--text-medium);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ========================================
   NO JOBS MESSAGE
======================================== */
.no-jobs-message {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.no-jobs-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-jobs-content svg {
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-jobs-content h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.no-jobs-content p {
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.no-jobs-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.no-jobs-content a:hover {
    text-decoration: underline;
}

/* ========================================
   BOOKING PAGE STYLES
======================================== */
.booking-section {
    padding: 60px 0;
    min-height: 80vh;
}

.booking-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    gap: 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background-color: var(--primary);
    color: var(--white);
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    text-align: center;
}

.progress-line {
    width: 80px;
    height: 2px;
    background-color: var(--gray-200);
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.booking-step h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.booking-step h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    margin-top: 30px;
}

.vehicle-summary {
    margin-bottom: 30px;
}

.vehicle-card-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

.vehicle-card-summary img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.vehicle-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.vehicle-info p {
    margin: 8px 0;
    color: var(--text-medium);
}

.price-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 1.05rem;
}

.price-row .price {
    font-weight: 600;
    color: var(--primary);
}

.booking-options {
    margin-bottom: 30px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + label {
    border-color: var(--primary);
    background-color: rgba(55, 95, 226, 0.05);
}

.payment-icon {
    font-size: 2rem;
}

.card-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

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

.payment-summary {
    background-color: var(--background);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.summary-section {
    margin-bottom: 25px;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    margin-top: 0;
}

.payment-breakdown {
    background-color: var(--white);
    padding: 20px;
    border-radius: 6px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 1.05rem;
}

.breakdown-row.total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--gray-200);
    font-weight: 600;
    font-size: 1.2rem;
}

.terms-agreement {
    margin: 25px 0;
    padding: 20px;
    background-color: var(--background);
    border-radius: 6px;
}

.terms-agreement label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.terms-agreement input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
}

.terms-agreement a {
    color: var(--primary);
    text-decoration: none;
}

.terms-agreement a:hover {
    text-decoration: underline;
}

.payment-status {
    margin-top: 30px;
    text-align: center;
}

.payment-success {
    padding: 30px;
    background-color: rgba(72, 187, 120, 0.1);
    border-radius: 8px;
    color: var(--success);
}

.payment-success svg {
    color: var(--success);
    margin-bottom: 15px;
}

.payment-success h3 {
    color: var(--success);
    margin: 15px 0;
}

.payment-success p {
    color: var(--text-dark);
    margin: 10px 0;
}

.payment-success .btn {
    margin-top: 20px;
}

.payment-error {
    padding: 20px;
    background-color: rgba(245, 101, 101, 0.1);
    border-radius: 8px;
    color: var(--danger);
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-medium);
}

@media (max-width: 768px) {
    .booking-container {
        padding: 25px;
    }

    .booking-progress {
        gap: 10px;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .progress-line {
        width: 40px;
    }

    .vehicle-card-summary {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }
}

/* ========================================
   CAR CARD STYLES - TURO DESIGN
======================================== */
.car-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.car-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.car-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.05);
}

.car-details {
    padding: 20px;
}

.car-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.car-specs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.car-specs span {
    color: var(--text-medium);
}

.car-specs strong {
    color: var(--text-dark);
    font-weight: 600;
}

.car-pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 8px;
    margin-bottom: 16px;
}

.price-item {
    text-align: center;
}

.price-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-medium);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-item .value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.car-actions {
    text-align: center;
}

.car-actions .btn-primary {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-size: 1rem;
}