.tour-container {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

.tour-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #4CAF50; /* Green theme for "nature/assisted living" feel */
}

/* Emoji fix: Constrain size and align with text */
img.emoji {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em; /* Slight adjustment for better baseline alignment */
    margin-right: 0.2em; /* Optional spacing */
}

form {
    display: flex;
    flex-direction: column;
    position: relative; /* For overlay spinner */
}

.form-wrapper {
    max-width: 600px; /* Narrower than section */
    margin: 0 auto; /* Center it */
}

label {
    margin-top: 10px;
    font-weight: bold;
}

input, textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    margin-top: 20px;
    padding: 10px 20px; /* Padding for better sizing */
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: auto; /* Not full-width */
    max-width: 200px; /* Limit width */
    align-self: center; /* Center button */
}

button:hover {
    background-color: #45a049;
}

.thank-you-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
    border-radius: 4px;
    text-align: center;
}

/* Prettier form elements */
form input, form textarea {
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus, form textarea:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5); /* Subtle glow for accessibility */
    outline: none;
}

form textarea {
    min-height: 100px;
    resize: vertical;
}

form button {
    margin-top: 20px;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

form button:hover {
    background-color: #45a049;
    transform: scale(1.02);
}

/* Loading spinner */
.spinner {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #4CAF50;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Flatpickr custom styles */
.flatpickr-calendar {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.flatpickr-day.selected {
    background-color: #4CAF50 !important;
    border-color: #4CAF50 !important;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .tour-section {
        padding: 15px;
        margin: 20px;
    }

    .form-wrapper {
        max-width: 100%; /* Full width on mobile */
    }

    input, textarea, button {
        font-size: 14px;
    }

    button {
        max-width: 100%; /* Allow full width on small screens if needed */
    }
}