/* Service Booking Manager - Public Styles */

/* Categories Grid */
.sbm-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.sbm-category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.sbm-category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.sbm-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sbm-category-content {
    padding: 20px;
    text-align: center;
}

.sbm-category-content h3 {
    margin: 0 0 16px 0;
    font-size: 1.4em;
    color: #333;
}

/* Services Grid */
.sbm-services-container {
    margin: 30px 0;
}

.sbm-category-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sbm-category-header h2 {
    margin: 0;
    font-size: 2em;
    color: #333;
}

.sbm-back-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.sbm-back-link:hover {
    text-decoration: underline;
}

.sbm-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.sbm-service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.sbm-service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.sbm-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sbm-service-content {
    padding: 20px;
}

.sbm-service-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.5em;
    color: #333;
}

.sbm-service-content p {
    margin: 0 0 16px 0;
    color: #666;
    line-height: 1.6;
}

/* Service Detail */
.sbm-service-detail {
    margin: 30px 0;
}

.sbm-breadcrumb {
    margin-bottom: 24px;
    color: #666;
    font-size: 0.9em;
}

.sbm-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.sbm-breadcrumb a:hover {
    text-decoration: underline;
}

.sbm-breadcrumb span {
    margin: 0 8px;
}

.sbm-service-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.sbm-service-image-large {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.sbm-service-image-large img {
    width: 100%;
    height: auto;
}

.sbm-service-info h1 {
    margin: 0 0 20px 0;
    font-size: 2.5em;
    color: #333;
}

.sbm-service-description {
    margin-bottom: 24px;
    color: #666;
    line-height: 1.8;
}

.sbm-service-benefits {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.sbm-service-benefits h3 {
    margin: 0 0 16px 0;
    font-size: 1.3em;
    color: #333;
}

.sbm-service-benefits ul {
    margin: 0;
    padding-left: 24px;
}

.sbm-service-benefits li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.6;
}

/* Packages */
.sbm-packages-section {
    margin-top: 40px;
}

.sbm-packages-section h2 {
    margin: 0 0 24px 0;
    font-size: 2em;
    color: #333;
}

.sbm-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.sbm-package-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sbm-package-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.1);
}

.sbm-package-header {
    margin-bottom: 16px;
    text-align: center;
}

.sbm-package-header h3 {
    margin: 0 0 12px 0;
    font-size: 1.5em;
    color: #333;
}

.sbm-package-price {
    font-size: 2em;
    font-weight: bold;
    color: #0073aa;
}

.sbm-package-description {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
    min-height: 60px;
}

/* Booking Form */
.sbm-booking-form-container {
    max-width: 600px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.sbm-booking-form-container h2 {
    margin: 0 0 24px 0;
    font-size: 2em;
    color: #333;
    text-align: center;
}

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

.sbm-form-row {
    display: flex;
    flex-direction: column;
}

.sbm-form-row label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.sbm-form-row .required {
    color: #d63638;
}

.sbm-form-row input[type="text"],
.sbm-form-row input[type="email"],
.sbm-form-row input[type="tel"],
.sbm-form-row input[type="date"],
.sbm-form-row select,
.sbm-form-row textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.sbm-form-row input:focus,
.sbm-form-row select:focus,
.sbm-form-row textarea:focus {
    outline: none;
    border-color: #0073aa;
}

/* Buttons */
.sbm-button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.sbm-button:hover {
    background: #005a87;
    color: #fff;
}

.sbm-button-primary {
    background: #0073aa;
}

.sbm-button-primary:hover {
    background: #005a87;
}

/* Messages */
.sbm-success-message {
    padding: 16px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 6px;
    margin: 16px 0;
}

.sbm-error-message {
    padding: 16px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 6px;
    margin: 16px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sbm-categories-grid,
    .sbm-services-grid,
    .sbm-packages-grid {
        grid-template-columns: 1fr;
    }

    .sbm-service-header {
        grid-template-columns: 1fr;
    }

    .sbm-category-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sbm-booking-form-container {
        padding: 20px;
    }
}
