.co-visit-planner-form {
    max-width: 900px;
    margin: 2em auto;
    padding: 2em 2em 1.7em 2em;
    background: #f7fafd;
    border-radius: 14px;
    box-shadow: 0 4px 28px rgba(51, 100, 160, .10), 0 0 0 1px #e0e6f0;
    border: none;
    font-family: "Segoe UI", "Roboto", Arial, sans-serif;
}

/* Two-column layout for fields */
.co-visit-planner-form .fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1em 2.1em;
}

.co-visit-planner-form p {
    margin: 0 0 0.7em 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.22em;
}

.co-visit-planner-form label {
    font-weight: 500;
    color: #346ab3;
    letter-spacing: 0.01em;
    font-size: 1.05em;
    margin-bottom: 0.1em;
}

.co-visit-planner-form input,
.co-visit-planner-form select {
    background: #fff;
    border: 1.5px solid #bad5f5;
    color: #0d2237;
    border-radius: 7px;
    padding: 0.6em 0.65em;
    font-size: 1em;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-shadow: 0 1px 7px rgba(51, 100, 160, 0.04);
}

/* Dropdown styling: classic arrow + hover */
.co-visit-planner-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
      linear-gradient(45deg, transparent 49%, #346ab3 51%),
      linear-gradient(135deg, #346ab3 51%, transparent 49%);
    background-position:
      calc(100% - 16px) calc(50% - 3px),
      calc(100% - 11px) calc(50% - 3px);
    background-size:
      5px 5px,
      5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.2em;
    cursor: pointer;
}
.co-visit-planner-form select:focus,
.co-visit-planner-form input:focus {
    border-color: #2679c8;
    box-shadow: 0 0 0 2px #cbe7fcbb;
}

/* Button */
.co-visit-planner-form button[type="submit"] {
    padding: 0.88em 2.1em;
    font-size: 1.07em;
    background: linear-gradient(90deg, #085ac8 0%, #51a7fc 98%);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 16px -2px #2c478042;
    margin-top: 1.3em;
    margin-bottom: 0.7em;
    transition: background .17s, box-shadow .22s, transform .16s;
    grid-column: span 2;
}
.co-visit-planner-form button[type="submit"]:hover {
    background: linear-gradient(90deg, #1e7cec 0%, #53bbfa 100%);
    box-shadow: 0 6px 28px -6px #3263a052;
    transform: translateY(-2px) scale(1.02);
}

/* Conditional fields (across both columns) */
.conditional-field, .notice-success {
    grid-column: span 2;
}

.conditional-field label {
    color: #266a94;
}

/* Notice */
.notice-success {
    background: linear-gradient(90deg, #e0fbee 90%, #b3e7f8 100%);
    color: #275c2c;
    border: 1px solid #b2e3ca;
    padding: 1em 1.4em;
    font-size: 1.06em;
    font-weight: 500;
    border-radius: 6px;
    margin-bottom: 1.2em;
    box-shadow: 0 2px 10px rgba(52, 200, 130, 0.06);
}

/* Responsive: stack fields on mobile */
@media (max-width: 850px) {
    .co-visit-planner-form .fields-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .co-visit-planner-form {
        padding: 1em 0.4em;
    }
}
/*.conditional-field {
  max-height: 0 !important;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.2s, visibility 0s 0.4s;
  margin-bottom: 0;
}
.conditional-field.is-visible {
  max-height: 200px !important;
  opacity: 1;
  visibility: visible;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.2s, visibility 0s 0s;
  margin-bottom: 1em;
}*/
.form-section {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 28px rgba(51, 100, 160, 0.10), 0 0 0 1px #e3e7ea;
    margin: 2.2em 0;
    padding: 2em 2em 1.2em 2em;
    transition: box-shadow 0.18s, border 0.2s;
}
.form-section h2 {
    margin-top: 0;
    margin-bottom: 1.4em;
    font-size: 1.35em;
    color: #244acc;
    letter-spacing: 0.01em;
    font-weight: 700;
}
@media (max-width: 700px) {
    .form-section {
        padding: 1.1em 0.4em 0.8em 0.4em;
        margin: 1.1em 0;
    }
}
.fields-grid .person-row {
    grid-column: span 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2em 1.5em;
    align-items: flex-end;
    margin: 0.5em 0 1.2em 0;
}
.fields-grid .person-row-title {
    font-weight: 700;
    color: #1860a9;
    width: 72px;
    padding-right: 1em;
}
.fields-grid .person-row label {
    color: #346ab3;
    font-weight: 500;
    margin-right: 1.2em;
}
@media (max-width: 900px) {
    .fields-grid .person-row {
        flex-direction: column;
        gap: 0.4em 0;
    }
    .fields-grid .person-row-title {
        width: auto;
        padding-right: 0;
        margin-bottom: 0.4em;
    }
}
.person-block {
    margin: 2.1em 0 0.8em 0;
    padding: 0.7em 0 0.8em 0;
    border-bottom: 1px solid #f0f4fa;
}

.person-block-title {
    font-size: 1.17em;
    color: #1456b3;
    font-weight: bold;
    margin-bottom: 0.3em;
}

.person-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-left: 1.3em;
}

.person-fields label {
    color: #346ab3;
    font-weight: 500;
}

/* To make the bottom border invisible for the last block: */
.person-block:last-of-type {
    border-bottom: none;
}

@media (max-width: 900px) {
    .person-fields {
        margin-left: 0.6em;
    }
}
.horizontal-person-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4em 0;
    margin: 2em 0 2em 0;
}
.horizontal-person-table .header-row,
.horizontal-person-table .person-row {
    display: grid;
    grid-template-columns: 110px 1fr 1fr 1fr;
    align-items: center;
    gap: 1.2em;
}
.horizontal-person-table .header-row {
    font-weight: bold;
    color: #1456b3;
    font-size: 1.01em;
    margin-bottom: 0.2em;
}
.horizontal-person-table .person-row {
    background: #f7fafd;
    border-radius: 10px;
    box-shadow: 0 1px 6px #adc3f316;
    transition: box-shadow 0.14s;
    margin-bottom: 0.25em;
}
.horizontal-person-table .person-name {
    font-weight: 600;
    color: #1953a7;
    font-size: 1.06em;
}
.horizontal-person-table input,
.horizontal-person-table select {
    font-size: 1em;
    width: 98%;
    margin-top: 0.1em;
    border-radius: 7px;
    border: 1.5px solid #bad5f5;
    padding: 0.58em 0.7em;
    background: #fff;
}

@media (max-width: 850px) {
    .horizontal-person-table .header-row,
    .horizontal-person-table .person-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .horizontal-person-table .header-row div,
    .horizontal-person-table .person-row div {
        margin-bottom: 0.3em;
    }
    .horizontal-person-table input,
    .horizontal-person-table select {
        width: 99%;
    }
}
.horizontal-person-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4em 0;
    margin: 2em 0 2em 0;
}
.horizontal-person-table .person-row {
    display: grid;
    grid-template-columns: 90px 1fr 1fr 1fr;
    gap: 0.5em;
    align-items: center;
    background: #f7fafd;
    border-radius: 10px;
    min-height: 54px;
    padding: 0.9em 0.5em 0.9em 0.8em;
    margin-bottom: 0.5em;
}
.horizontal-person-table .person-label {
    font-weight: 700;
    color: #1456b3;
    font-size: 1.08em;
    min-width: 78px;
}
.horizontal-person-table label {
    color: #346ab3;
    font-weight: 500;
    margin-bottom: 0.17em;
    font-size: 1em;
    display: block;
}
.horizontal-person-table input,
.horizontal-person-table select {
    font-size: 1em;
    width: 100%;
    margin-top: 0.18em;
    border-radius: 7px;
    border: 1.5px solid #bad5f5;
    padding: 0.55em 0.8em;
    background: #fff;
}
@media (max-width: 900px) {
    .horizontal-person-table .person-row {
        grid-template-columns: 1fr;
        gap: 0.5em 0;
        padding: 1.2em 0.2em 1.3em 0.7em;
    }
    .horizontal-person-table .person-label {
        min-width: 0;
        margin-bottom: 0.25em;
    }
}
.co-visit-schedule {
    max-width: 500px;      /* Narrower for mobile/tablet/readability */
    margin: 2.2em auto;
    background: #f8fcfd;
    border-radius: 18px;
    padding: 1.4em 1.2em 1.7em 1.2em;
    box-shadow: 0 4px 22px 0 #2081ec0b;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}
@media (max-width:700px){
    .co-visit-schedule {
        max-width: calc(100vw - 12px) !important;
        margin: 0.6em 0.2em;
        padding: 0.65em 0.6em 1.1em 0.6em;
    }
}

.co-visit-schedule h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: #181d24;
    margin-bottom: 0.4em;
}
.co-visit-schedule h3 {
    font-size: 2em;
    font-weight: 700;
    color: #20242a;
    margin: 0.2em 0 0.9em 0;
}
.co-visit-schedule .schedule-day {
    margin-top: 2em;
    margin-bottom: 2em;
}
.co-visit-schedule .day-label {
    color: #1976D2;
    font-size: 1.55em;
    font-weight: 700;
    margin: 0 0 0.8em 0;
    /* can be a h4 too */
}
.co-visit-schedule .event-label {
    font-size: 1.1em;
    font-weight: 700;
    color: #222735;
}
.co-visit-schedule ul {
    list-style: none;
    padding-left: 0;
    margin: 0.2em 0 0 0;
}
.co-visit-schedule li {
    font-size: 1.2em;
    color: #27314a;
    margin-bottom: 0.3em;
    line-height: 1.52;
}

.co-visit-schedule .person-row {
    margin: 0.27em 0 0.43em 1.2em;
    font-size: 1.15em;
    color: #1f2735;
}

@media (max-width: 700px) {
    .co-visit-schedule {
        box-shadow: none;
        padding: 1.2em 1em;
        border-radius: 12px;
        margin: 1em 0.32em;
    }
    .co-visit-schedule h2 { font-size: 1.35em;}
    .co-visit-schedule h3 { font-size: 1.13em;}
    .co-visit-schedule .day-label { font-size: 1.07em;}
}
.schedule-day.today-highlight {
    background: #e9f4fb;
    border-radius: 14px;
    box-shadow: 0 2px 12px #85c5f443;
    padding: 2em 1.5em 1.4em 1.5em;
    transition: background 0.2s;
}
.schedule-day.today-highlight .day-label {
    color: #1654c8 !important;
}
@media (max-width: 700px) {
    .schedule-day.today-highlight {
        padding: 1.1em 0.8em 1em 0.8em;
    }
}
.schedule-day.today-highlight {
    background: #e0f3ff !important; /* Lighter/brighter */
    border: 2.5px solid #2196f3;
    box-shadow: 0 6px 36px #2196f344;
    position: relative;
    z-index: 2;
    transition: background 0.25s, border 0.2s;
}
.schedule-day.today-highlight .day-label {
    color: #1160cb !important;
    text-shadow: 0 2px 12px #aaddff7c;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.schedule-day.today-highlight::after {
    content: "Today";
    position: absolute;
    top: 18px;
    right: 24px;
    background: #2297f9;
    color: #fff;
    font-size: 1em;
    border-radius: 6px;
    padding: 0.18em 0.68em;
    box-shadow: 0 1px 6px #2297f94d;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.schedule-day ul {
  margin-bottom: 0.7em;
}
@media (max-width: 700px) {
  .schedule-title-heading { font-size: 0.97em; }
}
.schedule-title-heading {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    letter-spacing: 0.07em;
    color: #2196f3;
    text-transform: uppercase;
    font-size: 1.11em;
    margin: 2.1em 0 0.84em 0;
    border-left: 6px solid #2196f3;
    padding-left: 0.7em;
    background: #eaf4ff;
    display: inline-block;
}
.schedule-time {
    color: #20588f;
    font-size: 1em;
    padding-left: 0.7em;
    font-weight: 700;
}
.schedule-emoji {
    font-size: 1.13em;
    margin-left: 0.22em;
    vertical-align: baseline;
}
.event-label {
    font-weight: 900;
    font-size: 1.13em;
    letter-spacing: 0.01em;
}
.person-row {
    margin-left: 1.4em !important;
    font-size: 0.97em !important;
    color: #1f2735 !important;
    margin-top: 0.10em !important;
}

/* Tighter, more consistent section spacing */
.horizontal-person-table {
  margin: 0.6em 0 0.6em 0 !important;
}
.form-section {
  margin: 1em 0;
  padding: 1.2em 2em 0.8em 2em;
}
.section-header {
  grid-column: 1/-1;
  font-weight: bold;
  color: #2860a8;
  margin: 0.4em 0 0.7em 0;
  font-size: 1.08em;
}

.fields-grid.alt-address-row {
  display: grid;
  gap: 2em;
  align-items: end;
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Stack on small screens */
@media (max-width: 700px) {
  .fields-grid.alt-address-row {
    grid-template-columns: 1fr;
  }
}

.fields-grid.alt-address-row .conditional-field {
  grid-column: auto !important;
}

.fields-grid.alt-address-row > p,
.fields-grid.alt-address-row > .conditional-field {
  align-self: end; /* align to bottom of grid area */
  margin-bottom: 0;
}

/* Remove vertical animation and apply horizontal slide for Alt Address row */
.fields-grid.alt-address-row .conditional-field {
  grid-column: auto !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 0;
  visibility: hidden;
  transform: translateX(50px);
  transition: opacity 0.22s, transform 0.32s cubic-bezier(.5,0,.9,1), visibility 0s 0.32s;
  margin-bottom: 0;
  align-self: end;
}
.fields-grid.alt-address-row .conditional-field.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.18s, transform 0.30s cubic-bezier(.5,0,.9,1), visibility 0s 0s;
}

@media (max-width: 700px) {
  .fields-grid.alt-address-row .conditional-field,
  .fields-grid.alt-address-row .conditional-field.is-visible {
    transform: none !important;
    transition: opacity 0.22s;
  }
}


.section-header {
  font-size: 1.3em;
  font-weight: bold;
  color: #2254a4;
  margin-top: 2.1em;
  margin-bottom: 0.2em;
  grid-column: 1/-1;
  padding-left: 0.55em;
  border-left: 6px solid #5ea8ef;
  background: #f2f8ff;
  letter-spacing: 0.01em;
}

.fields-grid .alt-address-row {
  display: grid;
  grid-template-columns: 1fr 1fr !important;
  gap: 2em !important;
  align-items: end !important;
  grid-column: 1 / -1 !important;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (max-width: 700px) {
  .fields-grid .alt-address-row {
    grid-template-columns: 1fr !important;
  }
}
.fields-grid .alt-address-row > .conditional-field {
  grid-column: auto !important;
}

.fields-grid .alt-address-row > * {
  margin: 0 !important;
  padding: 0 !important;
}

.fields-grid .alt-address-row > .conditional-field.sun_fs_address_wrap {
  transition:
    opacity 0.28s,
    transform 0.32s cubic-bezier(.5,0,.9,1),
    visibility 0s 0.32s;
  opacity: 0;
  transform: translateX(40px);
  visibility: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.fields-grid .alt-address-row > .conditional-field.sun_fs_address_wrap.is-visible {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  transition:
    opacity 0.18s,
    transform 0.34s cubic-bezier(.5,0,.9,1),
    visibility 0s 0s;
}

@media (max-width: 700px) {
  .fields-grid .alt-address-row > .conditional-field.sun_fs_address_wrap,
  .fields-grid .alt-address-row > .conditional-field.sun_fs_address_wrap.is-visible {
    transform: none !important;
    transition: opacity 0.25s !important;
  }
}

.form-section-note {
  color: #214488;
  background: #f6f8fd;
  border-left: 5px solid #b5cdfa;
  padding: 0.7em 1.1em;
  margin-bottom: 1em;
  font-size: 1.07em;
  border-radius: 7px;
}

.horizontal-person-table select,
.horizontal-person-table .person-row select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 49%, #346ab3 51%),
    linear-gradient(135deg, #346ab3 51%, transparent 49%);
  background-position:
    calc(100% - 16px) calc(50% - 3px),
    calc(100% - 11px) calc(50% - 3px);
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2em;
  cursor: pointer;
  min-width: 100px; /* or adjust to taste */
}

.person-row-note {
  font-style: italic;
  color: #2370be;
  font-size: 1.07em;
  grid-column: 1 / -1;
  width: 100%;
}

.schedule-day {
  margin-bottom: 2.1em;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 #2073d012;
  border: 1.2px solid #e8f4fd;
  padding: 1.1em 1.1em 1em 1.1em;
  transition: box-shadow .17s;
}
@media (max-width:700px){
  .schedule-day {
    padding: 0.7em 0.6em 0.6em 0.6em;
    margin-bottom: 1.1em;
  }
}

.day-label {
  color: #1976D2;
  font-size: 1.29em;
  font-weight: 700;
  margin: 0;
  margin-bottom: .3em;
  letter-spacing: 0.01em;
}

.co-visit-schedule li {
    font-size: 1.07em;
    color: #27314a;
    margin-bottom: 0.15em;
    line-height: 1.36;
    word-break: keep-all;
    white-space: normal;
}
.schedule-title-heading {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    letter-spacing: 0.07em;
    color: #2196f3;
    text-transform: uppercase;
    font-size: 1.04em;
    margin: 1.13em 0 0.52em 0 !important;
    border-left: 6px solid #2196f3;
    padding-left: 0.7em;
    background: #eaf4ff;
    display: inline-block;
}
@media (max-width:700px){
    .co-visit-schedule li { 
        font-size: 0.97em; 
        margin-bottom: 0.08em; 
    }
    .schedule-title-heading { 
        font-size: 0.97em; 
        margin: 0.6em 0 0.31em 0 !important; 
    }
}

.schedule-day ul {
    margin-left: 0.8em !important;
    padding-left: 0 !important;
}
.schedule-title-heading {
    margin-left: 0 !important; /* if you set margin before */
}

.horizontal-person-table{clear:both; width:100%; }

/* --- REPLACEMENT CSS FOR LUNCH BLOCK --- */

/* By default, hide both the big lunch and the snack block by targeting their specific IDs */
#sat_big_lunch,
#sat_light_snack {
  display: none;
}

/* When the .show class is added by JavaScript, display them. */
/* #sat_big_lunch needs "display: grid" because it also has the .fields-grid class. */
#sat_big_lunch.show {
  display: grid;
}

#sat_light_snack.show {
  display: block;
}


.horizontal-person-table .person-name  {  /* give it the same look */
    font-weight:600;
    width:90px;
    color:#1953a7;
}
.horizontal-person-table .person-row {
    display:grid;
    grid-template-columns:90px 1fr 1fr 1fr;
}

/* ──────────────────────────────────────────────────────────
   CO-VISIT  –  “placeholder” card
   ────────────────────────────────────────────────────────── */

/* card --------------------------------------------------- */
#co-visit-placeholder{
    background:#fff;
    border-radius:14px;
    padding:2.2rem 2.6rem 2.6rem;
    margin-left:auto;                /* centre the whole card */
    margin-right:auto;
    /* stronger, softer shadow */
    box-shadow:0 14px 36px -12px rgba(0,0,0,.18),
               0  4px 12px  -2px rgba(0,0,0,.08);
}

/* headline ----------------------------------------------- */
#co-visit-placeholder > p:first-child{
    font-family:"Segoe UI","Roboto",sans-serif;
    font-weight:700;
    font-size:1.6em;
    color:#2e2e2e;
    margin:0 0 .2em;
}
#co-visit-placeholder > p:nth-child(2){
    font-size:.9em;
    color:#7a7a7a;
    margin:0 0 1.6rem;
}

/* illustration ------------------------------------------- */
#co-visit-placeholder svg{
    width:85%;          /* desktop / tablet fluid size    */
    max-width:740px;    /* desktop ceiling                */
    height:auto;
    /* remove hard floor that limited the image */
    min-width:0;        /* ← override the previous 520 px */
}

/* body copy ---------------------------------------------- */
#co-visit-placeholder .info-intro,
#co-visit-placeholder ul.talk-list{
    max-width:480px;
    margin-left:auto !important;
    margin-right:auto !important;
    text-align:left;
}

#co-visit-placeholder .info-intro{
    font-size:1.02em;
    color:#11367c;
    margin:0 0 1.1rem;
}

#co-visit-placeholder ul.talk-list{
    list-style:none;
    padding:0;
    font-size:.95em;
    line-height:1.5em;
    color:#333;
}

#co-visit-placeholder ul.talk-list li{
    margin:.15em 0;
    position:relative;
    padding-left:1.4em;
}
#co-visit-placeholder ul.talk-list li::before{
    content:"📌";
    position:absolute;
    left:0;
    top:0;
}

/* visit-date line ---------------------------------------- */
#co-visit-placeholder .visit-date{
    font-size:1.35em;
    color:#003f91;
    margin:2rem 0 0;
    font-weight:600;
}

/* responsive tweaks -------------------------------------- */
@media(max-width:520px){
    #co-visit-placeholder{padding:1.6rem 1.4rem 2rem;}
}

@media(max-width:420px){
    #co-visit-placeholder{padding:1.4rem 1.1rem 1.8rem;}
    #co-visit-placeholder .info-intro{font-size:.93em;}
    #co-visit-placeholder ul.talk-list{font-size:.88em;}
}

/* ------------------------------------------------------------
   MOBILE  (≤ 480 px)  – make the illustration full-width
   ------------------------------------------------------------ */
@media (max-width:480px){
    #co-visit-placeholder svg{
        width:130vw !important;              
        max-width:none;
        min-width:0;
        height:auto;

        /* pull back half of the extra width to keep the picture centred */
        margin:0 calc(-19vw) 1.4rem !important; 
    }
}

/* ─────────────────────────────────────────────────────────────
   Devices between 700 px and 481 px  
   Make the picture fill 100 % of the viewport while keeping it
   centred inside the card.
   ───────────────────────────────────────────────────────────── */
@media (max-width:700px) and (min-width:481px){
    #co-visit-placeholder svg{
        width:120vw !important;               /* exactly the viewport width   */
        max-width:none;
        min-width:0;
        height:auto;

        /* centre it by subtracting half of the side overflow
           ( (100vw – 100%) / 2  →  –50vw * card-width/viewport-width )   */
        margin: 0 calc(-60vw + 50%) 1.6rem;
    }
}