.cfweb-booking {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 0;
}

.cfweb-booking-title {
    text-align: center;
    margin-bottom: 20px;
}

.cfweb-booking-description {
    text-align: center;
    margin-bottom: 24px;
    color: #666;
}

.cfweb-progress-steps {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    position: relative;
}

.cfweb-progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e5e5;
    transform: translateY(-50%);
    z-index: 0;
}

.cfweb-step-indicator {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.cfweb-step-indicator .cfweb-step-label {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #999;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.cfweb-step-indicator.active .cfweb-step-label {
    background: #e30613;
    color: #fff;
}

.cfweb-step-indicator.completed .cfweb-step-label {
    background: #007030;
    color: #fff;
}

.cfweb-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.cfweb-step1-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cfweb-step1-top {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: flex-start;
}

.cfweb-step1-calendar {
    min-width: 0;
}

.cfweb-step1-calendar h4,
.cfweb-step1-slots-section h4,
.cfweb-step1-time-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cfweb-step1-slots-section {
    min-width: 0;
}

.cfweb-step1-time-section {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
}

.cfweb-slot-placeholder {
    color: #999;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.cfweb-datepicker {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.cfweb-datepicker-wrapper {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .cfweb-step1-top {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .cfweb-step1-top {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.cfweb-selected-date {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding: 8px;
    color: #333;
}

.cfweb-timeslot-list {
    display: grid;
    gap: 12px;
}

@media (max-width: 640px) {
    .cfweb-step1-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.cfweb-timeslot-option {
    display: block;
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 14px;
}

.cfweb-timeslot-option:hover {
    border-color: #e30613;
    background: #f8f9ff;
}

.cfweb-timeslot-option.selected {
    border-color: #e30613;
    background: #eef4ff;
}

.cfweb-timeslot-option:disabled,
.cfweb-timeslot-option.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #e5e5e5;
    background: #f9f9f9;
}

.cfweb-timeslot-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.cfweb-timeslot-range {
    color: #666;
    font-size: 13px;
    margin-bottom: 4px;
}

.cfweb-timeslot-count {
    font-size: 12px;
    color: #999;
}

.cfweb-timeslot-count.available {
    color: #007030;
}

.cfweb-timeslot-count.full {
    color: #e74c3c;
}

.cfweb-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.cfweb-time-option {
    padding: 10px 8px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.cfweb-time-option:hover {
    border-color: #e30613;
    background: #f8f9ff;
}

.cfweb-time-option.selected {
    border-color: #e30613;
    background: #e30613;
    color: #fff;
}

.cfweb-time-option:disabled,
.cfweb-time-option.unavailable {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #ddd;
}

.cfweb-data-form .cfweb-field {
    margin-bottom: 16px;
}

.cfweb-data-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.cfweb-data-form input[type="text"],
.cfweb-data-form input[type="email"],
.cfweb-data-form input[type="tel"],
.cfweb-data-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.cfweb-data-form input:focus,
.cfweb-data-form textarea:focus {
    border-color: #e30613;
    outline: none;
    box-shadow: 0 0 0 2px rgba(30,135,240,0.1);
}

.cfweb-data-form input.error,
.cfweb-data-form textarea.error {
    border-color: #e74c3c;
}

.cfweb-data-form textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.cfweb-field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
}

.cfweb-privacy-field {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cfweb-privacy-field input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.cfweb-privacy-field label {
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
}

.cfweb-privacy-field label a {
    color: #e30613;
    text-decoration: underline;
}

.cfweb-summary {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.cfweb-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

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

.cfweb-summary-label {
    font-weight: 600;
    color: #666;
}

.cfweb-summary-value {
    color: #333;
    text-align: right;
}

.cfweb-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.cfweb-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
}

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

.cfweb-btn-primary {
    background: #e30613;
    color: #fff;
}

.cfweb-btn-primary:hover:not(:disabled) {
    background: #0f6fc9;
}

.cfweb-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.cfweb-btn-secondary:hover:not(:disabled) {
    background: #e5e5e5;
}

.cfweb-success {
    text-align: center;
    padding: 40px 20px;
}

.cfweb-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #007030;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfweb-success-icon svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.cfweb-booking-code {
    font-size: 24px;
    font-weight: 700;
    color: #e30613;
    padding: 16px;
    background: #f0f6ff;
    border-radius: 8px;
    display: inline-block;
    margin: 16px 0;
    letter-spacing: 2px;
}

.cfweb-booking-code-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.cfweb-success-details {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
}

.cfweb-error {
    text-align: center;
    padding: 40px 20px;
}

.cfweb-error-message {
    color: #e74c3c;
    font-size: 16px;
    margin-bottom: 16px;
}

.cfweb-success-table {
    margin: 20px auto;
    border-collapse: collapse;
    text-align: left;
}

.cfweb-success-table td {
    padding: 6px 16px;
    font-size: 14px;
}

.cfweb-success-table td:first-child {
    font-weight: 600;
    color: #666;
}

.cfweb-print-btn {
    margin-top: 16px;
}

@media print {
    @page {
        size: A4;
        margin: 15mm;
    }

    body * {
        visibility: hidden;
    }

    .cfweb-success,
    .cfweb-success * {
        visibility: visible;
    }

    .cfweb-success {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 10mm 0;
        text-align: center;
    }

    .cfweb-success h3 {
        font-size: 18pt;
        margin: 6mm 0 4mm;
    }

    .cfweb-booking-code-label {
        font-size: 10pt;
        margin-bottom: 2mm;
    }

    .cfweb-booking-code {
        font-size: 16pt;
        letter-spacing: 1pt;
        padding: 3mm 8mm;
        margin: 3mm auto;
        display: inline-block;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cfweb-success-table {
        margin: 4mm auto 0;
        font-size: 10pt;
    }

    .cfweb-success-table td {
        padding: 2mm 6mm;
    }

    .cfweb-success-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 3mm;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cfweb-success-icon svg {
        width: 22px;
        height: 22px;
    }

    .cfweb-print-btn,
    .cfweb-navigation,
    .cfweb-progress,
    .cfweb-booking-title,
    .cfweb-booking-description {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .cfweb-time-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .cfweb-time-option {
        padding: 8px 4px;
        font-size: 13px;
    }

    .cfweb-summary-row {
        flex-direction: column;
        gap: 4px;
    }

    .cfweb-summary-value {
        text-align: left;
    }
}
