form {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;
    color: #333;
    margin-left: -4%;
}

form > fieldset {
    background-color: #f8f8f8;
    border-radius: 12px;
    flex: 1 1 400px;
    font-size: 1em;
    padding: 20px;
    margin: 0px 0px 20px 20px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

fieldset#optGroup {
    flex: 1 1 200px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
}

fieldset#optGroup label {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 1.1em;
}

div.formEntry {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;
    margin: 12px 6px;
    align-items: center;
    gap: 8px;
}

div.formEntry > * {
    -webkit-flex: 1 1 200px;
    flex: 1 1 200px;
}

div.formEntry label {
    margin-bottom: 5px;
    color: #4a4a4a;
    font-weight: 500;
    font-size: 1.1em;
    display: flex;
    align-items: center; 
    height: 100%;
}

div#textboxEntry {
    margin-right: 28px;
    display: flex;
    flex-direction: column; 
    gap: 8px;
}

div#contactSection {
    width: 50%;
}

div#bookingSection {
    margin-left: 70px;
    display: flex;
    justify-content: center;
}

div.buttons {
    text-align: center;
    width: 100%;
}

input[type='text'], 
input[type='tel'],
input[type='date'],
select, 
textarea {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
}

input[type='text']:hover, 
input[type='tel']:hover, 
input[type='date']:hover,
select:hover,
textarea:hover {
    border-color: #aaa;
}

input[type='text']:focus, 
input[type='tel']:focus,
input[type='date']:focus,
select:focus,  
textarea:focus {
    border-color: brown;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(165, 42, 42, 0.1);
}

input[type='radio'] {
    width: 18px;
    height: 18px;
    margin: 0 8px;
    accent-color: brown;
    vertical-align: middle;
}

input[type='submit'], input[type='reset'] {
    font-size: 1.1em;
    padding: 12px 24px;
    margin: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type='submit'] {
    background-color: rgb(42, 126, 165);
    color: white;
}

input[type='submit']:hover {
    background-color: #8b0000;
    transform: scale(1.1);
}

input[type='reset'] {
    background-color: #666;
    color: white;
}

input[type='reset']:hover {
    background-color: #4a4a4a;
    transform: scale(1.1);
}

input:focus:valid {
    border-color: #4CAF50;
    background-color: white;
}

input:focus:invalid {
    border-color: #f44336;
    background-color: white;
}

legend {
    background-color: rgb(1, 89, 204);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

textarea {
    height: 120px;
    width: 100%;
    resize: vertical;
    font-family: inherit;
}

em {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
    display: block;
}