/* contact Form  */

/* Mobile-first base: full-width, never wider than the viewport */
.contact-form {
	box-sizing: border-box;
	clear: both;
	float: none;
	margin: 0 auto;
	width: 100%;
	max-width: 500px;
	padding: 15px;
	display: block;
	border: 10px solid #ffd700;
	border-radius: 16px;
	background-color: #FFC;
	text-align: center;
}

/* Make every element inside the form respect the box model
   so padding/borders never push it wider than its container */
.contact-form,
.contact-form * {
    box-sizing: border-box;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    max-width: 250px;
    border: 1px solid #CEE1E8;
    margin-bottom: 10px;
    padding: 4px;
	font-size: 12px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border: 1px solid #AFCDD8;
    background-color: #EBF2F4;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form label {
    display: block;
}

.contact-form .required {
    font-weight: bold;
    color: #F00;
}
/* end contact Form */
.contact-form .submit-btn {
    background: blue;
    color: white;
    font-size: 1.1em;
    padding: 14px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    max-width: 350px;
}

/* Attendee table (bar7.php) */
.booking-table-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    overflow-x: auto; /* lets the table scroll sideways instead of
                          forcing the whole page to widen */
    -webkit-overflow-scrolling: touch;
}

.booking-table {
    border-collapse: collapse;
    font-family: sans-serif;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    table-layout: fixed; /* keeps columns proportional instead of
                             fixed-pixel widths */
}

.booking-table th,
.booking-table td {
    padding: 5px;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.booking-table th:first-child,
.booking-table td:first-child {
    width: 68%;
}

.booking-table th:last-child,
.booking-table td:last-child {
    width: 32%;
}

.booking-table-error {
    padding: 20px;
    text-align: center;
}

@media screen and (max-width: 480px) {
    .booking-table-wrapper {
        padding: 5px;
    }

    .booking-table th,
    .booking-table td {
        font-size: 0.9em;
        padding: 4px;
    }
}

/* Small phones: give the form a bit less internal padding
   so more space is left for the inputs */
@media screen and (max-width: 480px) {
    .contact-form {
        max-width: 350px;
        padding: 10px;
        margin-top: 5px;
        margin-bottom: 15px;
    }

    .contact-form .submit-btn {
        background: #0066cc;
        margin-top: 5px;
        margin-bottom: 15px;
    }
}

/* Tablets: a bit more breathing room than phones, still centered
   and never touching the screen edges */
@media screen and (min-width: 481px) and (max-width: 1024px) {
    .contact-form {
        width: 80%;
        max-width: 500px;
    }
}

/* Desktop: restore a centered, fixed-width layout instead of the
   old float + percentage-margin combination, which could overflow */
@media screen and (min-width: 1025px) {
    .contact-form {
        width: 50%;
        max-width: 500px;
    }
}
