.team6th-form-wrapper {
    background:#003982;
    color:#fff;
    padding:30px;
    border-radius:12px;
    max-width:900px;
    margin:30px auto;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
}
.team6th-form-wrapper h2 {
    color:#FFE627;
    text-align:center;
}
.team6th-logo {
    display:block;
    width:120px;
    margin:0 auto 20px;
}
.form-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:20px;
}
.team6th-form-wrapper label {
    display:block;
    margin-top:10px;
    font-weight:600;
}
.team6th-form-wrapper input,
.team6th-form-wrapper select {
    width:100%;
    padding:8px;
    margin-top:4px;
    border-radius:6px;
    border:none;
}
/* === Team6th Button (protected from theme overrides) === */
.team6th-form-wrapper button.team6th-submit,
.team6th-form-wrapper input[type="submit"].team6th-submit {
  background: #FFE627 !important;
  color: #003982 !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  margin-top: 25px !important;
  cursor: pointer !important;
  display: block !important;
  width: 100% !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.25s ease !important;
  box-shadow: none !important;
}

.team6th-form-wrapper button.team6th-submit:hover,
.team6th-form-wrapper input[type="submit"].team6th-submit:hover {
  background: #ffed6f !important;
  box-shadow: 0 0 8px rgba(255, 230, 39, 0.6) !important;
}

.team6th-form-wrapper button.team6th-submit:active,
.team6th-form-wrapper input[type="submit"].team6th-submit:active {
  background: #003982 !important;
  color: #FFE627 !important;
  transform: scale(0.98) !important;
}


.team6th-box {
    background:rgba(255,255,255,0.1);
    border:1px solid rgba(255,255,255,0.2);
    padding:15px;
    margin-top:20px;
    border-radius:8px;
}
.team6th-box legend {
    color:#FFE627;
    font-weight:bold;
    padding:0 8px;
}
.family-member {margin-bottom:10px;}

/* === Portion buttons === */
.portion-options {display:flex;gap:10px;margin-top:6px;}
.portion-options label {
    background:rgba(255,255,255,0.1);
    color:#fff;
    padding:6px 14px;
    border-radius:20px;
    font-weight:600;
    cursor:pointer;
    transition:all 0.25s ease;
}
.portion-options input[type="radio"] {display:none;}
.portion-options input[type="radio"]:checked + span {background:#FFE627;color:#003982;border-radius:20px;padding:6px 14px;}
.portion-options label:hover {background:rgba(255,230,39,0.3);}

/* === Dietary grid (FINAL FIX) === */
.team6th-form-wrapper .dietary-fieldset .multi-checkbox {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 25px !important;
  margin-top: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 5px 10px 10px 10px;
}
.team6th-form-wrapper .dietary-fieldset .multi-checkbox .diet-item {
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  width:calc(50% - 12px) !important;
  box-sizing:border-box !important;
  line-height:1.3 !important;
  color:#fff !important;
  font-weight:600 !important;
  writing-mode:horizontal-tb !important;
  white-space:nowrap !important;
}
.team6th-form-wrapper .dietary-fieldset .multi-checkbox .diet-item input[type="checkbox"] {
  accent-color:#FFE627;
  transform:scale(1.1);
  flex-shrink:0;
}
@media (max-width:700px){
  .team6th-form-wrapper .dietary-fieldset .multi-checkbox .diet-item{width:100%!important;}
}

/* Popup */
.team6th-popup {display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.7);z-index:9999;}
.team6th-popup-content {
    background:#fff;color:#003982;padding:30px;border-radius:12px;
    text-align:center;max-width:500px;margin:15% auto;
}
#popup-close {background:#003982;color:#FFE627;border:none;padding:10px 20px;border-radius:8px;cursor:pointer;}
/* --- Fix checkbox column width --- */
.team6th-form-wrapper .dietary-fieldset .multi-checkbox .diet-item {
  display: grid !important;
  grid-template-columns: 60px 1fr;   /* fixed checkbox column + flexible text */
  align-items: center !important;
  gap: 6px !important;
  width: calc(50% - 12px) !important;  /* two-column layout overall */
  box-sizing: border-box !important;
  line-height: 1.3 !important;
  color: #fff !important;
  font-weight: 600 !important;
  writing-mode: horizontal-tb !important;
  white-space: normal !important;
}

.team6th-form-wrapper .dietary-fieldset .multi-checkbox .diet-item input[type="checkbox"] {
  justify-self: center;      /* centre the checkbox in its 60 px cell */
  accent-color: #FFE627;
  transform: scale(1.1);
}
/* --- Align dietary dropdown and checkbox list side by side --- */
.dietary-row {
  display: grid;
  grid-template-columns: 1fr 2fr; /* dropdown smaller, box larger */
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

#dietary_options.dietary-fieldset {
  margin-top: 0;
  align-self: start;
}

@media (max-width: 768px) {
  .dietary-row {
    grid-template-columns: 1fr; /* stack on smaller screens */
  }
}

