:root {
    --bpt-primary: #4CAF50;
    --bpt-secondary: #2196F3;
    --bpt-text: #333333;
    --bpt-text-light: #666666;
    --bpt-border: #e0e0e0;
    --bpt-bg-light: #f9f9f9;
    --bpt-shadow: rgba(0, 0, 0, 0.1);
    --bpt-radius: 8px;
    --bpt-spacing: 20px;
}

.bookly-price-table-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--bpt-spacing);
}

.bpt-category-section {
    margin-bottom: 50px;
}

.bpt-category-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--bpt-primary);
}

.bpt-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Center when 1 service */
.bpt-services-grid[data-count="1"] {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

/* Center when 2 services */
.bpt-services-grid[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 850px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .bpt-services-grid,
    .bpt-services-grid[data-count="1"],
    .bpt-services-grid[data-count="2"] {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

.bpt-service-card {
    background: #ffffff;
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius);
    box-shadow: 0 2px 8px var(--bpt-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bpt-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.bpt-service-header {
    background: linear-gradient(135deg, var(--bpt-primary), var(--bpt-secondary));
    color: #ffffff;
    padding: 25px 20px;
    text-align: center;
}

.bpt-service-title {
    font-weight: 600;
    margin: 0 0 10px 0;
}

.bpt-title-main {
    display: block;
}

.bpt-title-subtitle {
    display: block;
    text-align: center;
    font-weight: 400;
    margin-top: 5px;
    opacity: 0.9;
}

.bpt-service-price {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.bpt-service-body {
    padding: 20px;
    flex-grow: 1;
}

.bpt-service-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bpt-text-light);
    font-size: 14px;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bpt-bg-light);
    border-radius: 5px;
}

.bpt-service-duration .bpt-icon {
    font-size: 18px;
}

.bpt-service-description {
    color: var(--bpt-text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.bpt-more-info-link {
    margin-bottom: 15px;
}

.bpt-more-info-button {
    display: inline-block;
    padding: 8px 16px;
    color: var(--bpt-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--bpt-primary);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.bpt-more-info-button:hover {
    background: var(--bpt-primary);
    color: #ffffff;
    text-decoration: none;
}

.bpt-service-note {
    padding: 12px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #856404;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.bpt-note-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.bpt-service-extras {
    margin-top: 20px;
}

.bpt-extras-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(135deg, var(--bpt-primary), var(--bpt-secondary));
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 600;
}

.bpt-extras-toggle:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.bpt-extras-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bpt-extras-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
}

.bpt-extras-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.bpt-extras-icon.bpt-rotated {
    transform: rotate(180deg);
}

.bpt-extras-dropdown {
    margin-top: 10px;
    padding: 15px;
    background: var(--bpt-bg-light);
    border: 1px solid var(--bpt-border);
    border-radius: 5px;
}

.bpt-extras-list-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--bpt-text);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bpt-primary);
}

.bpt-extras-visible {
    padding: 15px;
    background: var(--bpt-bg-light);
    border: 1px solid var(--bpt-border);
    border-radius: 5px;
    margin-top: 10px;
}

.bpt-extras-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bpt-extra-item {
    margin-bottom: 10px;
}

.bpt-extra-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: var(--bpt-bg-light);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bpt-extra-label:hover {
    background: #f0f0f0;
}

.bpt-extra-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.bpt-extra-name {
    flex: 1;
    font-size: 14px;
    color: var(--bpt-text);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.bpt-extra-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--bpt-primary);
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}

.bpt-service-footer {
    padding: 20px;
    background: var(--bpt-bg-light);
    border-top: 1px solid var(--bpt-border);
}

.bpt-contact-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bpt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background: #ffffff;
    color: var(--bpt-text);
    border: 2px solid var(--bpt-border);
}

.bpt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--bpt-shadow);
}

.bpt-btn-icon {
    font-size: 18px;
}

.bpt-btn-email {
    border-color: #FFA726;
    color: #F57C00;
}

.bpt-btn-email:hover {
    background: #FFA726;
    color: #ffffff;
}

.bpt-btn-phone {
    border-color: #66BB6A;
    color: #388E3C;
}

.bpt-btn-phone:hover {
    background: #66BB6A;
    color: #ffffff;
}

.bpt-btn-booking,
.bpt-btn-primary {
    background: linear-gradient(135deg, var(--bpt-primary), var(--bpt-secondary));
    color: #ffffff;
    border: none;
}

.bpt-btn-booking:hover,
.bpt-btn-primary:hover {
    background: linear-gradient(135deg, #45a049, #1976D2);
}

.bpt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bpt-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.bpt-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: var(--bpt-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.bpt-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 2;
}

.bpt-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.bpt-modal-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid var(--bpt-border);
}

.bpt-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--bpt-text);
}

.bpt-modal-body {
    padding: 30px;
}

.bpt-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bpt-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bpt-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--bpt-text);
}

.bpt-form-group input,
.bpt-form-group textarea {
    padding: 12px;
    border: 1px solid var(--bpt-border);
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.bpt-form-group input:focus,
.bpt-form-group textarea:focus {
    outline: none;
    border-color: var(--bpt-primary);
}

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

.bpt-form-actions {
    margin-top: 10px;
}

#bpt-email-response {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

#bpt-email-response.success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #4CAF50;
}

#bpt-email-response.error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #F44336;
}

.bpt-loading-spinner {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: var(--bpt-text-light);
}

@media (max-width: 576px) {
    .bpt-category-title {
        font-size: 24px;
    }
    
    .bpt-service-title {
        font-size: 18px;
    }
    
    .bpt-service-price {
        font-size: 24px;
    }
    
    .bpt-modal-content {
        width: 95%;
    }
    
    .bpt-modal-header,
    .bpt-modal-body {
        padding: 20px;
    }
}
