body {
    font-family: Arial, sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    
    /* --- СТИЛИ ДЛЯ АДАПТИВНОГО ФОНОВОГО ИЗОБРАЖЕНИЯ --- */
    background-image: url('img.jpg'); /* Укажи имя твоего файла */
    
    /* Ключевое свойство для адаптивности: */
    background-size: cover; /* Гарантирует, что изображение ПОЛНОСТЬЮ покроет область body, обрезая лишнее */
    
    background-position: center center; /* Центрирует изображение, чтобы важные части были видны */
    background-repeat: no-repeat; 
    background-attachment: fixed; /* Фиксирует фон, чтобы он не прокручивался вместе с контентом */
    /* --- КОНЕЦ СТИЛЕЙ --- */
}

/* Затемняющий оверлей для лучшей читаемости текста на фоне */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
}

/* =================================================== */
/* === МЕДИАЗАПРОС: Стили только для ПК (больших экранов) === */
/* =================================================== */
@media (min-width: 992px) {
    /* Если ширина экрана больше 992 пикселей (типичный ПК/ноутбук) */
    body {
        /* ИЗМЕНЕНИЕ 1: Фоновое изображение будет полностью видно */
        background-size: contain;
	background-repeat: repeat; 
        
        /* ИЗМЕНЕНИЕ 2: Смещаем фон влево */
        background-position: left center; 
        
        /* Добавляем базовый фон для остального экрана */
        background-color: #f4f4f9; 
    }
    
    /* Убираем затемняющий оверлей на ПК, чтобы не затемнять фон (по желанию) */
    body::before {
        background-color: transparent;
    }
    
    /* Чтобы центрированный контейнер был лучше виден, сделаем его менее прозрачным */
    .container {
        background-color: rgba(255, 255, 255, 0.85);
    }
}


.container {
    /* --- ИЗМЕНЕНИЕ: Полупрозрачный белый фон (rgba) --- */
    background-color: transparent;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0); 
    width: 100%;
    max-width: 400px;
    text-align: center;
    z-index: 1; 
}

h1 {
    color: #5d5d81;
    margin-bottom: 25px;
    font-size: 1.5em;
}

.guest-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #4a4a4a;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

.submit-button {
    background-color: #79a6d2;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #5d8ab5;
}

/* Сообщения */
.success-message,
.error-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Стиль для страницы списка (list.php) */
.list-container {
    text-align: left;
    max-width: 600px;
}

.guest-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.guest-table th, .guest-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.guest-table th {
    background-color: #f2f2f2;
    color: #333;
}

.total-count {
    font-weight: bold;
    margin-top: 20px;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 4px;
}