/* SingLun Appointment Booking Styles */

.singlun-booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.singlun-service-selection h3,
.singlun-booking-form h3 {
    margin-bottom: 20px;
    color: #333;
}

.singlun-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.singlun-service-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.singlun-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.singlun-service-image {
    width: 100%;
    min-height: 200px;
    max-height: 300px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.singlun-service-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    object-position: center;
}

.singlun-service-content {
    padding: 20px;
}

.singlun-service-content h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.singlun-service-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9em;
    line-height: 1.5;
}

.singlun-service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.singlun-service-price {
    font-size: 1.3em;
    font-weight: bold;
    color: #0073aa;
}

.singlun-service-duration {
    color: #666;
    font-size: 0.9em;
}

.singlun-select-service {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
}

.singlun-select-service:hover {
    background: #005a87;
}

.singlun-booking-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.singlun-back-to-services {
    margin-bottom: 20px;
}

.singlun-form-group {
    margin-bottom: 20px;
}

.singlun-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.singlun-form-group .required {
    color: #d63638;
}

.singlun-form-group input[type="text"],
.singlun-form-group input[type="email"],
.singlun-form-group input[type="tel"],
.singlun-form-group input[type="date"],
.singlun-form-group select,
.singlun-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.singlun-form-group input:focus,
.singlun-form-group select:focus,
.singlun-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.singlun-form-group .optional {
    color: #666;
    font-weight: normal;
    font-size: 0.9em;
}

.singlun-time-slots {
    margin-top: 10px;
}

.singlun-time-placeholder {
    color: #666;
    font-style: italic;
    padding: 15px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 4px;
}

.singlun-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.singlun-time-slot {
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    text-align: center;
}

.singlun-time-slot:hover {
    border-color: #0073aa;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.15);
}

.singlun-time-slot.selected {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.singlun-time-slot:disabled {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.singlun-time-slot .slot-count {
    display: block;
    font-size: 0.75em;
    font-weight: normal;
    margin-top: 4px;
    opacity: 0.8;
}

.singlun-time-slot.selected .slot-count {
    opacity: 0.9;
}

.singlun-submit-booking {
    width: 100%;
    padding: 15px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.singlun-submit-booking:hover {
    background: #005a87;
}

.singlun-submit-booking:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.singlun-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

.singlun-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.singlun-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.singlun-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading state */
.singlun-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Service Image Clickable */
.singlun-service-image-clickable {
    cursor: pointer;
    position: relative;
}

.singlun-service-image-clickable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.singlun-service-image-clickable:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

/* Service Modal */
.singlun-service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.singlun-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.singlun-modal-content {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.singlun-modal-body {
    display: flex;
    flex-direction: row;
    max-height: 90vh;
}

.singlun-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.singlun-modal-close:hover {
    background: #fff;
    color: #000;
}

.singlun-modal-image-container {
    width: 45%;
    min-width: 300px;
    max-height: 90vh;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.singlun-modal-image-container img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
    object-fit: contain;
    object-position: center;
}

.singlun-modal-info {
    width: 55%;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.singlun-modal-info h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.5em;
}

.singlun-modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.singlun-modal-meta .singlun-service-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #0073aa;
}

.singlun-modal-meta .singlun-service-duration {
    color: #666;
    font-size: 1em;
}

.singlun-modal-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1em;
    flex: 1;
}

.singlun-modal-description p {
    margin-bottom: 1em;
}

.singlun-modal-description ul,
.singlun-modal-description ol {
    margin-left: 20px;
    margin-bottom: 1em;
}

.singlun-modal-description h1,
.singlun-modal-description h2,
.singlun-modal-description h3,
.singlun-modal-description h4,
.singlun-modal-description h5,
.singlun-modal-description h6 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.singlun-modal-description img {
    max-width: 100%;
    height: auto;
}

.singlun-modal-description a {
    color: #2271b1;
    text-decoration: underline;
}

.singlun-modal-description a:hover {
    color: #135e96;
}

.singlun-modal-book-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .singlun-services-grid {
        grid-template-columns: 1fr;
    }
    
    .singlun-booking-form {
        padding: 20px;
    }
    
    .singlun-time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .singlun-time-slot {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    .singlun-modal-content {
        max-width: 95%;
        margin: 2.5vh auto;
        max-height: 95vh;
    }
    
    .singlun-modal-info {
        padding: 20px;
    }
    
    .singlun-modal-body {
        flex-direction: column;
    }
    
    .singlun-modal-image-container {
        width: 100%;
        min-width: auto;
        max-height: 300px;
    }
    
    .singlun-modal-image-container img {
        max-height: 300px;
    }
    
    .singlun-modal-info {
        width: 100%;
    }
}

