 @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

        * {
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: #ffffff;
            color: #201E41;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            min-height: 100vh;
        }

        .main-gradient {
            background: linear-gradient(135deg, #201E41 0%, #201E41 100%);
        }

        .mobile-container {
            max-width: 100%;
            background: white;
        }

        @media (min-width: 768px) {
            .mobile-container {
                max-width: 100%;
                background: white;
            }
        }

        /* Unified container for all steps */
        .step {
            max-width: 720px;
            margin: 0 auto;
            padding: 24px 20px;
        }

        @media (max-width: 767px) {
            .step#step1 {
                padding: 24px 0;
            }

            /* Keep intro text with padding */
            .step#step1 .mb-10 {
                padding: 0 20px;
            }

            .step#step1 h2 {
                padding: 0 20px;
            }

            .step#step1 .text-center.mb-6 {
                padding: 0 20px;
            }
        }

        @media (min-width: 768px) {
            .step {
                padding: 40px 20px;
            }
        }

        /* Navigation buttons container */
        .navigation-container {
            max-width: 720px;
            margin: 0 auto;
            padding: 0 20px 24px;
            display: flex;
            justify-content: space-between;
        }

        /* Splide Carousel */
        .carousel-section {
            padding: 40px 0 50px;
            overflow-x: hidden;
            overflow-y: visible;
            min-height: auto;
            width: 100%;
        }

        @media (max-width: 640px) {
            .carousel-section {
                padding: 30px 0 45px;
            }
        }

        .splide {
            width: 100%;
        }

        .splide__track {
            padding: 20px 0 30px;
            overflow: visible;
            clip-path: inset(-50px 0);
        }

        .splide__list {
            align-items: center;
        }

        .splide__slide {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .carousel-card {
            width: 280px;
            height: 350px;
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            position: relative;
            cursor: pointer;
            background: #f0f0f0;
        }

        .splide__slide.is-active .carousel-card {
            transform: scale(1.05) translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        }

        .splide__slide:not(.is-active) .carousel-card {
            transform: scale(0.9);
            opacity: 0.5;
            filter: grayscale(0.5);
        }

        .carousel-card.past {
            opacity: 0.3 !important;
            filter: grayscale(1) !important;
        }

        .carousel-card.past.is-active {
            opacity: 0.4 !important;
        }

        @media (max-width: 767px) {
            .carousel-card {
                width: 240px;
                height: 300px;
            }

            .splide__slide {
                padding: 0 8px;
            }
        }

        .carousel-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: white;
            border: 2px solid #e5e5e5;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .carousel-btn:hover {
            background: #201E41;
            border-color: #201E41;
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .carousel-btn:hover svg {
            color: white;
        }

        .carousel-btn:active {
            transform: scale(0.95);
        }

        .splide__pagination {
            position: static !important;
            margin-top: 20px;
            display: flex;
            justify-content: center;
            gap: 8px;
        }

        .splide__pagination__page {
            width: 8px;
            height: 8px;
            background: #d4d4d4;
            opacity: 1;
            border: none;
            margin: 0;
        }

        .splide__pagination__page.is-active {
            background: #201E41;
            width: 32px;
            border-radius: 4px;
        }

        .selected-indicator {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 15;
        }

        .carousel-container:not(.dragging) .selected-indicator {
            opacity: 1;
        }

        .step-navigation {
            background: white;
            padding: 8px 20px;
            position: sticky;
            top: 72px;
            z-index: 25;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            border-bottom: 1px solid #e5e7eb;
        }

        @media (min-width: 768px) {
            .step-navigation {
                padding: 10px 20px;
            }
        }

        .step-progress-container {
            max-width: 720px;
            margin: 0 auto;
            position: relative;
            padding: 0 1rem;
        }

        .step-progress-bar {
            display: none;
        }

        .step-progress-fill {
            display: none;
        }

        .steps-wrapper {
            display: flex;
            justify-content: space-between;
            position: relative;
            z-index: 2;
        }

        .step-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            flex: 0;
            position: relative;
        }

        @media (min-width: 768px) {
            .step-item {
                flex-direction: row;
                gap: 8px;
            }

            .step-item:nth-child(1) {
                justify-content: flex-start;
            }

            .step-item:nth-child(2) {
                justify-content: center;
            }

            .step-item:nth-child(3) {
                justify-content: flex-end;
            }
        }

        .step-dot {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: white;
            border: 2px solid #e5e7eb;
            transition: all 0.3s ease;
            position: relative;
            z-index: 3;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            color: #9ca3af;
        }

        .step-dot::before {
            content: attr(data-step);
            transition: all 0.3s ease;
        }

        .step-item.active .step-dot {
            border-color: #EE9E24;
            background: #EE9E24;
            transform: scale(1.1);
            box-shadow: 0 2px 8px rgba(238, 158, 36, 0.3);
            color: white;
        }

        .step-item.active .step-dot::before {
            content: attr(data-step);
        }

        .step-item.active .step-dot::after {
            display: none;
        }

        .step-item.completed .step-dot {
            border-color: #10b981;
            background: #10b981;
            color: white;
        }

        .step-item.completed .step-dot::before {
            content: '✓';
            font-size: 14px;
        }

        .step-item.completed .step-dot::after {
            display: none;
        }

        .step-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 2px;
        }

        @media (min-width: 768px) {
            .step-content {
                align-items: flex-start;
                text-align: left;
                gap: 0;
            }
        }

        .step-number {
            font-size: 10px;
            text-transform: uppercase;
            color: #9ca3af;
            font-weight: 700;
            letter-spacing: 0.8px;
            transition: all 0.3s ease;
        }

        @media (min-width: 768px) {
            .step-number {
                font-size: 11px;
            }
        }

        .step-item.active .step-number {
            color: #EE9E24;
            transform: scale(1.05);
        }

        .step-item.completed .step-number {
            color: #10b981;
        }

        .step-label {
            font-size: 12px;
            color: #6b7280;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        @media (min-width: 768px) {
            .step-label {
                font-size: 13px;
            }
        }

        .step-item.active .step-label {
            color: #201E41;
            font-weight: 700;
            transform: scale(1.02);
        }

        .step-item.completed .step-label {
            color: #201E41;
            font-weight: 600;
        }

        @media (max-width: 480px) {
            .step-navigation {
                padding: 12px 16px;
            }

            .step-label {
                font-size: 12px;
            }

            .step-number {
                display: none;
            }

            .step-dot {
                width: 24px;
                height: 24px;
            }
        }

        .travel-card {
            position: relative;
            height: 100%;
            background-size: cover;
            background-position: center;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 20px;
        }

        .travel-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.9) 100%);
        }

        .travel-info {
            position: relative;
            z-index: 1;
        }

        .person-card {
            background: #f8f9fa;
            border: 1px solid #e2e8f0;
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .bottom-sheet {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-radius: 24px 24px 0 0;
            padding: 20px;
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 40;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        }

        @media (min-width: 768px) {
            .bottom-sheet {
                left: 50%;
                transform: translateX(-50%) translateY(100%);
                max-width: 428px;
            }

            .bottom-sheet.show {
                transform: translateX(-50%) translateY(0);
            }
        }

        .bottom-sheet.show {
            transform: translateY(0);
        }

        .sheet-handle {
            width: 48px;
            height: 4px;
            background: #333;
            border-radius: 2px;
            margin: 0 auto 20px;
        }

        .loader {
            border: 2px solid #333;
            border-radius: 50%;
            border-top: 2px solid #10b981;
            width: 32px;
            height: 32px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .past-badge {
            background: rgba(239, 68, 68, 0.9);
            backdrop-filter: blur(10px);
        }

        .btn-primary {
            background: #201E41;
            color: white;
            transition: all 0.3s ease;
            font-weight: 600;
            border: none;
            -webkit-appearance: none;
            appearance: none;
        }

        .btn-primary:hover {
            background: #EE9E24;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(238, 158, 36, 0.3);
        }

        .btn-primary:active:not(:disabled) {
            transform: scale(0.95);
        }

        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Traveler Card Styles */
        .traveler-card {
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s ease;
            opacity: 0;
            transform: translateY(20px);
        }

        .traveler-card.show {
            opacity: 1;
            transform: translateY(0);
        }

        .traveler-card:hover {
            border-color: #EE9E24;
            box-shadow: 0 4px 12px rgba(238, 158, 36, 0.15);
        }

        .traveler-card.removing {
            animation: slideOut 0.3s ease forwards;
        }

        @keyframes slideOut {
            to {
                opacity: 0;
                transform: translateX(-100%);
                height: 0;
                padding: 0;
                margin: 0;
            }
        }

        .traveler-header {
            background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #e5e7eb;
        }

        .traveler-header.primary-contact {
            background: linear-gradient(135deg, #FEF3E2 0%, #FFF7ED 100%);
            border-bottom: 1px solid #FED7AA;
        }

        .traveler-number {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #374151;
            font-weight: 600;
        }

        .traveler-number svg {
            color: #EE9E24;
        }

        .contact-badge {
            margin-left: 8px;
            padding: 2px 8px;
            background: #EE9E24;
            color: white;
            font-size: 11px;
            font-weight: 600;
            border-radius: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .remove-btn {
            background: transparent;
            border: none;
            color: #9ca3af;
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .remove-btn:hover {
            color: #ef4444;
            background: #fee2e2;
        }

        .traveler-fields {
            padding: 20px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        @media (max-width: 640px) {
            .traveler-fields {
                grid-template-columns: 1fr;
            }
        }

        .field-group {
            position: relative;
        }

        .field-group.full-width {
            grid-column: 1 / -1;
        }

        .field-label {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 14px;
            font-weight: 500;
            color: #374151;
            margin-bottom: 6px;
        }

        .required {
            color: #ef4444;
            font-size: 14px;
        }

        .input-wrapper {
            position: relative;
        }

        .field-input {
            width: 100%;
            padding: 10px 14px;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 15px;
            transition: all 0.2s;
            background: white;
        }

        .field-input:focus {
            outline: none;
            border-color: #EE9E24;
            box-shadow: 0 0 0 3px rgba(238, 158, 36, 0.1);
        }

        .field-input.error {
            border-color: #ef4444;
            background: #fef2f2;
        }

        .field-input.error:focus {
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }

        .field-input::placeholder {
            color: #9ca3af;
        }

        .error-message {
            display: block;
            margin-top: 4px;
            color: #ef4444;
            font-size: 12px;
            font-weight: 500;
            min-height: 16px;
        }

        .error-message.hidden {
            display: none;
        }

        .field-help {
            margin-top: 6px;
            font-size: 12px;
            color: #6b7280;
            display: block;
        }

        .action-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            padding: 20px;
        }

        .action-btn {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: white;
            border: 2px solid #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        }

        .action-btn:active {
            transform: scale(0.9);
        }

        .action-btn.reject {
            border-color: #ef4444;
        }

        .action-btn.reject:hover {
            background: rgba(239, 68, 68, 0.1);
        }

        .action-btn.like {
            border-color: #10b981;
        }

        .action-btn.like:hover {
            background: rgba(16, 185, 129, 0.1);
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 50;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            animation: fadeIn 0.3s ease;
        }

        .modal.show {
            display: flex;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: white;
            color: #201E41;
            animation: slideUp 0.3s ease;
            border: none;
        }

        @keyframes slideUp {
            from {
                transform: translateY(100px) scale(0.9);
                opacity: 0;
            }
            to {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        input, select, textarea {
            background: white;
            border: 1px solid #e2e8f0;
            color: #201E41;
        }

        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: #EE9E24;
            box-shadow: 0 0 0 3px rgba(238, 158, 36, 0.1);
        }

        .compatible-list {
            max-height: 300px;
            overflow-y: auto;
        }
        
        .compatible-list::-webkit-scrollbar {
            width: 6px;
        }
        
        .compatible-list::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 3px;
        }
        
        .compatible-list::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 3px;
        }
        
        .selected-trip-badge {
            background: #f8f8f8;
            border: 1px solid #e5e5e5;
        }

        .header-bar {
            position: sticky;
            top: 0;
            background: #201E41;
            z-index: 30;
            padding: 12px 20px;
            color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .header-logo {
            width: 48px;
            height: 48px;
            background: white;
            border-radius: 10px;
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .floating-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            border-radius: 30px;
            background: #201E41;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            z-index: 20;
            transition: all 0.3s;
        }

        .floating-btn:hover {
            background: #EE9E24;
            transform: scale(1.05);
        }

        @media (min-width: 768px) {
            .floating-btn {
                right: 40px;
            }
        }

        .floating-btn:active {
            transform: scale(0.9);
        }

        /* Constrain carousel width on desktop */
        .carousel-wrapper {
            overflow-x: hidden;
            overflow-y: visible;
        }

        @media (min-width: 768px) {
            .carousel-wrapper {
                max-width: 100%;
                margin: 0 auto;
                overflow-x: hidden;
                overflow-y: visible;
            }
        }

        /* Ensure carousel section respects container width */
        .carousel-section {
            margin: 0;
        }

        @media (max-width: 767px) {
            .carousel-wrapper {
                margin: 0;
                width: 100%;
            }
        }

        @media (min-width: 768px) {
            .carousel-section {
                margin: 0;
            }
        }