/* Modern Booking Plugin - Premium Aesthetic Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --mbp-primary: #654321;
    --mbp-primary-soft: rgba(122, 11, 11, 0.05);
    --mbp-text: #1a202c;
    --mbp-text-light: #718096;
    --mbp-bg: #ffffff;
    --mbp-border: #e2e8f0;
    --mbp-radius: 16px;
    --mbp-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.mbp-form-wrapper {
    max-width: 500px;
    margin: 40px auto;
    background: var(--mbp-bg);
    border-radius: var(--mbp-radius);
    box-shadow: var(--mbp-shadow);
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--mbp-text);
    overflow: hidden;
    
}

/* Header & Title */
.mbp-header {
    background: var(--mbp-primary);
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.mbp-title {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.mbp-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.step-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.step-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #fff;
}

/* Form Steps */
#mbp-booking-form {
    padding: 30px;
}

.mbp-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.mbp-step.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--mbp-primary);
}

/* Fields */
.mbp-field-group {
    margin-bottom: 20px;
}

.mbp-field-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.mbp-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--mbp-border);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    background: #f8fafc;
}

.mbp-input:focus {
    border-color: var(--mbp-primary);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px var(--mbp-primary-soft);
}

/* Service Cards */
.services-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.service-card .s-name {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--mbp-text);
}

.service-card .s-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.service-card .s-price {
    font-weight: 800;
    color: var(--mbp-primary);
}

.service-card .s-duration {
    color: var(--mbp-text-light);
    font-weight: 500;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.services-grid::-webkit-scrollbar {
    width: 4px;
}

.services-grid::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.service-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1.5px solid var(--mbp-border);
    border-radius: 14px;
    transition: all 0.2s;
    background: #fff;
}

.service-card:hover {
    border-color: var(--mbp-primary);
    transform: scale(1.02);
}

.service-card.selected {
    border-color: var(--mbp-primary);
    background: var(--mbp-primary-soft);
}

.s-name {
    font-weight: 600;
    display: block;
}

.s-price {
    font-size: 13px;
    color: var(--mbp-text-light);
}

.btn-select-service {
    padding: 8px 16px;
    background: #fff;
    border: 1.5px solid var(--mbp-primary);
    color: var(--mbp-primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.service-card.selected .btn-select-service {
    background: var(--mbp-primary);
    color: #fff;
}

/* Summary Box */
.mbp-selected-box {
    background: #fdf2f2;
    padding: 20px;
    border-radius: 14px;
    border: 1px dashed var(--mbp-primary);
    margin-top: 20px;
}

.mbp-selected-box h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
}

.mbp-selected-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.mbp-selected-box li {
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.total-row {
    border-top: 1px solid rgba(122, 11, 11, 0.1);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 18px;
    color: var(--mbp-primary);
}

/* Date Chips */
.mbp-date-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.date-chip input {
    position: absolute;
    opacity: 0;
}

.date-chip span {
    display: block;
    padding: 10px 20px;
    background: #f1f5f9;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.date-chip input:checked+span {
    background: var(--mbp-primary);
    color: #fff;
}

/* Time Grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.time-slot input {
    position: absolute;
    opacity: 0;
}

.time-slot span {
    display: block;
    padding: 12px 5px;
    border: 1.5px solid var(--mbp-border);
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.time-slot input:checked+span {
    background: var(--mbp-primary);
    color: #fff;
    border-color: var(--mbp-primary);
}

/* Footer Buttons */
.mbp-footer {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-next,
.btn-submit,
.btn-primary {
    background: var(--mbp-primary);
    color: #fff;
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
	text-align:center;
}

.btn-next:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}
.btn-next{
	width: 50%;

}
.btn-prev {
    background: #f1f5f9;
    color: var(--mbp-text);
    padding: 16px 25px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
	width: 50%;
	text-align:center;
}

.btn-next:hover:not(:disabled),
.btn-submit:hover {
    background: var(--mbp-primary-hover, #5e0808);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(122, 11, 11, 0.3);
}

/* Success Message */
.mbp-success-overlay {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #dcfce7;
    color: #166534;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}

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

    .mbp-form-wrapper {
        margin: 0;
        border-radius: 16px;
    }
}