/* Original base styles */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 20px;
    background-color: white; /* Changed to white */
    color: #333;
}

h1 {
    margin-bottom: 20px;
}

form {
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid black;
    padding: 8px;
}

th {
    background-color: #f2f2f2;
}

button {
    margin-top: 20px;
}

/* Original checkbox visibility styles */
td[contenteditable="true"] {
    cursor: pointer;
    user-select: none;
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
}

td[contenteditable="true"]:hover {
    background-color: #f5f5f5;
}

td[contenteditable="true"]:focus {
    outline: none;
}

td[contenteditable="true"]:empty::before {
    content: "☐";
}

td[contenteditable="true"][data-checked="true"]::before {
    content: "☑";
}


/* New Decorative Styles (adapted for white background) */

/* Color Palette from Logo:
   Red: #D2232A
   Gold/Brown: #A18247
*/

.page-header {
    background-color: white; /* Changed to white */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Slightly lighter shadow for white background */
}

.logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

h1 {
    color: #D2232A; /* Red from logo */
    font-size: 2.5em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #A18247; /* Gold from logo */
    font-size: 1.8em;
    margin-top: 20px;
    margin-bottom: 15px;
}

.form-container {
    background-color: white; /* Changed to white */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Slightly lighter shadow for white background */
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 80%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    max-width: 300px;
}

/* Enhanced Table styling */
.availability-table, .results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #f9f9f9; /* Retained light grey for table background to differentiate from page background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    border: none;
}

.availability-table th, .results-table th {
    background-color: #A18247; /* Gold header */
    color: white;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #90743f;
}

.availability-table td, .results-table td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
}

.availability-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.availability-table td[bgcolor="grey"] {
    background-color: #e0e0e0;
}

/* Enhanced Checkbox styling */
input[type="checkbox"] {
    transform: scale(1.2);
    margin-top: 5px;
}

.submit-button, .download-button {
    background-color: #D2232A;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 30px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.submit-button:hover, .download-button:hover {
    background-color: #bf1e23;
}

.results-container {
    background-color: white; /* Changed to white */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 30px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
        background-color: white; /* Explicitly set background to white for mobile */
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    .form-container, .results-container, .page-header {
        padding: 15px;
        margin-bottom: 15px;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"] {
        width: 95%;
    }

    .scrollable-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .availability-table th, .availability-table td,
    .results-table th, .results-table td {
        padding: 8px 4px;
        font-size: 0.9em;
    }

    .submit-button, .download-button {
        padding: 10px 20px;
        font-size: 1em;
    }
}