/* BP Member Services - Clean & Modern Design */

.bpms-services-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.bpms-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Service Card */
.bpms-service-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bpms-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Fixed Image - 600x400px (3:2 aspect ratio) */
.bpms-service-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%;
    overflow: hidden;
    background: #f0f0f0;
}

.bpms-service-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bpms-service-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

/* Service Body */
.bpms-service-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bpms-service-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #2c3e50;
    line-height: 1.3;
}

.bpms-service-info-wrap {
    margin-bottom: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bpms-service-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 15px 0;
}

.bpms-service-price-tag {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.bpms-price-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.bpms-price-amount {
    font-size: 22px;
    font-weight: 800;
    color: #1e40af;
}

/* Service Footer */
.bpms-service-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}

.bpms-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

.bpms-btn-primary {
    flex: 1;
    background: #2563eb !important;
    color: white !important;
}

.bpms-btn-primary:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.bpms-btn-contact {
    flex: 1;
    background: #10b981 !important;
    color: white !important;
}

.bpms-btn-contact:hover {
    background: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.bpms-btn-edit {
    flex: 1;
    background: #f59e0b !important;
    color: white !important;
}

.bpms-btn-edit:hover {
    background: #d97706 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.bpms-btn-icon {
    background: transparent;
    border: 2px solid #e0e0e0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #999;
    padding: 0;
}

.bpms-btn-icon:hover {
    border-color: #e74c3c;
    background: #fee;
    color: #e74c3c;
}

.bpms-btn-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Modal Overlay */
.bpms-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.bpms-modal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content */
.bpms-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.bpms-modal-header {
    padding: 30px;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 16px 16px 0 0;
}

.bpms-modal-header h2 {
    margin: 0;
    font-size: 28px;
    color: #2c3e50;
    padding-right: 40px;
}

.bpms-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bpms-modal-close:hover {
    background: #e74c3c;
    color: white;
}

.bpms-modal-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

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

.bpms-modal-body h3 {
    font-size: 18px;
    margin: 25px 0 12px;
    color: #2c3e50;
    font-weight: 700;
}

.bpms-modal-body h3:first-child {
    margin-top: 0;
}

.bpms-modal-category {
    color: #666;
    margin-bottom: 20px;
}

.bpms-modal-image {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
}

.bpms-modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.bpms-modal-description p {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
    white-space: pre-wrap;
}

.bpms-price-large {
    font-size: 36px;
    font-weight: 700;
    color: #2563eb;
    margin: 10px 0;
}

.bpms-provider-info {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.bpms-provider-info img {
    border-radius: 50%;
}

.bpms-provider-info p {
    margin: 0 0 5px 0;
}

.bpms-provider-info a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.bpms-provider-info a:hover {
    text-decoration: underline;
}

.bpms-modal-actions {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    border-top: 2px solid #f0f0f0;
    position: sticky;
    bottom: 0;
    background: white;
}

.bpms-modal-actions .bpms-btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
}

/* No Services */
.bpms-no-services {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}

.bpms-no-services p {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
}

/* Form Styling */
.bpms-add-service-form {
    max-width: 700px;
}

.bpms-add-service-form label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.bpms-add-service-form input[type="text"],
.bpms-add-service-form input[type="number"],
.bpms-add-service-form select,
.bpms-add-service-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bpms-add-service-form input:focus,
.bpms-add-service-form select:focus,
.bpms-add-service-form textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bpms-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bpms-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.bpms-form-actions .primary {
    background: #2563eb !important;
}

.bpms-form-actions .primary:hover {
    background: #1d4ed8 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .bpms-services-grid {
        grid-template-columns: 1fr;
    }
    .bpms-form-row {
        grid-template-columns: 1fr;
    }
    .bpms-modal-content {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    .bpms-service-footer {
        flex-wrap: wrap;
    }
    .bpms-btn {
        flex-basis: calc(50% - 5px);
    }
}
