﻿/* ==========================================================================
   Christmas Meal Booking Styles
   ========================================================================== */
/*
	general useful classes 
*/
.cmb-center, .cmb-centre {
	text-align:center;
}
.cmb-red {
	color:red;
}

/* Public Layout Wrappers */
.cmb-form-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.cmb-capacity-banner {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

.cmb-expired-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    max-width: 600px;
    margin: 30px auto;
}

.cmb-section {
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.cmb-form-group {
    margin-bottom: 15px;
}

.cmb-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.cmb-form-group input[type=text], .cmb-form-group input[type=email], .cmb-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
}

/* Attending Guest Card Grids */
.cmb-guest-card {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-left: 5px solid #28a745;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
}

.cmb-guest-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e7e34;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
}

.cmb-course-section {
    margin-top: 15px;
    padding: 10px 0;
}

.cmb-course-section h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #444;
}

/* Custom Checkbox-Styled Radio Input Fields */
.cmb-radio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 5px 0;
}

.cmb-tick-label {
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.cmb-tick-label:hover {
    background: #f1f8f3;
    border-color: #a3d7b2;
}

.cmb-radio-grid .cmb-tick-label:last-child {font-style:italic}

/* Hide Native Inputs */
.cmb-tick-label input[type=radio] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    margin: 0;
}

/* Custom Box Graphic Elements */
.cmb-custom-tick {
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #b5b5b5;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

/* Checked State Changes styles */
.cmb-tick-label input[type="radio"]:checked ~ .cmb-custom-tick {
    background-color: #28a745;
    border-color: #28a745;
}

/* Draw White Tick Checks dynamically inside boxes */
.cmb-custom-tick::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cmb-tick-label input[type="radio"]:checked ~ .cmb-custom-tick::after {
    display: block;
}

.cmb-tick-label input[type="radio"]:checked ~ .cmb-label-text {
    font-weight: 600;
    color: #1e7e34;
}

/* Validation Response Boxes */
.cmb-error-box {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

.cmb-success-box {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #c3e6cb;
}

.cmb-submit-button {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}

.cmb-submit-button:hover {
    background: #218838;
}

/* ==========================================================================
   WordPress Admin Panel Dash Styles
   ========================================================================== */
.cmb-admin-wrap {
    margin-top: 20px;
}
.cmb-dashboard-grid {
    margin-bottom: 30px;
    border-bottom: 2px dashed grey;
}
.cmb-dashboard-grid h2 {
	cursor:pointer;
}
.cmb-dashboard-grid .ui-icon-triangle-1-e:after {
	content:"▼";
}
.cmb-dashboard-grid .ui-icon-triangle-1-s:after {
	content:"▲";
}
.cmb-dashboard-grid .ui-icon {
	float:right;
	text-indent:0;
}


.cmb-admin-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 20px;
    flex: 2;
    min-width: 320px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cmb-admin-card.utility-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #f4f6f6;
}
.cmb-admin-guest-list {
    margin: 0;
    padding-left: 15px;
}
.cmb-admin-guest-list li {
    margin-bottom: 6px;
}
.dietary-alert {
    color: #b52b2b;
    font-size: 11px;
    font-weight: 600;
}
.badge {
    background: #007cba;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 12px;
}

.cmb-table-title {
	display:flex;
	justify-content: space-between;
	align-items: center;
}

@media only screen and (max-width:1024px) {
	.cmb-form-container {
		padding:0;
		box-shadow:none;
		background:inherit;
	}
}
