/* style2.css - Travel Planner Dashboard Styles */
:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --accent: #40D3DC;
    --success: #4cc9f0;
    --dark: #2b2d42;
    --light: #f8f9fa;
    --gray: #6c757d;
    --shadow: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    color: var(--dark);
    line-height: 1.6;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30,30,30,0.9);
    color: #fff;
    height: 60px;
    padding: 0 30px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.topbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
}

.topbar a:hover {
    text-decoration: none;
    color: #bebdbc;
    text-shadow: 0 0 10px #ffcc00;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.8);
    animation: fadeInUp 1.2s ease;
}

.hero-overlay h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-overlay p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-scroll {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.3);
}

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

/* Carousel Controls */
.slides {
    width: 500%;
    display: flex;
    height: 100%;
}

.slides input {
    display: none;
}

.slide {
    width: 20%;
    transition: 0.6s;
}

#radio1:checked ~ .first { margin-left: 0; }
#radio2:checked ~ .first { margin-left: -20%; }
#radio3:checked ~ .first { margin-left: -40%; }
#radio4:checked ~ .first { margin-left: -60%; }
#radio5:checked ~ .first { margin-left: -80%; }

.navigation-manual {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.manual-btn {
    border: 2px solid white;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.manual-btn:hover {
    background: white;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 3rem;
    max-width: 500px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e9ecef;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
    border: 3px solid white;
    transition: var(--transition);
    font-size: 1rem;
}

.step-item.active .step-circle {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.step-text {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
    text-align: center;
}

.step-item.active .step-text {
    color: var(--primary);
    font-weight: 600;
}

/* Preferences Section */
.preferences {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    position: relative;
    z-index: 2;
}

.preferences h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.preferences .card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.preferences .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Form Steps */
.step {
    display: none;
    animation: slideInUp 0.5s ease;
}

.step.active {
    display: block;
}

.step-question {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
    font-weight: 500;
    justify-content: center;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + .radio-label {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1rem;
}

.input-hint {
    color: var(--gray);
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Date Sections */
.date-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.date-input-group {
    text-align: left;
}

.duration-section {
    margin: 1.5rem 0;
    text-align: left;
}

.date-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.date-input-group small {
    color: #888;
    font-weight: normal;
}

/* Form Elements */
input[type="date"],
input[type="number"],
select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    font-family: inherit;
}

input[type="date"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
    transform: translateY(-1px);
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: space-between;
}

.next-btn, .back-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
    font-family: inherit;
}

.next-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    margin-left: auto;
}

.next-btn:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.back-btn {
    background: #6c757d;
    color: white;
}

.back-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(64, 211, 220, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: #fff;
    margin: 8% auto;
    padding: 2rem;
    border-radius: var(--radius);
    width: 60%;
    max-width: 600px;
    animation: slideDown 0.5s ease;
    position: relative;
    box-shadow: var(--shadow);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--dark);
}

/* Footer */
.footer {
    background: #222;
    color: #ddd;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer a {
    color: var(--accent);
    margin: 0 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    text-decoration: underline;
    color: #2bb8c1;
}

/* Loading Overlay */
#loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255,255,255,0.3);
    border-top: 6px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateY(-50%);
    }
}

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

@keyframes slideDown {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-overlay h1 {
        font-size: 2.2rem;
    }
    
    .hero-overlay p {
        font-size: 1rem;
    }
    
    .preferences h2 {
        font-size: 2rem;
    }
    
    .preferences .card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .step-indicator {
        margin-bottom: 2rem;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-text {
        font-size: 0.75rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .next-btn, .back-btn {
        width: 100%;
        min-width: auto;
    }
    
    .modal-content {
        width: 85%;
        padding: 1.5rem;
    }
    
    .radio-label {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 0 1rem;
        font-size: 16px;
    }
    
    .hero-overlay h1 {
        font-size: 1.8rem;
    }
    
    .preferences {
        padding: 2rem 1rem;
    }
    
    .preferences .card {
        padding: 1rem;
    }
    
    .step-question {
        font-size: 1.1rem;
    }
}

/* 车辆选择样式 */
.car-selection {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.car-details {
    margin-top: 15px;
    animation: fadeIn 0.3s ease-in;
}

.car-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.car-card img {
    border-radius: 6px;
    object-fit: cover;
}

.car-info h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.car-info p {
    margin: 5px 0;
    font-size: 14px;
}

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

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

.radio-label {
    display: block;
    padding: 10px 15px;
    margin: 5px 0;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover {
    background: #e9ecef;
}

input[type="radio"]:checked + .radio-label {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.car-rental-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #007bff;
}