/* Hide original mphb form  */
#mphb-services-details-0 {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.services-container {
    max-width: 900px;
    margin: 0 auto;
}

.services-category {
    margin: 2.5rem 0;
}

.services-category h4 {
    border-bottom: 3px solid #c1b086;
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #000;
}

.service-card {
    display: inline-block;
    background-color: #fff;
    padding: 10px 40px;
    margin: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    text-align: center;
    vertical-align: top;
    border: 1px solid #000;
    cursor: pointer;
}

.service-card.selected {
    border: 1px solid #c1b086;
    background-color: #c1b086;
    position: relative;
    color: #fff;
}

.service-card.selected::after {
    content: '✔';
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 18px;
    color: white;
}

/*********  POPUP WINDOW  **********/

/* Dark overlay */
.service-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 9998;
    display: none;
}

.service-popup {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px 50px;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: none;
    width: 340px;
}

.service-popup .popup-field {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-popup .popup-field select {
    width: 120px;
}

.service-popup.active {
    display: block;
}

/* Quantity input */
.service-popup .qty-input {
    width: 70px;
    text-align: center;
    padding: 6px;
}

.service-popup-label {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.service-popup-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 10px;
}

.service-popup .qty-minus,
.service-popup .qty-plus {
    padding: 6px 8px;
}

.service-popup-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.service-popup-buttons button {
    border-radius: 8px;
    padding: 10px 20px;
    min-width: 80px;
    cursor: pointer;
    width: 100%;
}

/* Chrome, Safari, Edge, Opera */
.service-popup-buttons .qty-input::-webkit-inner-spin-button,
.service-popup-buttons .qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Firefox */
.service-popup-buttons .qty-input {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.service-popup .qty-ok {
    background: #c1b086;
    color: #fff;
    border: 1px solid #c1b086;
}

.service-popup .qty-cancel {
    background: transparent;
    color: #5f6060;
    border: 1px solid #5f6060;
}

/* Mobile view */
@media (max-width: 600px) {
    .service-card {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}
