:root {
    --primary-color: #1a1a1a;
    --secondary-color: #4785D7;
    --secondary-color-light: rgba(71, 133, 215, 0.1);
    --success-color: #34C759;
    --success-color-light: rgba(52, 199, 89, 0.1);
    --error-color: #FF3B30;
    --error-color-light: rgba(255, 59, 48, 0.1);
    --background-color: #F5F5F7;
    --border-color: #E5E5EA;
    --grid-line-color: #F0F0F0;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 28px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--primary-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

.booking-widget {
    max-width: 1200px;
    margin: 24px auto;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.booking-header {
    text-align: left;
    margin-bottom: 24px;
}

.booking-header h2 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.booking-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
    padding: 0;
    background: none;
}

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

.form-group {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

select {
    width: 100%;
    padding: 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: var(--font-size-base);
    background-color: white;
    color: var(--text-primary);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234785D7%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
    transition: all 0.2s ease;
}

select:hover {
    border-color: var(--secondary-color);
}

select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px var(--secondary-color-light);
}

/* Large Group Notice */
.large-group-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    margin-top: 12px;
    padding: 0;
    transition: all 0.2s ease;
}

.notice-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
}

.notice-icon {
    color: #856404;
    flex-shrink: 0;
    margin-top: 2px;
}

.large-group-notice span {
    color: #333;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    font-weight: 500;
}

.large-group-notice strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.air-datepicker-input {
    width: 100%;
    padding: 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: var(--font-size-base);
    background-color: white;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
}

.air-datepicker-input:hover {
    border-color: var(--secondary-color);
}

.air-datepicker-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px var(--secondary-color-light);
}

/* Table Schedule Section */
.table-schedule {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.table-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.table-schedule-header h3 {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
    text-transform: none;
}

.schedule-legend {
    display: flex;
    gap: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-box.available {
    background: rgba(34, 197, 94, 0.1);
    border: 1.5px solid var(--success-color);
    border-radius: 4px;
}


.legend-box.selected {
    background: var(--secondary-color);
}

.schedule-instruction {
    margin-bottom: 20px;
}

.schedule-instruction p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
}

/* Schedule Container */
.schedule-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    position: relative;
}

.schedule-wrapper {
    display: grid;
    grid-template-columns: 60px repeat(11, 1fr); /* Default, will be overridden by JS */
    height: 450px; /* Increased height: 50px header + 400px schedule */
    position: relative;
    overflow-x: auto; /* Allow horizontal scrolling for many tables */
    overflow-y: hidden;
}

/* Ensure scrollbar is visible on desktop */
.schedule-wrapper::-webkit-scrollbar {
    height: 8px;
}

.schedule-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.schedule-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.schedule-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Scroll fade indicators for mobile */
.schedule-fade-left,
.schedule-fade-right {
    position: absolute;
    top: 50px; /* Below header */
    bottom: 8px; /* Above scrollbar */
    width: 30px;
    pointer-events: none;
    z-index: 9;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.schedule-fade-left {
    left: 60px; /* After sticky time column */
    background: linear-gradient(to right, rgba(255,255,255,0.95), transparent);
}

/* Mobile adjustment for fade position */
@media (max-width: 768px) {
    .schedule-fade-left,
    .schedule-fade-right {
        display: none; /* Hide fade indicators on mobile */
    }
}

.schedule-fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.95), transparent);
}

/* Show indicators when needed */
.schedule-container.scroll-left .schedule-fade-left {
    opacity: 1;
}

.schedule-container.scroll-right .schedule-fade-right {
    opacity: 1;
}

.time-column {
    grid-column: 1;
    background: white;
    position: sticky;
    left: 0;
    z-index: 10;
}

.time-header {
    height: 50px;
    background: white;
}

.time-label {
    position: absolute;
    right: 12px;
    font-size: 11px;
    color: #999;
    font-weight: 500;
    transform: translateY(-10px);
}

/* Special handling for last time label */
.time-label:last-child {
    transform: translateY(-14px);
}

.table-column {
    position: relative;
    background: #fbfbfc;
    border-right: 1px solid #fafafa;
}

.table-column:last-child {
    border-right: none;
}

.table-header {
    height: 50px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.table-icon {
    color: #b0b0b0;
    width: 28px;
    height: 22px;
}

.table-timeline {
    height: 400px;
    position: relative;
    /* Ensure timeline can receive click/touch events */
    pointer-events: auto;
    /* Ensure timeline fills its container for touch events */
    width: 100%;
    background: transparent; /* Changed to transparent to see column background */
}

.grid-lines {
    pointer-events: none;
    z-index: 1;
}

.grid-line {
    width: 100%;
    height: 1px;
    background: #f0f0f0;
}

/* Time Slots */
.time-slot {
    position: absolute;
    left: 0;
    right: 0;
    cursor: default;
    transition: all 0.2s ease;
    /* Prevent tap highlighting on mobile */
    -webkit-tap-highlight-color: transparent;
    /* Allow pointer events to pass through on mobile for edge clicking */
    pointer-events: none;
}

/* Available time slots - visual blocks */
.available-slot {
    position: absolute;
    left: 0;
    right: 0;
    background: rgba(34, 197, 94, 0.25);
    border: none;
    border-radius: 0;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
    z-index: 2; /* Ensure available blocks are above time slots */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
}

/* Active state for mobile touch feedback - only when explicitly allowed */
.available-slot.touch-active {
    background: rgba(34, 197, 94, 0.4);
    transform: scale(0.98);
}

@media (hover: hover) {
    .available-slot:hover {
        background: rgba(34, 197, 94, 0.35);
    }
}

/* Re-enable pointer events for available slots on desktop */
@media (hover: hover) {
    .time-slot.available {
        pointer-events: auto;
    }
}

/* Too soon slots - subtle modern diagonal pattern */
.time-slot.too-soon {
    cursor: not-allowed;
    background: repeating-linear-gradient(
        -45deg,
        #fcfcfc,
        #fcfcfc 12px,
        #f8f8f8 12px,
        #f8f8f8 24px
    );
    opacity: 1;
    pointer-events: none;
}

/* Ensure no background on slots when selection is active */
.time-slot:active {
    background: none !important;
}

/* Disable all hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .time-slot.available:hover {
        background: none !important;
    }
}

.time-slot.available {
    cursor: pointer;
}

/* Only show hover on non-touch devices */
@media (hover: hover) {
    .time-slot.available:hover {
        background: rgba(34, 197, 94, 0.1);
    }
}


/* Selected Slot */
.selected-slot {
    position: absolute;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    border-radius: 4px;
    opacity: 0.8;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(71, 133, 215, 0.3);
}

/* Same-Day Cutoff Message */
.cutoff-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 48px 24px;
    height: 100%;
    text-align: center;
    background: white;
}

.cutoff-icon {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.cutoff-content {
    max-width: 400px;
}

.cutoff-content h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.cutoff-content p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.cutoff-content p.cutoff-alternative {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    margin-top: 16px;
}

.cutoff-content strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.phone-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 2px 4px;
    margin: -2px -4px;
    white-space: nowrap;
}

.phone-link:hover {
    background: var(--secondary-color-light);
    text-decoration: none;
}

.phone-link:active {
    transform: scale(0.98);
}

/* Mobile responsive cutoff message */
@media (max-width: 768px) {
    .cutoff-message {
        flex-direction: column;
        gap: 20px;
        padding: 32px 20px;
        text-align: center;
    }
    
    .cutoff-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .cutoff-content h4 {
        font-size: var(--font-size-base);
    }
    
    .cutoff-content p {
        font-size: var(--font-size-sm);
    }
}

/* Booking Summary */
.booking-summary {
    background: var(--secondary-color-light);
    border: 1.5px solid var(--secondary-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.summary-content {
    flex: 1;
}

.summary-details {
    flex: 1;
}

.summary-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.summary-text {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    font-weight: 500;
}

.weiter-button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.weiter-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 133, 215, 0.2);
    background: #3b78c9;
}

/* Duration Picker & Time Range Picker */
.duration-picker,
.time-range-picker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    opacity: 0;
    transition: all 0.3s ease;
}

.duration-picker.show,
.time-range-picker.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.duration-picker-header,
.time-range-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.duration-picker-title,
.time-range-picker-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
}

.duration-picker-close,
.time-range-picker-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.duration-picker-close:hover,
.time-range-picker-close:hover {
    background: var(--background-color);
    color: var(--text-primary);
}

.duration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    padding: 20px;
}

.duration-option {
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    position: relative;
}

.duration-option:hover {
    border-color: var(--secondary-color);
    background: var(--secondary-color-light);
}

.duration-option.popular::after {
    content: '★';
    position: absolute;
    top: 4px;
    right: 4px;
    color: var(--secondary-color);
    font-size: 12px;
}

/* Mobile-specific duration picker */
.mobile-device .duration-picker {
    position: fixed;
    top: 100px;
    left: 10px;
    right: 10px;
    bottom: 80px; /* Leave space for Safari URL bar */
    width: calc(100% - 20px);
    max-width: none;
    max-height: calc(100vh - 180px); /* Leave space at top and bottom */
    overflow-y: auto; /* Allow scrolling when content is too tall */
    border-radius: 16px;
    transform: translateY(-100%);
    margin: 0;
}

.mobile-device .time-range-picker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    /* No max-height to avoid scroll - let it grow to fit content */
    overflow-y: visible;
    margin: 0;
    top: auto;
}

.mobile-device .duration-picker.show,
.mobile-device .time-range-picker.show {
    transform: translateY(0);
    opacity: 1;
}

.mobile-device .duration-options {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 12px;
    padding: 24px;
}

.mobile-device .duration-option {
    padding: 14px 8px;
    font-size: 14px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.duration-picker-backdrop,
.time-range-picker-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
    opacity: 0;
    animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Time Range Picker specific styles */
.time-range-content {
    padding: 20px;
    padding-bottom: 40px; /* Extra padding at bottom for Safari */
}

/* Time input styles */
.time-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-primary);
    background: white;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.time-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(71, 133, 215, 0.1);
}

.time-input[readonly] {
    cursor: not-allowed;
    opacity: 0.7;
}

.time-range-section {
    margin-bottom: 20px;
}

.time-range-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}

.time-slot-option {
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.time-slot-option:hover {
    border-color: var(--secondary-color);
    background: var(--secondary-color-light);
}

.time-slot-option.selected {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.time-slot-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.time-range-summary {
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    font-size: var(--font-size-base);
    text-align: center;
    color: var(--text-secondary);
}

.time-range-confirm {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 24px;
}

.time-range-confirm:hover {
    background: #3b78c9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 133, 215, 0.2);
}

.time-range-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Desktop fallback hint */
.desktop-hint {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    animation: fadeInUp 0.3s ease forwards;
    z-index: 10;
}

.desktop-hint::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--text-primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .booking-widget {
        margin: 0;
        padding: 20px;
        border-radius: 0;
        min-height: auto;
    }

    .booking-controls-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .table-schedule {
        padding: 16px;
        margin: 0 -16px 20px -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .schedule-wrapper {
        height: 380px; /* Slightly smaller on mobile */
        /* Grid columns will be set dynamically by JavaScript */
    }
    
    .table-timeline {
        height: 330px;
    }
    
    .time-header,
    .table-header {
        height: 50px;
    }

    .schedule-legend {
        flex-direction: column;
        gap: 8px;
    }

    .booking-summary {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

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

    .weiter-button {
        width: 100%;
    }
}

/* ===== CONTACT PHASE STYLES ===== */

.contact-phase {
    max-width: 1200px;
    margin: 24px auto;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.contact-phase .booking-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: none;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.back-button:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.back-button svg {
    width: 16px;
    height: 16px;
}

.contact-phase h2 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Compact Booking Summary */
.booking-summary-compact {
    background: var(--secondary-color-light);
    border: 1px solid rgba(71, 133, 215, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 32px;
}

.summary-content-compact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-icon {
    font-size: 24px;
    opacity: 0.8;
}

.summary-details-compact {
    flex: 1;
}

.summary-text-compact {
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.summary-text-compact strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    background: white;
}

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

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: var(--font-size-base);
    background-color: white;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
    resize: vertical;
}

.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form input[type="tel"]:hover,
.contact-form textarea:hover {
    border-color: var(--secondary-color);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px var(--secondary-color-light);
}

.contact-form textarea {
    min-height: 80px;
}

.contact-form textarea::placeholder {
    color: var(--text-tertiary);
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label a {
    color: var(--secondary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Contact Actions */
.contact-actions {
    margin-top: 32px;
}

.legal-notice {
    margin-top: 16px;
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.4;
}

.legal-notice a {
    color: var(--secondary-color);
    text-decoration: none;
}

.legal-notice a:hover {
    text-decoration: underline;
}

/* Success Phase */
.success-phase {
    max-width: 1200px;
    margin: 24px auto;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.success-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: var(--success-color-light);
    border-radius: 50%;
    margin-bottom: 32px;
}

.success-icon svg {
    width: 60px;
    height: 60px;
    color: var(--success-color);
}

.success-message {
    margin-bottom: 32px;
}

.success-message p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin: 0;
}

.success-message strong {
    color: var(--text-primary);
    font-weight: 600;
}

.booking-details-card {
    background: var(--background-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.detail-value {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    font-weight: 500;
}

.new-booking-button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-booking-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 133, 215, 0.2);
    background: #3b78c9;
}

/* Error message styling */
.error-message {
    background-color: var(--error-color-light);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    padding: 16px;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.error-message strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.submit-button {
    width: 100%;
    padding: 16px 24px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.submit-button:hover:not(:disabled) {
    background-color: #3a73c7;
    transform: translateY(-1px);
}

.submit-button:disabled {
    background-color: var(--success-color);
    cursor: not-allowed;
    transform: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-phase {
        margin: 12px;
        padding: 20px;
        border-radius: 12px;
    }
    
    .contact-phase .booking-header {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .back-button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .back-button svg {
        width: 14px;
        height: 14px;
    }
    
    .contact-phase h2 {
        font-size: 24px;
    }
    
    .booking-summary-compact {
        padding: 12px;
        margin-bottom: 24px;
    }
    
    .summary-content-compact {
        gap: 10px;
    }
    
    .summary-icon {
        font-size: 20px;
    }
    
    .summary-text-compact {
        font-size: 13px;
    }
    
    .contact-form .form-group {
        margin-bottom: 16px;
    }
    
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form textarea {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .checkbox-label {
        font-size: 13px;
        gap: 10px;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
    }
    
    .submit-button {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    /* Success phase mobile styles */
    .success-phase {
        margin: 0;
        padding: 20px;
        border-radius: 0;
        min-height: auto;
    }
    
    .success-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 24px;
    }
    
    .success-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .success-message {
        margin-bottom: 24px;
    }
    
    .success-message p {
        font-size: var(--font-size-base);
    }
    
    .booking-details-card {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .detail-row {
        padding: 10px 0;
    }
    
    .new-booking-button {
        width: 100%;
        padding: 16px 24px;
    }
}