/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c5aa0;
    font-size: 24px;
    font-weight: 700;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.finder-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.finder-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.header-phone {
    display: flex;
    align-items: center;
}

.header-phone .phone-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c5aa0;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #2c5aa0;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.header-phone .phone-link:hover {
    background: #2c5aa0;
    color: white;
}

.header-phone .phone-link i {
    margin-right: 8px;
}

/* Navigation */
.navigation {
    background: #2c5aa0;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-menu li a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.current {
    background: rgba(255,255,255,0.2);
}

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

.booking-container {
    display: block;
    width: 100%;
    margin-bottom: 60px;
}

/* Booking Form Section */
.booking-form-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Booking Form Grid Layout */
.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.booking-form-left,
.booking-form-middle,
.booking-form-right {
    min-height: 100%;
}

.booking-form-middle .clean-map-section {
    margin: 0;
}

.booking-form-middle .price-breakdown-section {
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .booking-form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .booking-form-middle {
        grid-column: 1 / -1;
        order: 3;
    }
}

@media (max-width: 768px) {
    .booking-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .booking-form-middle {
        order: 2;
    }
}

/* Service Type Selector */
.service-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.service-btn {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 30px;
}

.service-btn.active,
.service-btn:hover {
    background: #F3BC17;
    border-color: #F3BC17;
    color: white;
}

/* Vehicle Selection */
.vehicle-selection {
    margin-bottom: 30px;
}

.vehicle-selection h3,
.booking-form-left h3 {
    color: #7eb4e0;
    font-size: 18px;
    margin-bottom: 20px;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
}

.vehicle-option {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vehicle-option:hover,
.vehicle-option.selected {
    border-color: #F3BC17;
    background: #fff8e1;
}

.vehicle-option img {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 3px;
}

.vehicle-info h4 {
    font-size: 10px;
    font-weight: 600;
    color: #333;
    margin-bottom: 1px;
}

.vehicle-info p {
    font-size: 8px;
    color: #666;
}

/* Booking Form */
.booking-form {
    margin-top: 30px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #333;
    font-size: 11px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 11px;
    transition: border-color 0.3s ease;
    min-height: 30px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7eb4e0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #7eb4e0;
}

.submit-btn {
    width: 100%;
    padding: 8px 10px;
    background: #F3BC17;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 35px;
}

.submit-btn:hover {
    background: #e6a914;
    transform: translateY(-2px);
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


/* Clean Map Section */
.clean-map-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

#cleanMap {
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 500px;
}

/* Hide Google Maps copyright and controls */
#cleanMap .gm-style-cc,
#cleanMap .gm-style .gm-style-cc {
    display: none !important;
}

#cleanMap .gmnoprint {
    display: none !important;
}

#cleanMap a[href*="maps.google.com"],
#cleanMap a[href*="google.com/maps"] {
    display: none !important;
}

/* Ensure map tiles are visible */
#cleanMap .gm-style > div {
    background: transparent !important;
}

#cleanMap img {
    max-width: none !important;
}

#cleanMap * {
    box-sizing: content-box !important;
}

/* Reviews Section */
.reviews-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.reviews-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.review {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.review:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-name {
    font-weight: 600;
    color: #333;
}

.review-rating {
    color: #F3BC17;
}

.review-text {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Service Description */
.service-description {
    background: white;
    padding: 50px 0;
    margin-top: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.description-content {
    text-align: center;
}

.description-content h2 {
    color: #2c5aa0;
    font-size: 32px;
    margin-bottom: 20px;
}

.description-content > p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature i {
    font-size: 40px;
    color: #F3BC17;
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.feature p {
    color: #666;
    font-size: 14px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .booking-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .booking-form-section,
    .reviews-section {
        padding: 20px;
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .service-type-selector {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Zwischenstopps Section */
.zwischenstopps-section {
    margin: 25px 0;
    padding: 0;
    background: transparent;
    border: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h4 {
    margin: 0;
    color: #2c5aa0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h4::before {
    content: '\f279';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #F3BC17;
}

.add-stop-btn {
    background: linear-gradient(135deg, #F3BC17 0%, #e6a914 100%);
    color: #2c5aa0;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 9px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(243, 188, 23, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-height: 25px;
}

.add-stop-btn:hover {
    background: linear-gradient(135deg, #e6a914 0%, #d49a12 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 188, 23, 0.4);
}

.add-stop-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.zwischenstopps-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.zwischenstopp-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 1px solid #e3f2fd;
    box-shadow: 0 2px 12px rgba(44, 90, 160, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.zwischenstopp-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #2c5aa0 0%, #F3BC17 100%);
}

.zwischenstopp-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(44, 90, 160, 0.15);
    border-color: #2c5aa0;
}

.zwischenstopp-label {
    font-weight: 600;
    color: #2c5aa0;
    font-size: 14px;
    min-width: 60px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.zwischenstopp-label::before {
    content: '\f3c5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #F3BC17;
    font-size: 12px;
}

.zwischenstopp-item input {
    flex: 1;
    margin: 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.zwischenstopp-item input:focus {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
    outline: none;
}

.remove-stop-btn {
    background: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 8px 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

.remove-stop-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* Modern Time Picker */
.modern-time-picker {
    position: relative;
    width: 100%;
}

.time-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #333;
}

.time-display:hover {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
    transform: translateY(-1px);
}

.time-display.active {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.time-display i.fa-clock {
    color: #2c5aa0;
    margin-right: 10px;
}

.time-display i.fa-chevron-down {
    color: #2c5aa0;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.time-display.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.time-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #2c5aa0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.time-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.time-section {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.time-section:last-child {
    border-bottom: none;
}

.time-label {
    font-size: 12px;
    font-weight: 600;
    color: #2c5aa0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.time-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.time-option {
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
}

.time-option:hover {
    border-color: #2c5aa0;
    background: #f8f9fa;
}

.time-option.selected {
    background: #2c5aa0;
    border-color: #2c5aa0;
    color: white;
}

@media (max-width: 768px) {
    .time-display {
        padding: 12px;
        font-size: 16px;
    }
    
    .time-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .time-option {
        padding: 10px 8px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .time-dropdown {
        max-height: 250px;
    }
    
    .time-section {
        padding: 12px;
    }
    
    .time-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Custom Date and Time Inputs */
.custom-date-input {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-date-input i {
    position: absolute;
    left: 15px;
    color: #2c5aa0;
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

.custom-date-input input[type="date"] {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    color: #333;
    font-family: inherit;
}

.custom-date-input input[type="date"]:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
    transform: translateY(-1px);
}

.custom-date-input input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 15px;
    color: #2c5aa0;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.custom-select {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-select i.fas.fa-clock {
    position: absolute;
    left: 15px;
    color: #2c5aa0;
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

.custom-select .select-arrow {
    position: absolute;
    right: 15px;
    color: #2c5aa0;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.custom-select select {
    width: 100%;
    padding: 15px 45px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    color: #333;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.custom-select select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
    transform: translateY(-1px);
}

.custom-select select option {
    padding: 10px;
    font-size: 16px;
    background: white;
    color: #333;
}

.custom-select select option:hover {
    background: #f8f9fa;
}

/* Mobile optimizations for date/time inputs */
@media (max-width: 768px) {
    .custom-date-input input[type="date"],
    .custom-select select {
        padding: 12px 40px 12px 40px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .custom-date-input i,
    .custom-select i.fas.fa-clock {
        left: 12px;
        font-size: 14px;
    }
    
    .custom-select .select-arrow {
        right: 12px;
        font-size: 12px;
    }
    
    .custom-date-input input[type="date"]::-webkit-calendar-picker-indicator {
        right: 12px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        margin-bottom: 15px;
    }
    
    .custom-date-input input[type="date"],
    .custom-select select {
        padding: 14px 38px 14px 38px;
        border-radius: 10px;
    }
}

/* Tragehelfer Section */
.tragehelfer-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.tragehelfer-section h4 {
    margin: 0 0 10px 0;
    color: #2c5aa0;
    font-size: 18px;
}

/* Duration Section */
.duration-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.duration-section h4 {
    margin: 0 0 10px 0;
    color: #2c5aa0;
    font-size: 18px;
}

.section-description {
    margin: 0 0 20px 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

/* Info text with links */
.info-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 10px;
    text-align: center;
}

.info-link {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: #1e3f73;
    text-decoration: underline;
}

.tragehelfer-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.helper-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 5px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    min-height: 40px;
}

.helper-option:hover {
    border-color: #2c5aa0;
    box-shadow: 0 1px 4px rgba(44, 90, 160, 0.1);
}

.helper-option.selected {
    border-color: #2c5aa0;
    background: #e3f2fd;
    box-shadow: 0 1px 4px rgba(44, 90, 160, 0.2);
}

.helper-icon {
    font-size: 10px;
    color: #2c5aa0;
    margin-bottom: 3px;
}

.helper-option span {
    font-weight: 500;
    color: #333;
    margin-bottom: 1px;
    font-size: 11px;
}

.helper-price {
    font-size: 9px;
    color: #F3BC17;
    font-weight: 600;
}

.helper-option.selected .helper-price {
    color: #2c5aa0;
}

/* Price Breakdown / Kassenbon Section */
.price-breakdown-section {
    margin: 30px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(44, 90, 160, 0.1);
    overflow: hidden;
    border: 1px solid #e3f2fd;
}


/* Remove sticky-related padding */
.booking-form-section {
    padding-top: 5px;
}

.receipt-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    padding: 20px 25px;
    text-align: center;
}

.receipt-header.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.receipt-header.clickable:hover {
    background: linear-gradient(135deg, #34649d 0%, #1e3f73 100%);
}

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

.receipt-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.receipt-total-preview {
    font-size: 24px;
    font-weight: 700;
    color: #FFD700;
}

.toggle-icon {
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.toggle-icon i {
    font-size: 16px;
}

.receipt-content.collapsed {
    display: none;
}

.receipt-content.expanded {
    display: block;
}

.receipt-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.receipt-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* Collapsed state - arrows left/right */
.receipt-subtitle.collapsed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Expanded state - arrows left/right with different text */
.receipt-subtitle.expanded {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Double arrows next to 'Klicken für Details' - only in collapsed state */
.receipt-subtitle.collapsed .arrow-left,
.receipt-subtitle.collapsed .arrow-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.receipt-subtitle.collapsed .arrow-left i,
.receipt-subtitle.collapsed .arrow-right i {
    font-size: 8px;
    line-height: 1;
    margin: -2px 0;
}

/* Upward arrows for expanded state */
.receipt-subtitle.expanded .arrow-up-left,
.receipt-subtitle.expanded .arrow-up-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.receipt-subtitle.expanded .arrow-up-left i,
.receipt-subtitle.expanded .arrow-up-right i {
    font-size: 8px;
    line-height: 1;
    margin: -2px 0;
}

.receipt-content {
    padding: 25px;
    transition: all 0.15s ease;
}

.duration-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.duration-controls {
    width: 100%;
    margin-top: 10px;
}


.item-travel-time {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    margin-top: 2px;
}

.duration-slider {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.duration-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c5aa0 0%, #4a7bc8 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.4);
    border: 3px solid white;
    transition: all 0.3s ease;
    position: relative;
}

.duration-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(44, 90, 160, 0.5);
    background: linear-gradient(135deg, #3d6bb1 0%, #5b8cd9 100%);
}

.duration-slider::-webkit-slider-thumb:active {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.6);
}

.duration-slider::-moz-range-thumb {
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c5aa0 0%, #4a7bc8 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.4);
    transition: all 0.3s ease;
}

.duration-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(44, 90, 160, 0.5);
    background: linear-gradient(135deg, #3d6bb1 0%, #5b8cd9 100%);
}

.duration-slider::-moz-range-thumb:active {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.6);
}



.duration-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
}

.duration-display {
    text-align: center;
    font-weight: bold;
    color: #2c5aa0;
    font-size: 1.1em;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.receipt-item:hover {
    background-color: rgba(44, 90, 160, 0.02);
    border-radius: 6px;
    margin: 0 -10px;
    padding: 12px 10px;
}

.receipt-item:last-child {
    border-bottom: none;
}

.item-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.item-label > span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
}

.item-label i {
    color: #2c5aa0;
    width: 16px;
    text-align: center;
}

.item-details {
    font-size: 12px;
    color: #6c757d;
    margin-left: 24px;
}

.item-value {
    font-weight: 600;
    color: #2c5aa0;
    text-align: right;
    min-width: 80px;
}

.receipt-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #2c5aa0 50%, transparent 100%);
    margin: 20px 0;
    position: relative;
}

.receipt-divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: #f0f0f0;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin: 0 -10px;
    padding: 15px 20px;
}

.total-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #2c5aa0;
}

.total-label i {
    color: #F3BC17;
}

.total-value {
    font-size: 20px;
    font-weight: 700;
    color: #2c5aa0;
    background: linear-gradient(135deg, #F3BC17 0%, #e6a914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.receipt-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    font-size: 12px;
    color: #856404;
    line-height: 1.4;
}

.receipt-note i {
    color: #f39c12;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Loading Vehicles */
.loading-vehicles {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #6c757d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* Vehicle Pricing Display */
.vehicle-pricing {
    margin-top: 10px;
    padding: 8px 0;
    border-top: 1px solid #e9ecef;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 13px;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-row span:first-child {
    color: #6c757d;
    font-weight: 500;
}

.price-row .price {
    color: #2c5aa0;
    font-weight: 600;
}

/* Success and Error Messages */
.success-message, .error-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: 500;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Layout Restructuring */
@media (max-width: 768px) {
    /* Mobile-first structure: price-breakdown on top */
    .booking-container {
        display: flex;
        flex-direction: column;
    }
    
    /* Price breakdown mobile adjustments */
    .price-breakdown-section {
        order: -1; /* Ensure it's always first */
        margin: 0 0 15px 0;
    }
    
    /* Remove mobile padding */
    .booking-form-section {
        padding-top: 0;
    }
    
    /* Booking form grid becomes vertical stack */
    .booking-form-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    /* Mobile order: services -> addresses -> personal data -> map */
    .booking-form-left {
        order: 1;
    }
    
    .booking-form-middle {
        order: 2;
    }
    
    .booking-form-right {
        order: 3;
    }
    
    /* Map goes to the bottom on mobile */
    #cleanMap {
        order: 4;
        height: 300px !important; /* Smaller map on mobile */
        margin: 20px 0 !important;
    }
    
    /* Ensure proper spacing on mobile */
    .service-type-selector,
    .vehicle-selection,
    .tragehelfer-section {
        margin-bottom: 20px;
    }
    
    /* Improve mobile form field heights */
    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 48px; /* Better touch targets */
        font-size: 16px; /* Prevent zoom */
    }
}
