/* Main Container */
.cbs-booking-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cbs-booking-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Progress Bar */
.cbs-progress-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px 40px 20px;
    border-bottom: 1px solid #e9ecef;
}

.cbs-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 15px;
}

.cbs-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cbs-step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e9ecef;
    color: #868e96;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cbs-step-item.active .cbs-step-number,
.cbs-step-item.completed .cbs-step-number {
    background: #10b981;
    color: #ffffff;
}

.cbs-step-item.completed .cbs-step-number {
    background: #059669;
}

.cbs-step-label {
    font-size: 13px;
    color: #868e96;
    font-weight: 500;
    text-align: center;
    max-width: 80px;
}

.cbs-step-item.active .cbs-step-label {
    color: #10b981;
    font-weight: 600;
}

.cbs-step-item.completed .cbs-step-label {
    color: #059669;
}

.cbs-progress-line {
    position: absolute;
    top: 52px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: #e9ecef;
    z-index: 1;
}

.cbs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Booking Content */
.cbs-booking-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    min-height: 600px;
}

.cbs-form-section {
    padding: 40px;
    background: #ffffff;
}

/* Form Steps */
.cbs-form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.cbs-form-step.active {
    display: block;
}

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

.cbs-step-header {
    margin-bottom: 35px;
}

.cbs-step-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 10px;
}

.cbs-step-header p {
    font-size: 15px;
    color: #6c757d;
    margin: 0;
}

/* Form Groups */
.cbs-form-group {
    margin-bottom: 24px;
}

.cbs-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.cbs-form-group input[type="text"],
.cbs-form-group input[type="email"],
.cbs-form-group input[type="tel"],
.cbs-form-group input[type="number"],
.cbs-form-group input[type="date"],
.cbs-form-group select,
.cbs-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    color: #212529;
    transition: all 0.3s ease;
    background: #ffffff;
}

.cbs-form-group input:focus,
.cbs-form-group select:focus,
.cbs-form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.cbs-form-group input.error,
.cbs-form-group select.error {
    border-color: #ef4444;
}

.cbs-error-message {
    display: block;
    font-size: 12px;
    color: #ef4444;
    margin-top: 5px;
    min-height: 18px;
}

.cbs-hint {
    display: block;
    font-size: 12px;
    color: #868e96;
    margin-top: 5px;
}

.cbs-form-row {
    margin-bottom: 0;
}

.cbs-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Quantity Selector */
.cbs-quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}

.cbs-qty-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: #f8f9fa;
    color: #495057;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbs-qty-btn:hover {
    background: #10b981;
    color: #ffffff;
}

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

.cbs-quantity-selector input {
    width: 70px;
    height: 50px;
    text-align: center;
    border: none;
    border-left: 2px solid #e9ecef;
    border-right: 2px solid #e9ecef;
    font-size: 18px;
    font-weight: 600;
    padding: 0;
}

.cbs-quantity-selector input:focus {
    outline: none;
    box-shadow: none;
}

/* Services Grid */
.cbs-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.cbs-service-card {
    cursor: pointer;
    display: block;
    position: relative;
}

.cbs-service-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cbs-service-card-inner {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.cbs-service-card:hover .cbs-service-card-inner {
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.cbs-service-card input:checked ~ .cbs-service-card-inner {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}

.cbs-service-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.cbs-service-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #6c757d;
}

.cbs-service-card input:checked ~ .cbs-service-card-inner .cbs-service-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.cbs-service-card input:checked ~ .cbs-service-card-inner .cbs-service-icon .dashicons {
    color: #ffffff;
}

.cbs-service-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 8px;
}

.cbs-service-content p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.cbs-service-price {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.cbs-price-from {
    font-size: 12px;
    color: #6c757d;
    display: block;
    margin-bottom: 4px;
}

.cbs-price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #10b981;
}

.cbs-service-check {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.cbs-service-check .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #ffffff;
}

.cbs-service-card input:checked ~ .cbs-service-card-inner .cbs-service-check {
    opacity: 1;
    background: #10b981;
}

/* Extras Grid */
.cbs-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.cbs-extra-card {
    cursor: pointer;
    display: block;
    position: relative;
}

.cbs-extra-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cbs-extra-card-inner {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cbs-extra-card:hover .cbs-extra-card-inner {
    border-color: #10b981;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.12);
}

.cbs-extra-card input:checked ~ .cbs-extra-card-inner {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.15);
}

.cbs-extra-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbs-extra-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: #6c757d;
}

.cbs-extra-card input:checked ~ .cbs-extra-card-inner .cbs-extra-icon {
    background: #10b981;
}

.cbs-extra-card input:checked ~ .cbs-extra-card-inner .cbs-extra-icon .dashicons {
    color: #ffffff;
}

.cbs-extra-content {
    flex: 1;
}

.cbs-extra-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 5px;
}

.cbs-extra-content p {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.cbs-extra-price {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
    position: absolute;
    top: 15px;
    right: 15px;
}

.cbs-extra-check {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.cbs-extra-check .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #ffffff;
}

.cbs-extra-card input:checked ~ .cbs-extra-card-inner .cbs-extra-check {
    opacity: 1;
    background: #10b981;
}

.cbs-skip-step {
    text-align: center;
    margin-top: 20px;
}

.cbs-skip-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cbs-skip-btn:hover {
    color: #10b981;
}

/* Summary Sidebar */
.cbs-summary-sidebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 1px solid #e9ecef;
    padding: 30px;
    position: relative;
}

.cbs-summary-sticky {
    position: sticky;
    top: 20px;
}

.cbs-summary-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.cbs-summary-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.cbs-summary-content {
    margin-bottom: 25px;
}

.cbs-summary-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.cbs-placeholder-icon {
    width: 70px;
    height: 70px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cbs-placeholder-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #adb5bd;
}

.cbs-summary-placeholder p {
    font-size: 13px;
    color: #868e96;
    line-height: 1.6;
    margin: 0;
}

/* Summary Items */
.cbs-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f5;
}

.cbs-summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cbs-summary-item-label {
    font-size: 14px;
    color: #6c757d;
    flex: 1;
    padding-right: 10px;
}

.cbs-summary-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    font-family: 'Courier New', monospace;
}

.cbs-summary-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 12px;
    padding-top: 12px;
    border-top: 2px solid #e9ecef;
}

.cbs-summary-section-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Summary Total */
.cbs-summary-total {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cbs-total-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.cbs-total-amount {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* Summary Footer */
.cbs-summary-footer {
    margin-top: 25px;
    text-align: center;
}

.cbs-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
}

.cbs-guarantee .dashicons {
    color: #10b981;
    font-size: 18px;
}

/* Form Navigation */
.cbs-form-navigation {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

/* Buttons */
.cbs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cbs-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.cbs-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cbs-btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.cbs-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    padding: 16px 32px;
    font-size: 16px;
}

.cbs-btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.cbs-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.cbs-btn-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.cbs-btn-outline {
    background: transparent;
    color: #10b981;
    border: 2px solid #10b981;
}

.cbs-btn-outline:hover {
    background: #10b981;
    color: #ffffff;
}

.cbs-btn-prev,
.cbs-btn-next {
    flex: 1;
    max-width: 180px;
}

.cbs-btn-submit {
    flex: 1;
    justify-content: center;
}

/* Confirmation Summary */
.cbs-confirmation-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.cbs-confirm-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.cbs-confirm-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cbs-confirm-title {
    font-size: 12px;
    font-weight: 700;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.cbs-confirm-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.cbs-confirm-label {
    color: #6c757d;
}

.cbs-confirm-value {
    color: #212529;
    font-weight: 600;
}

/* Terms & Conditions */
.cbs-terms-conditions {
    margin: 25px 0;
}

.cbs-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
}

.cbs-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cbs-checkmark {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cbs-checkbox-container:hover .cbs-checkmark {
    border-color: #10b981;
}

.cbs-checkbox-container input:checked ~ .cbs-checkmark {
    background: #10b981;
    border-color: #10b981;
}

.cbs-checkbox-container input:checked ~ .cbs-checkmark:after {
    content: '\f147';
    font-family: 'dashicons';
    font-size: 16px;
    color: #ffffff;
}

.cbs-terms-conditions a {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
}

.cbs-terms-conditions a:hover {
    text-decoration: underline;
}

/* Coupon Section */
.cbs-coupon-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.cbs-coupon-form {
    display: flex;
    gap: 10px;
}

.cbs-coupon-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
}

.cbs-coupon-form input:focus {
    outline: none;
    border-color: #10b981;
}

.cbs-coupon-form .cbs-btn {
    padding: 12px 20px;
}

.cbs-coupon-message {
    margin-top: 10px;
    font-size: 13px;
}

.cbs-coupon-message.success {
    color: #10b981;
}

.cbs-coupon-message.error {
    color: #ef4444;
}

/* Loading Overlay */
.cbs-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cbs-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.cbs-loading-overlay p {
    margin-top: 20px;
    font-size: 16px;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cbs-booking-content {
        grid-template-columns: 1fr;
    }

    .cbs-summary-sidebar {
        order: -1;
        border-left: none;
        border-bottom: 1px solid #e9ecef;
        background: #f8f9fa;
        padding: 20px;
    }

    .cbs-summary-sticky {
        position: relative;
        top: 0;
    }

    .cbs-summary-placeholder {
        padding: 20px;
    }

    .cbs-placeholder-icon {
        width: 50px;
        height: 50px;
    }

    .cbs-placeholder-icon .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 768px) {
    .cbs-booking-container {
        padding: 20px 10px;
    }

    .cbs-form-section {
        padding: 25px 20px;
    }

    .cbs-progress-bar {
        padding: 20px;
    }

    .cbs-progress-steps {
        flex-wrap: wrap;
        gap: 15px;
    }

    .cbs-step-item {
        flex: 0 0 calc(33.333% - 10px);
    }

    .cbs-step-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .cbs-step-label {
        font-size: 11px;
        max-width: 60px;
    }

    .cbs-progress-line {
        display: none;
    }

    .cbs-step-header h2 {
        font-size: 24px;
    }

    .cbs-two-col {
        grid-template-columns: 1fr;
    }

    .cbs-services-grid {
        grid-template-columns: 1fr;
    }

    .cbs-extras-grid {
        grid-template-columns: 1fr;
    }

    .cbs-form-navigation {
        flex-direction: column;
    }

    .cbs-btn-prev,
    .cbs-btn-next {
        max-width: none;
    }

    .cbs-total-amount {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .cbs-step-item {
        flex: 0 0 calc(50% - 8px);
    }

    .cbs-service-card-inner,
    .cbs-extra-card-inner {
        padding: 16px;
    }

    .cbs-quantity-selector {
        width: 100%;
    }

    .cbs-quantity-selector input {
        width: 100%;
        flex: 1;
    }

    .cbs-coupon-form {
        flex-direction: column;
    }

    .cbs-coupon-form .cbs-btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .cbs-summary-sidebar,
    .cbs-form-navigation,
    .cbs-progress-bar {
        display: none;
    }

    .cbs-form-section {
        padding: 0;
    }

    .cbs-form-step {
        display: block !important;
    }
}
