/* === ВИДЖЕТ БРОНИРОВАНИЯ (для шорткода [prime_booking_widget]) === */
#services-container { max-width: 100%; margin: 0 auto; }
.hall-section { margin-bottom: 2rem; }
.hall-section h3 { margin-top: 0; }
.service-item { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 1rem 1.5rem; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 0.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: transform 0.2s; }
.service-item:hover { transform: translateY(-2px); }
.service-details p { margin: 0; }
.service-details .duration { color: #666; font-size: 0.9rem; margin-top: 0.25rem; }
.book-button { background-color: #333; color: #fff; border: none; padding: 0.7rem 1.5rem; border-radius: 30px; font-weight: 600; cursor: pointer; transition: background-color 0.2s, transform 0.1s; }
.book-button:hover { background-color: #000; transform: scale(1.05); }

/* Модальное окно */
.hidden { display: none !important; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 99999; animation: fadeIn 0.3s ease; }
.modal { background: #fff; padding: 2rem; border-radius: 16px; width: 90%; max-width: 550px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.2); animation: slideUp 0.3s ease; color: #333; text-align: left; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-button { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; background: #f0f0f0; border-radius: 50%; border: none; font-size: 1.5rem; line-height: 32px; text-align: center; cursor: pointer; color: #555; transition: all 0.2s; z-index: 10; }
.close-button:hover { background: #e0e0e0; color: #000; }
#modal-service-info { background: #f7f7f7; padding: 0.8rem 1rem; border-radius: 8px; margin-bottom: 1.5rem; font-weight: 500; color: #555; border-left: 4px solid #333; }

/* Выбор даты/времени */
.date-nav { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.date-nav::-webkit-scrollbar { display: none; }
.date-nav button { background: #fff; border: 2px solid #eee; border-radius: 12px; padding: 0.6rem 1.2rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s; color: #333; }
.date-nav button.selected { background: #333; color: #fff; border-color: #333; }
.timeslots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); gap: 0.8rem; margin-top: 1.5rem; }
.timeslot { padding: 0.8rem 0.5rem; text-align: center; border-radius: 10px; border: 2px solid #eee; font-weight: 500; font-size: 0.95rem; transition: all 0.2s; color: #333; }
.timeslot.available { background: #fff; cursor: pointer; }
.timeslot.available:hover { border-color: #333; }
.timeslot.booked { background: #f9f9f9; color: #ccc; border-color: transparent; cursor: not-allowed; text-decoration: line-through; }
.timeslot.selected { background: #333; color: white; border-color: #333; transform: scale(1.05); }

/* Форма */
#booking-form input, #booking-form textarea { width: 100%; padding: 1rem; margin-bottom: 1rem; border: 2px solid #eee; border-radius: 10px; font-size: 1rem; box-sizing: border-box; color: #333; }
#confirm-booking-button { width: 100%; background-color: #000; color: white; padding: 1rem; border: none; border-radius: 12px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background-color 0.2s; }
#confirm-booking-button:hover { background-color: #333; }
.input-error { border-color: #e74c3c !important; background-color: #fff5f5; }

/* === СТРАНИЦА УСПЕХА (для шорткода [prime_booking_success]) === */
/* Применяется к body, если мы на странице успеха */
body.page-success {
    background-color: #F3B70E !important; /* Принудительно перекрываем фон темы */
}
/* Обертка, чтобы изолировать наши стили от стилей темы WP */
.success-container-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.success-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
    color: #000;
}
#success-header {
    font-size: 1.6rem;
    line-height: 1.3;
    margin: 0 0 2rem 0;
    color: #000;
}

/* Крестик выхода */
.success-close-button {
    position: fixed; top: 20px; right: 20px; width: 40px; height: 40px; background: rgba(0,0,0,0.1); color: #000 !important; border-radius: 50%; text-align: center; line-height: 40px; font-size: 24px; text-decoration: none !important; transition: background 0.2s, transform 0.2s; z-index: 1000;
}
.success-close-button:hover { background: rgba(0,0,0,0.2); transform: scale(1.1); }

/* Блоки на странице успеха */
.warning-block, .success-details-card, .location-block {
    background: #fff;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    margin-bottom: 1.5rem;
    color: #333;
}
.warning-block { border-left: 8px solid #e74c3c; }
.warning-block p, .success-details-card p { margin: 0.8rem 0; line-height: 1.5; }
.insta-link { color: #E1306C; font-weight: 700; text-decoration: none; }
.important-note { color: #e74c3c !important; font-weight: 700; }

/* Копирование карты */
.card-copy-wrapper { display: flex; align-items: stretch; margin: 1rem 0; }
.card-number { font-family: 'Courier New', monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: 1px; color: #333; background: #f9f9f9; padding: 1rem; border-radius: 10px 0 0 10px; border: 2px dashed #ddd; border-right: none; text-align: center; flex-grow: 1; word-break: break-all; margin: 0 !important; }
.copy-btn { background: #eee; border: 2px dashed #ddd; border-left: none; border-radius: 0 10px 10px 0; padding: 0 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.copy-btn:hover { background: #e0e0e0; }

/* Локация */
.flex { display: flex; align-items: flex-start; }
.gap-4 { gap: 1rem; }
.aw-icon-container { flex-shrink: 0; padding-top: 2px; }
.location-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.25rem; text-decoration: underline; }
.aw-description { font-size: 0.95rem; color: #555; line-height: 1.4; }
.map-container { margin-top: 1rem; border-radius: 12px; overflow: hidden; border: 1px solid #eee; }