/**
 * BMP Dashboard - Frontend Styles
 */

:root {
    --bmp-primary: #4a3f33;
    --bmp-accent: #c4a77d;
    --bmp-success: #5cb85c;
    --bmp-light: #f5f0eb;
    --bmp-border: #e8e0d8;
    --bmp-text: #6b5d4f;
}

/* Booking Wrapper */
.bmp-booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Steps */
.bmp-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    grid-column: 1 / -1;
}

.bmp-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--bmp-border);
    z-index: 0;
}

.bmp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.bmp-step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bmp-border);
    color: #999;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.bmp-step.active .bmp-step-number,
.bmp-step.completed .bmp-step-number {
    background: var(--bmp-accent);
    color: #fff;
}

.bmp-step-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.bmp-step.active .bmp-step-label {
    color: var(--bmp-accent);
}

/* Form Steps */
.bmp-booking-form {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.bmp-form-step {
    display: none;
}

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

.bmp-form-step h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--bmp-primary);
    margin: 0 0 30px;
}

/* Category Tabs */
.bmp-category-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.bmp-category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bmp-text);
    background: transparent;
    border: 1px solid var(--bmp-border);
    cursor: pointer;
    transition: all 0.3s;
}

.bmp-category-tab:hover,
.bmp-category-tab.active {
    background: var(--bmp-primary);
    color: #fff;
    border-color: var(--bmp-primary);
}

.bmp-category-tab i {
    font-size: 16px;
}

/* Prestations List */
.bmp-prestations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bmp-prestation-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bmp-light);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.bmp-prestation-option:hover {
    border-color: var(--bmp-border);
}

.bmp-prestation-option.selected {
    border-color: var(--bmp-accent);
    background: #fff;
}

.bmp-prestation-option input {
    display: none;
}

.bmp-prestation-radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--bmp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.bmp-prestation-option.selected .bmp-prestation-radio {
    border-color: var(--bmp-accent);
}

.bmp-prestation-option.selected .bmp-prestation-radio::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bmp-accent);
}

.bmp-prestation-info {
    flex: 1;
}

.bmp-prestation-info h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--bmp-primary);
    margin: 0 0 5px;
}

.bmp-prestation-info p {
    font-size: 14px;
    color: var(--bmp-text);
    margin: 0 0 8px;
}

.bmp-prestation-duration {
    font-size: 13px;
    color: #999;
}

.bmp-prestation-duration i {
    color: var(--bmp-accent);
}

.bmp-prestation-price {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--bmp-accent);
}

/* Date & Time */
.bmp-datetime-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.bmp-date-picker label,
.bmp-time-slots-wrapper label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bmp-text);
    margin-bottom: 15px;
}

.bmp-date-picker input[type="date"] {
    width: 100%;
    padding: 15px 20px;
    font-family: inherit;
    font-size: 16px;
    color: var(--bmp-primary);
    background: var(--bmp-light);
    border: 1px solid var(--bmp-border);
    border-radius: 8px;
    cursor: pointer;
}

.bmp-date-picker input[type="date"]:focus {
    outline: none;
    border-color: var(--bmp-accent);
}

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

.bmp-time-slot {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--bmp-text);
    background: var(--bmp-light);
    border: 1px solid var(--bmp-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.bmp-time-slot:hover:not(.unavailable) {
    border-color: var(--bmp-accent);
}

.bmp-time-slot.selected {
    background: var(--bmp-accent);
    color: #fff;
    border-color: var(--bmp-accent);
}

.bmp-time-slot.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.bmp-select-date-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
}

/* Form Fields */
.bmp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bmp-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bmp-form-full {
    grid-column: 1 / -1;
}

.bmp-form-group label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bmp-text);
}

.bmp-form-group input,
.bmp-form-group textarea {
    padding: 15px 20px;
    font-family: inherit;
    font-size: 15px;
    color: var(--bmp-primary);
    background: var(--bmp-light);
    border: 1px solid var(--bmp-border);
    border-radius: 8px;
    transition: all 0.3s;
}

.bmp-form-group input:focus,
.bmp-form-group textarea:focus {
    outline: none;
    border-color: var(--bmp-accent);
    background: #fff;
}

.bmp-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Navigation */
.bmp-form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--bmp-border);
}

.bmp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.bmp-btn-primary,
.bmp-btn-next {
    background: var(--bmp-accent);
    color: #fff;
}

.bmp-btn-primary:hover,
.bmp-btn-next:hover {
    background: var(--bmp-primary);
}

.bmp-btn-secondary {
    background: transparent;
    color: var(--bmp-text);
    border: 1px solid var(--bmp-border);
}

.bmp-btn-secondary:hover {
    background: var(--bmp-light);
}

.bmp-btn-small {
    padding: 10px 20px;
    font-size: 12px;
}

/* Payment */
.bmp-payment-summary {
    background: var(--bmp-light);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.bmp-payment-summary h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--bmp-primary);
    margin: 0 0 20px;
}

.bmp-summary-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--bmp-border);
    font-size: 14px;
    color: var(--bmp-text);
}

.bmp-summary-line:last-child {
    border-bottom: none;
}

.bmp-summary-total {
    margin-top: 10px;
    padding-top: 15px !important;
    border-top: 2px solid var(--bmp-border) !important;
    font-size: 18px !important;
    font-weight: 600;
    color: var(--bmp-primary);
}

.bmp-summary-total span:last-child {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    color: var(--bmp-accent);
}

.bmp-stripe-form {
    margin-bottom: 25px;
}

.bmp-stripe-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bmp-text);
    margin-bottom: 15px;
}

#bmp-card-element {
    padding: 15px 20px;
    background: #fff;
    border: 1px solid var(--bmp-border);
    border-radius: 8px;
}

.bmp-error {
    color: #d9534f;
    font-size: 14px;
    margin-top: 10px;
}

.bmp-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: #999;
    margin-bottom: 25px;
}

.bmp-secure-badge i {
    color: var(--bmp-success);
}

/* Sidebar */
.bmp-booking-sidebar {
    position: sticky;
    top: 120px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    height: fit-content;
}

.bmp-booking-sidebar h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--bmp-primary);
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bmp-border);
}

.bmp-sidebar-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--bmp-border);
}

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

.bmp-sidebar-label {
    font-size: 14px;
    color: var(--bmp-text);
}

.bmp-sidebar-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--bmp-primary);
}

.bmp-sidebar-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--bmp-border);
}

.bmp-sidebar-total .bmp-sidebar-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--bmp-primary);
}

.bmp-sidebar-total .bmp-sidebar-value {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    color: var(--bmp-accent);
}

/* Success */
.bmp-booking-success {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.bmp-success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bmp-accent), #d4bc9a);
}

.bmp-success-icon i {
    font-size: 50px;
    color: #fff;
}

.bmp-booking-success h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 36px;
    font-weight: 300;
    color: var(--bmp-primary);
    margin: 0 0 15px;
}

.bmp-booking-success p {
    font-size: 16px;
    color: var(--bmp-text);
    margin: 0 0 10px;
}

.bmp-confirmation-ref {
    display: inline-block;
    padding: 15px 30px;
    background: var(--bmp-light);
    margin: 25px 0;
    font-size: 18px;
    color: var(--bmp-accent);
}

.bmp-see-you {
    font-style: italic;
    color: var(--bmp-accent);
}

/* Loading */
.bmp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.bmp-loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid var(--bmp-border);
    border-top-color: var(--bmp-accent);
    border-radius: 50%;
    animation: bmp-spin 1s linear infinite;
}

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

/* Prestations List (Shortcode) */
.bmp-prestations-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.bmp-prestations-category {
    margin-bottom: 60px;
}

.bmp-category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.bmp-category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bmp-light);
    border: 1px solid var(--bmp-border);
}

.bmp-category-icon i {
    font-size: 24px;
    color: var(--bmp-accent);
}

.bmp-category-header h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 32px;
    font-weight: 300;
    color: var(--bmp-primary);
    margin: 0;
}

.bmp-prestations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.bmp-prestation-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.bmp-prestation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--bmp-accent);
}

.bmp-prestation-card .bmp-prestation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.bmp-prestation-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--bmp-primary);
    margin: 0;
}

.bmp-prestation-desc {
    font-size: 14px;
    color: var(--bmp-text);
    line-height: 1.6;
    margin: 0 0 20px;
}

.bmp-prestation-card .bmp-prestation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--bmp-border);
}

.bmp-prestation-card .bmp-prestation-price {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    color: var(--bmp-accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .bmp-booking-wrapper {
        grid-template-columns: 1fr;
    }
    
    .bmp-booking-sidebar {
        position: static;
        order: -1;
    }
    
    .bmp-datetime-wrapper {
        grid-template-columns: 1fr;
    }
    
    .bmp-time-slots {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .bmp-steps::before {
        left: 30px;
        right: 30px;
    }
    
    .bmp-step-label {
        font-size: 10px;
    }
    
    .bmp-booking-form {
        padding: 25px;
    }
    
    .bmp-form-grid {
        grid-template-columns: 1fr;
    }
    
    .bmp-time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .bmp-category-tabs {
        flex-direction: column;
    }
    
    .bmp-form-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .bmp-btn {
        width: 100%;
        justify-content: center;
    }
    
    .bmp-prestations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bmp-time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bmp-prestation-option {
        flex-wrap: wrap;
    }
    
    .bmp-prestation-price {
        width: 100%;
        text-align: right;
        margin-top: 10px;
    }
}
