/* =========================================================
   FAIRWAYS OF EDEN – TEE TIME REQUEST POPUP
   ========================================================= */

/*
 * In Popup Maker, add this custom popup class if available:
 * foe-tee-popup
 *
 * The :has() selector also allows this to work when that
 * Popup Maker field is unavailable.
 */

/* Popup container */
.foe-tee-popup .pum-container,
.pum-container.foe-tee-popup,
.pum-container:has(.foe-tee-request){
  width:min(1100px, calc(100vw - 32px)) !important;
  max-width:1100px !important;
  max-height:calc(100vh - 32px) !important;
  padding:0 !important;
  margin:0 !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  background:#ffffff !important;
  border:0 !important;
  border-radius:20px !important;
  box-shadow:0 24px 70px rgba(4,31,24,.28) !important;
}

/* Remove Popup Maker's internal spacing */
.foe-tee-popup .pum-content,
.pum-container.foe-tee-popup .pum-content,
.pum-container:has(.foe-tee-request) .pum-content{
  margin:0 !important;
  padding:0 !important;
  box-shadow:none !important;
}

/* Close button */
.foe-tee-popup .pum-close,
.pum-container.foe-tee-popup .pum-close,
.pum-container:has(.foe-tee-request) .pum-close{
  top:16px !important;
  right:16px !important;
  width:40px !important;
  height:40px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  border:1px solid rgba(8,47,63,.12) !important;
  border-radius:999px !important;
  background:#ffffff !important;
  color:#082f3f !important;
  font-size:24px !important;
  line-height:1 !important;
  font-weight:500 !important;
  box-shadow:0 5px 16px rgba(0,0,0,.10) !important;
  z-index:20 !important;
}

/* Main popup */
.foe-tee-request{
  width:100%;
  color:#17252b;
  background:#ffffff;
}

/* Header */
.foe-tee-request__header{
  position:relative;
  padding:30px 76px 26px 34px;
  background:linear-gradient(135deg, #f3faf7 0%, #ffffff 72%);
  border-top:6px solid #259767;
  border-bottom:1px solid rgba(8,47,63,.08);
}

.foe-tee-request__header h2{
  margin:0 0 8px !important;
  color:#102a43;
  font-size:34px !important;
  line-height:1.12 !important;
  letter-spacing:-.025em;
  text-align:left;
}

.foe-tee-request__header p{
  max-width:760px;
  margin:0 !important;
  color:#53636b;
  font-size:15px;
  line-height:1.55;
  text-align:left;
}

/* Main two-column structure */
.foe-tee-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.03fr) minmax(390px, .97fr);
  gap:26px;
  align-items:start;
  padding:28px 32px;
}

/* Panels */
.foe-tee-panel{
  min-width:0;
}

.foe-tee-panel--selection{
  padding:22px;
  background:#f7faf9;
  border:1px solid rgba(8,47,63,.09);
  border-radius:16px;
}

.foe-tee-panel__heading{
  margin-bottom:20px;
}

.foe-tee-panel__heading h3{
  margin:0 0 5px !important;
  color:#102a43;
  font-size:20px !important;
  line-height:1.25 !important;
  text-align:left;
}

.foe-tee-panel__heading p{
  margin:0 !important;
  color:#68767c;
  font-size:13px;
  line-height:1.45;
  text-align:left;
}

/* Form fields */
.foe-tee-request .foe-field{
  margin-bottom:16px;
}

.foe-tee-request .foe-field-row{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(150px, .72fr);
  gap:14px;
}

.foe-tee-request .foe-field-row .foe-field{
  min-width:0;
}

.foe-tee-request .foe-field label,
.foe-tee-request .foe-date-section legend{
  display:block;
  margin:0 0 7px;
  padding:0;
  color:#263b43;
  font-size:13px;
  line-height:1.3;
  font-weight:700;
  text-align:left;
}

.foe-tee-request .foe-required{
  color:#c83d3d;
}

/* Input appearance */
.foe-tee-request .wpcf7-form input[type="text"],
.foe-tee-request .wpcf7-form input[type="email"],
.foe-tee-request .wpcf7-form input[type="tel"],
.foe-tee-request .wpcf7-form input[type="date"],
.foe-tee-request .wpcf7-form input[type="number"],
.foe-tee-request .wpcf7-form select,
.foe-tee-request .wpcf7-form textarea{
  width:100% !important;
  max-width:100% !important;
  min-height:48px;
  margin:0 !important;
  padding:11px 13px !important;
  color:#17252b;
  background:#ffffff;
  border:1px solid #ccd6d9 !important;
  border-radius:10px !important;
  outline:none;
  box-shadow:none !important;
  font-size:14px !important;
  line-height:1.35;
  box-sizing:border-box;
}

.foe-tee-request .wpcf7-form textarea{
  min-height:122px;
  max-height:220px;
  resize:vertical;
}

.foe-tee-request .wpcf7-form input::placeholder,
.foe-tee-request .wpcf7-form textarea::placeholder{
  color:#8a979c;
  opacity:1;
}

.foe-tee-request .wpcf7-form input:focus,
.foe-tee-request .wpcf7-form select:focus,
.foe-tee-request .wpcf7-form textarea:focus{
  border-color:#259767 !important;
  box-shadow:0 0 0 3px rgba(37,151,103,.13) !important;
}

/* Transfer checkbox */
.foe-transfer-option{
  margin-top:2px;
  padding:13px 14px;
  background:#f7faf9;
  border:1px solid rgba(8,47,63,.09);
  border-radius:10px;
}

.foe-transfer-option .wpcf7-list-item{
  display:block;
  margin:0 !important;
}

.foe-transfer-option label{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin:0;
  color:#30464f;
  font-size:13px;
  line-height:1.4;
  font-weight:600;
  cursor:pointer;
  text-align:left;
}

.foe-transfer-option input[type="checkbox"]{
  position:static !important;
  flex:0 0 auto;
  width:17px !important;
  height:17px !important;
  min-height:0 !important;
  margin:1px 0 0 !important;
  padding:0 !important;
  opacity:1 !important;
  appearance:auto !important;
  accent-color:#259767;
}

.foe-transfer-hotel{
  margin-top:14px;
}

.foe-transfer-hotel[hidden]{
  display:none !important;
}

/* Date section */
.foe-date-section{
  min-width:0;
  margin:0;
  padding:0;
  border:0;
}

.foe-inline-calendar{
  min-height:315px;
}

/*
 * JS-ready forms use the inline calendar.
 * When JavaScript fails, the native date input remains visible.
 */
.foe-tee-form.foe-datepicker-ready .foe-date-value{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  min-height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  clip-path:inset(50%) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.foe-tee-form:not(.foe-datepicker-ready) .foe-date-value{
  display:block;
  margin-top:10px !important;
}

/* Selected date */
.foe-selected-date{
  margin:10px 0 18px;
  padding:10px 12px;
  color:#526168;
  background:#ffffff;
  border:1px solid rgba(8,47,63,.09);
  border-radius:9px;
  font-size:13px;
  line-height:1.35;
  text-align:left;
}

.foe-selected-date strong{
  color:#176b4c;
}

/* Time field */
.foe-time-field{
  margin:0;
}

.foe-tee-request .foe-field-help{
  margin:7px 0 0 !important;
  color:#718086;
  font-size:11.5px;
  line-height:1.45;
  text-align:left;
}

/* =========================================================
   JQUERY UI INLINE CALENDAR
   ========================================================= */

.foe-inline-calendar .ui-datepicker{
  width:100% !important;
  padding:0 !important;
  background:transparent;
  border:0;
  font-family:inherit;
}

.foe-inline-calendar .ui-datepicker-header{
  position:relative;
  min-height:42px;
  margin-bottom:8px;
  padding:8px 44px;
  background:#ffffff;
  border:1px solid rgba(8,47,63,.09);
  border-radius:10px;
}

.foe-inline-calendar .ui-datepicker-title{
  color:#18313b;
  font-size:15px;
  line-height:26px;
  font-weight:800;
  text-align:center;
}

.foe-inline-calendar .ui-datepicker-prev,
.foe-inline-calendar .ui-datepicker-next{
  position:absolute;
  top:5px;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  color:#1c7252;
  background:transparent;
  cursor:pointer;
  text-decoration:none;
}

.foe-inline-calendar .ui-datepicker-prev{
  left:5px;
}

.foe-inline-calendar .ui-datepicker-next{
  right:5px;
}

.foe-inline-calendar .ui-datepicker-prev:hover,
.foe-inline-calendar .ui-datepicker-next:hover{
  background:#edf7f2;
}

.foe-inline-calendar .ui-icon{
  width:auto;
  height:auto;
  display:block;
  overflow:visible;
  background:none !important;
  text-indent:-9999px;
}

.foe-inline-calendar .ui-datepicker-prev .ui-icon::before,
.foe-inline-calendar .ui-datepicker-next .ui-icon::before{
  display:block;
  color:#1c7252;
  font-size:24px;
  line-height:1;
  text-indent:0;
}

.foe-inline-calendar .ui-datepicker-prev .ui-icon::before{
  content:"‹";
}

.foe-inline-calendar .ui-datepicker-next .ui-icon::before{
  content:"›";
}

.foe-inline-calendar table{
  width:100%;
  margin:0;
  border-collapse:separate;
  border-spacing:4px;
  table-layout:fixed;
}

.foe-inline-calendar th{
  padding:4px 1px 6px;
  color:#68777d;
  font-size:10px;
  line-height:1.2;
  font-weight:800;
  text-transform:uppercase;
  text-align:center;
}

.foe-inline-calendar td{
  padding:0;
  text-align:center;
}

.foe-inline-calendar td a,
.foe-inline-calendar td span{
  width:100%;
  min-height:35px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:5px 2px;
  color:#263b43;
  background:#ffffff;
  border:1px solid transparent;
  border-radius:8px;
  font-size:12px;
  line-height:1;
  font-weight:600;
  text-decoration:none;
  box-sizing:border-box;
}

.foe-inline-calendar td a:hover{
  color:#176b4c;
  background:#edf7f2;
  border-color:rgba(37,151,103,.22);
}

.foe-inline-calendar .ui-datepicker-today a{
  border-color:#259767;
}

.foe-inline-calendar .ui-datepicker-current-day a{
  color:#ffffff !important;
  background:#259767 !important;
  border-color:#259767 !important;
  font-weight:800;
}

.foe-inline-calendar .ui-datepicker-other-month{
  opacity:.38;
}

.foe-inline-calendar .ui-state-disabled{
  opacity:.32;
  cursor:not-allowed;
}

.foe-inline-calendar .ui-state-disabled span{
  background:transparent;
}

/* Footer */
.foe-tee-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:20px 32px 24px;
  background:#f8faf9;
  border-top:1px solid rgba(8,47,63,.08);
}

.foe-tee-footer__note{
  max-width:580px;
  color:#64747a;
  font-size:12px;
  line-height:1.45;
  text-align:left;
}

.foe-tee-footer__note strong{
  display:block;
  color:#263b43;
  font-size:13px;
}

.foe-tee-submit{
  flex:0 0 auto;
}

.foe-tee-submit input[type="submit"]{
  min-width:210px;
  min-height:50px;
  margin:0 !important;
  padding:13px 22px !important;
  border:0 !important;
  border-radius:10px !important;
  background:#259767 !important;
  color:#ffffff !important;
  font-size:14px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  letter-spacing:.01em;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(37,151,103,.20) !important;
}

.foe-tee-submit input[type="submit"]:hover{
  background:#1e8057 !important;
}

/* Contact Form 7 feedback */
.foe-tee-request .wpcf7-not-valid{
  border-color:#d84a4a !important;
}

.foe-tee-request .wpcf7-not-valid-tip{
  margin-top:5px;
  color:#b83232;
  font-size:11px;
  line-height:1.35;
  text-align:left;
}

.foe-tee-request .wpcf7-response-output{
  margin:0 32px 24px !important;
  padding:12px 14px !important;
  border-width:1px !important;
  border-radius:9px;
  font-size:13px;
  line-height:1.45;
}

.foe-tee-request .wpcf7-spinner{
  margin:0 8px;
}

/* Tablet and mobile */
@media (max-width:900px){

  .foe-tee-popup .pum-container,
  .pum-container.foe-tee-popup,
  .pum-container:has(.foe-tee-request){
    width:calc(100vw - 20px) !important;
    max-height:calc(100vh - 20px) !important;
    border-radius:16px !important;
  }

  .foe-tee-request__header{
    padding:25px 64px 22px 22px;
  }

  .foe-tee-request__header h2{
    font-size:27px !important;
  }

  .foe-tee-grid{
    grid-template-columns:1fr;
    gap:22px;
    padding:22px;
  }

  .foe-tee-panel--selection{
    padding:18px;
  }

  .foe-tee-footer{
    padding:18px 22px 22px;
  }
}

@media (max-width:600px){

  .foe-tee-popup .pum-container,
  .pum-container.foe-tee-popup,
  .pum-container:has(.foe-tee-request){
    width:calc(100vw - 12px) !important;
    max-height:calc(100vh - 12px) !important;
    border-radius:13px !important;
  }

  .foe-tee-request__header{
    padding:22px 54px 19px 17px;
  }

  .foe-tee-request__header h2{
    margin-bottom:7px !important;
    font-size:23px !important;
    text-align:left !important;
  }

  .foe-tee-request__header p{
    font-size:13px;
    text-align:left !important;
  }

  .foe-tee-grid{
    gap:20px;
    padding:17px;
  }

  .foe-tee-panel--selection{
    padding:15px;
  }

  .foe-tee-request .foe-field-row{
    grid-template-columns:1fr;
    gap:0;
  }

  .foe-inline-calendar{
    min-height:290px;
  }

  .foe-inline-calendar table{
    border-spacing:2px;
  }

  .foe-inline-calendar td a,
  .foe-inline-calendar td span{
    min-height:34px;
    font-size:11px;
  }

  .foe-tee-footer{
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    padding:17px;
  }

  .foe-tee-footer__note{
    max-width:none;
    text-align:center;
  }

  .foe-tee-submit,
  .foe-tee-submit input[type="submit"]{
    width:100% !important;
  }

  .foe-tee-request .wpcf7-response-output{
    margin:0 17px 18px !important;
  }

  .foe-tee-popup .pum-close,
  .pum-container.foe-tee-popup .pum-close,
  .pum-container:has(.foe-tee-request) .pum-close{
    top:11px !important;
    right:11px !important;
    width:36px !important;
    height:36px !important;
  }
}

/* =========================================================
   FOE TEE TIME POPUP – COMPACT REFINEMENT
   Add AFTER all previous popup CSS
   ========================================================= */

/* Prevent any internal horizontal overflow */
.foe-tee-popup .pum-container,
.pum-container.foe-tee-popup,
.pum-container:has(.foe-tee-request),
.foe-tee-popup .pum-content,
.pum-container.foe-tee-popup .pum-content,
.pum-container:has(.foe-tee-request) .pum-content,
.foe-tee-request,
.foe-tee-request form{
  width:100%;
  max-width:100%;
  overflow-x:hidden !important;
  box-sizing:border-box;
}

.foe-tee-request *,
.foe-tee-request *::before,
.foe-tee-request *::after{
  box-sizing:border-box;
}

/*
 * Remove automatic paragraph and line-break spacing
 * created by Contact Form 7 or the theme.
 */
.foe-tee-request .wpcf7-form p{
  margin:0 !important;
  padding:0 !important;
}

.foe-tee-request .wpcf7-form br{
  display:none !important;
}

.foe-tee-request .wpcf7-form-control-wrap{
  display:block;
  width:100%;
  margin:0 !important;
  padding:0 !important;
}

/* ===============================
   Compact popup header
   =============================== */

.foe-tee-request__header{
  padding:22px 68px 19px 30px;
}

.foe-tee-request__header h2{
  margin:0 0 5px !important;
  font-size:31px !important;
  line-height:1.1 !important;
}

.foe-tee-request__header p{
  max-width:700px;
  font-size:14px;
  line-height:1.42;
}

/* ===============================
   Compact two-column area
   =============================== */

.foe-tee-grid{
  grid-template-columns:minmax(0, 1fr) minmax(420px, .94fr);
  gap:22px;
  padding:20px 28px;
}

/* Right-side panel */
.foe-tee-panel--selection{
  padding:17px;
  border-radius:14px;
}

/* Panel titles and eyebrow descriptions */
.foe-tee-panel__heading{
  margin-bottom:12px;
}

.foe-tee-panel__heading h3{
  margin:0 0 2px !important;
  font-size:19px !important;
  line-height:1.2 !important;
}

.foe-tee-panel__heading p{
  margin:0 !important;
  font-size:12px;
  line-height:1.3;
}

/* ===============================
   Compact form fields
   =============================== */

.foe-tee-request .foe-field{
  margin-bottom:11px;
}

.foe-tee-request .foe-field-row{
  gap:12px;
}

.foe-tee-request .foe-field label,
.foe-tee-request .foe-date-section legend{
  margin:0 0 4px;
  font-size:12px;
  line-height:1.25;
}

/* Reduce input height */
.foe-tee-request .wpcf7-form input[type="text"],
.foe-tee-request .wpcf7-form input[type="email"],
.foe-tee-request .wpcf7-form input[type="tel"],
.foe-tee-request .wpcf7-form input[type="date"],
.foe-tee-request .wpcf7-form input[type="number"],
.foe-tee-request .wpcf7-form select{
  min-height:42px;
  height:42px;
  padding:8px 12px !important;
  border-radius:9px !important;
  font-size:13px !important;
}

/* Force the message box to a sensible initial height */
.foe-tee-request .wpcf7-form textarea{
  height:86px !important;
  min-height:86px !important;
  max-height:150px;
  padding:9px 12px !important;
  border-radius:9px !important;
  font-size:13px !important;
  line-height:1.4;
}

/* Transfer option */
.foe-transfer-option{
  margin-top:0;
  padding:9px 11px;
  border-radius:9px;
}

.foe-transfer-option label{
  gap:7px;
  font-size:12px;
  line-height:1.3;
}

.foe-transfer-option input[type="checkbox"]{
  width:16px !important;
  height:16px !important;
}

.foe-transfer-hotel{
  margin-top:10px;
}

/* ===============================
   Compact calendar
   =============================== */

.foe-inline-calendar{
  min-height:0 !important;
}

/* Calendar month header */
.foe-inline-calendar .ui-datepicker-header{
  min-height:36px;
  margin-bottom:4px;
  padding:4px 38px;
  border-radius:9px;
}

.foe-inline-calendar .ui-datepicker-title{
  font-size:13px;
  line-height:26px;
}

/*
 * Remove the current icon implementation completely.
 * The arrows are currently being displayed twice.
 */
.foe-inline-calendar .ui-datepicker-prev .ui-icon,
.foe-inline-calendar .ui-datepicker-next .ui-icon{
  display:none !important;
}

.foe-inline-calendar .ui-datepicker-prev,
.foe-inline-calendar .ui-datepicker-next{
  top:3px;
  width:30px;
  height:30px;
  font-size:0 !important;
  line-height:1 !important;
  text-indent:0 !important;
}

.foe-inline-calendar .ui-datepicker-prev{
  left:4px;
}

.foe-inline-calendar .ui-datepicker-next{
  right:4px;
}

.foe-inline-calendar .ui-datepicker-prev::before,
.foe-inline-calendar .ui-datepicker-next::before{
  display:block;
  color:#1c7252;
  font-size:21px;
  line-height:1;
  font-weight:600;
}

.foe-inline-calendar .ui-datepicker-prev::before{
  content:"‹";
}

.foe-inline-calendar .ui-datepicker-next::before{
  content:"›";
}

/* Calendar table */
.foe-inline-calendar table{
  border-spacing:2px;
}

.foe-inline-calendar th{
  padding:3px 1px 4px;
  font-size:9px;
}

.foe-inline-calendar td a,
.foe-inline-calendar td span{
  min-height:29px;
  padding:3px 1px;
  border-radius:7px;
  font-size:10.5px;
}

/* Selected date on one compact line */
.foe-selected-date{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:6px 0 11px;
  padding:8px 10px;
  border-radius:8px;
  font-size:11.5px;
  line-height:1.3;
}

.foe-selected-date strong{
  display:inline !important;
  color:#176b4c;
  font-size:12px;
  white-space:nowrap;
}

/* Time-field spacing */
.foe-time-field{
  margin-bottom:0;
}

.foe-tee-request .foe-field-help{
  margin:5px 0 0 !important;
  font-size:10.5px;
  line-height:1.35;
}

/* ===============================
   Compact footer
   =============================== */

.foe-tee-footer{
  gap:20px;
  padding:13px 28px 16px;
}

.foe-tee-footer__note{
  font-size:11px;
  line-height:1.35;
}

.foe-tee-footer__note strong{
  font-size:12px;
}

.foe-tee-submit input[type="submit"]{
  min-width:195px;
  min-height:44px;
  padding:11px 19px !important;
  font-size:13px !important;
}

/* Feedback message */
.foe-tee-request .wpcf7-response-output{
  margin:0 28px 16px !important;
  padding:9px 12px !important;
  font-size:12px;
}

/* ===============================
   Tablet
   =============================== */

@media (max-width:900px){

  .foe-tee-request__header{
    padding:20px 58px 17px 20px;
  }

  .foe-tee-request__header h2{
    font-size:26px !important;
  }

  .foe-tee-grid{
    grid-template-columns:1fr;
    gap:17px;
    padding:17px 20px;
  }

  .foe-tee-panel--selection{
    padding:15px;
  }

  .foe-tee-footer{
    padding:13px 20px 17px;
  }
}

/* ===============================
   Mobile
   =============================== */

@media (max-width:600px){

  .foe-tee-request__header{
    padding:18px 52px 15px 15px;
  }

  .foe-tee-request__header h2{
    font-size:22px !important;
  }

  .foe-tee-request__header p{
    font-size:12px;
    line-height:1.35;
  }

  .foe-tee-grid{
    gap:15px;
    padding:15px;
  }

  .foe-tee-panel--selection{
    padding:13px;
  }

  .foe-tee-request .foe-field{
    margin-bottom:10px;
  }

  .foe-inline-calendar td a,
  .foe-inline-calendar td span{
    min-height:31px;
  }

  .foe-selected-date{
    flex-wrap:wrap;
    justify-content:flex-start;
  }

  .foe-selected-date strong{
    white-space:normal;
  }

  .foe-tee-footer{
    gap:11px;
    padding:14px 15px 15px;
  }

  .foe-tee-request .wpcf7-response-output{
    margin:0 15px 15px !important;
  }
}

/* Remove residual CF7/theme space below the popup footer */
.foe-tee-request .wpcf7,
.foe-tee-request .wpcf7-form,
.foe-tee-request form{
  margin:0 !important;
  padding-bottom:0 !important;
}

.foe-tee-request .foe-tee-footer{
  margin-bottom:0 !important;
}

.foe-tee-request .wpcf7-response-output:empty{
  display:none !important;
}

.foe-tee-footer__note strong{
  display:inline !important;
  margin-right:4px;
}

/* =========================================================
   TEE TIME POPUP – COMPACT TRANSFER CARD
   ========================================================= */

.foe-transfer-option{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:20px;
  align-items:start;

  margin-top:4px;
  padding:10px 12px;

  background:#f4faf7;
  border:1px solid rgba(37,151,103,.22);
  border-left:3px solid #259767;
  border-radius:10px;

  transition:
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.foe-transfer-option:has(input[type="checkbox"]:checked){
  background:#edf8f2;
  border-color:#259767;
  box-shadow:0 0 0 2px rgba(37,151,103,.08);
}

/* icon box */
.foe-transfer-option__icon{
  width:40px;
  height:40px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:#ffffff;
  border:1px solid rgba(37,151,103,.18);
  border-radius:8px;
}

.foe-transfer-option__icon svg{
  width:20px;
  height:20px;
  display:block;
  fill:#176b4c;
}

/* content */
.foe-transfer-option__content{
  min-width:0;
}

.foe-transfer-option__heading{
  margin:0 0 1px;
  color:#163d31;
  font-size:13px;
  line-height:1.2;
  font-weight:800;
  text-align:left;
}

.foe-transfer-option__text{
  margin:0 0 5px;
  color:#5d6e68;
  font-size:11px;
  line-height:1.25;
  text-align:left;
}

/* checkbox wrapper cleanup */
.foe-transfer-option .wpcf7-form-control-wrap,
.foe-transfer-option .wpcf7-form-control,
.foe-transfer-option .wpcf7-list-item{
  display:block;
  width:100%;
  margin:0 !important;
}

/* checkbox label */
.foe-transfer-option .wpcf7-list-item label{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0;
  padding:0;

  color:#294a3e;
  font-size:11.5px;
  line-height:1.25;
  font-weight:700;
  text-align:left;
  cursor:pointer;
}

.foe-transfer-option input[type="checkbox"]{
  position:static !important;
  flex:0 0 auto;

  width:15px !important;
  height:15px !important;
  min-height:0 !important;

  margin:0 !important;
  padding:0 !important;

  opacity:1 !important;
  appearance:auto !important;
  accent-color:#259767;
  cursor:pointer;
}

/* hotel field reveal */
.foe-transfer-hotel{
  margin-top:7px;
  padding:9px 10px 1px;
  background:#f8fbf9;
  border:1px solid rgba(37,151,103,.14);
  border-radius:9px;
}

.foe-tee-request .foe-transfer-hotel .foe-field{
  margin-bottom:9px;
}

/* mobile */
@media (max-width:600px){
  .foe-transfer-option{
    grid-template-columns:30px minmax(0,1fr);
    gap:9px;
    padding:9px 10px;
  }

  .foe-transfer-option__icon{
    width:28px;
    height:28px;
  }

  .foe-transfer-option__icon svg{
    width:15px;
    height:15px;
  }

  .foe-transfer-option__heading{
    font-size:12.5px;
  }

  .foe-transfer-option__text{
    font-size:10.5px;
  }

  .foe-transfer-option .wpcf7-list-item label{
    font-size:11px;
  }
}

/* Tee-time helper: clear spacing and single line on desktop */
.foe-tee-request .foe-time-field .foe-field-help{
  margin:8px 0 0 !important;
  font-size:10.5px;
  line-height:2.25;
  white-space:nowrap;
}

/* Allow natural wrapping on narrow screens */
@media (max-width:600px){
  .foe-tee-request .foe-time-field .foe-field-help{
    white-space:normal;
  }
}

@media (max-width:600px){

    .foe-inline-calendar{
        display:block !important;
        min-height:auto;
    }

    .foe-inline-calendar table{
        border-spacing:1px;
    }

    .foe-inline-calendar td a,
    .foe-inline-calendar td span{
        min-height:34px;
        font-size:11px;
    }

}

#pum-6935.pum-active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow-y: auto !important;
  padding: 24px !important;
}

#pum-6935.pum-active #popmake-6935 {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 auto !important;
  transform: none !important;
  width: 1080px !important;
  max-width: calc(100vw - 48px) !important;
  max-height: calc(100vh - 48px) !important;
  overflow-y: auto !important;
}

#pum-6935.pum-active #popmake-6935 {
  overflow: visible !important;
}

#pum-6935.pum-active #popmake-6935 .pum-content {
  max-height: calc(100vh - 110px) !important;
  overflow-y: auto !important;
}

#pum-6935.pum-active .pum-close.popmake-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: -18px !important;
  right: -18px !important;
  width: 38px !important;
  height: 38px !important;
  z-index: 2000000001 !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #ffffff !important;
  color: #1f2433 !important;
  border: 4px solid #259767 !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.25) !important;
  cursor: pointer !important;
}

/* =========================================================
   FOE TEE TIME POPUP – MULTI-ROUND BOOKING
   Add this block at the VERY END of foe-tee-popup.css
   ========================================================= */

/* Storage / translation copy used by JavaScript only. */
.foe-itinerary-storage-wrap,
.foe-multi-copy{
  display:none !important;
}

/* Extra-round area begins below the existing Round 1 time selector. */
.foe-extra-rounds-section{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(8,47,63,.10);
}

.foe-extra-rounds{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.foe-extra-round{
  padding:12px;
  background:#ffffff;
  border:1px solid rgba(8,47,63,.12);
  border-radius:10px;
  box-shadow:0 4px 12px rgba(7,47,59,.045);
}

.foe-extra-round__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.foe-extra-round__number{
  color:#102a43;
  font-size:13px;
  line-height:1.25;
  font-weight:800;
}

.foe-extra-round__remove{
  flex:0 0 auto;
  margin:0;
  padding:3px 0;
  border:0;
  background:transparent;
  color:#8b3838;
  font-size:11px;
  line-height:1.25;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}

.foe-extra-round__remove:hover,
.foe-extra-round__remove:focus-visible{
  color:#651f1f;
}

.foe-extra-round__course{
  margin-bottom:10px !important;
}

.foe-extra-round__row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
}

.foe-extra-round__row .foe-field{
  min-width:0;
  margin-bottom:0 !important;
}

/* Dynamic fields should match the existing CF7 controls exactly. */
.foe-extra-round select,
.foe-extra-round input[type="date"]{
  width:100% !important;
  max-width:100% !important;
  min-height:42px;
  height:42px;
  margin:0 !important;
  padding:8px 12px !important;
  color:#17252b;
  background:#ffffff;
  border:1px solid #ccd6d9 !important;
  border-radius:9px !important;
  outline:none;
  box-shadow:none !important;
  font-family:inherit;
  font-size:13px !important;
  line-height:1.35;
  box-sizing:border-box;
}

.foe-extra-round select:focus,
.foe-extra-round input[type="date"]:focus{
  border-color:#259767 !important;
  box-shadow:0 0 0 3px rgba(37,151,103,.13) !important;
}

.foe-extra-round .foe-extra-invalid{
  border-color:#d84a4a !important;
  box-shadow:0 0 0 2px rgba(216,74,74,.08) !important;
}

.foe-extra-round__error,
.foe-extra-rounds-global-error{
  margin-top:7px;
  color:#b83232;
  font-size:10.5px;
  line-height:1.35;
  font-weight:600;
}

/* Add-round control: secondary action, deliberately not as strong as submit. */
.foe-add-round{
  width:100%;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin:10px 0 0;
  padding:9px 12px;
  border:1px dashed rgba(37,151,103,.55);
  border-radius:9px;
  background:#f4faf7;
  color:#176b4c;
  font-family:inherit;
  font-size:12px;
  line-height:1.25;
  font-weight:800;
  cursor:pointer;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease;
}

.foe-add-round:hover,
.foe-add-round:focus-visible{
  background:#edf8f2;
  border-color:#259767;
  color:#0f593f;
}

.foe-add-round span[aria-hidden="true"]{
  font-size:18px;
  line-height:1;
  font-weight:500;
}

.foe-add-round:disabled,
.foe-add-round[aria-disabled="true"]{
  opacity:.48;
  cursor:not-allowed;
}

@media (max-width:600px){
  .foe-extra-round{
    padding:11px;
  }

  .foe-extra-round__row{
    grid-template-columns:1fr;
    gap:9px;
  }

  .foe-extra-round__row .foe-field{
    margin-bottom:0 !important;
  }

  .foe-add-round{
    min-height:44px;
  }
}

/* =========================================================
   FOE TEE TIME – SUCCESS SCREEN
   Does not alter the existing booking form
   ========================================================= */

.foe-tee-success-screen{
  display:flex !important;
  width:100%;
  min-height:560px;
  padding:60px 40px;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-sizing:border-box;

  background:
    radial-gradient(
      circle at 50% 115%,
      rgba(255,255,255,.15) 0,
      rgba(255,255,255,0) 45%
    ),
    linear-gradient(
      145deg,
      #064e3b 0%,
      #0b6b4f 55%,
      #159669 100%
    );

  color:#fff;
}

.foe-tee-success-screen__inner{
  width:100%;
  max-width:720px;
  margin:auto;
}

.foe-tee-success-screen__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:92px;
  height:92px;
  margin:0 auto 24px;
  border-radius:50%;
  background:#fff;
  font-size:46px;
  line-height:1;
  box-shadow:0 12px 35px rgba(0,0,0,.18);
}

.foe-tee-success-screen h2{
  margin:0 0 18px !important;
  color:#fff !important;
  font-size:46px !important;
  line-height:1.05 !important;
}

.foe-tee-success-screen p{
  margin:0 auto 30px !important;
  color:#fff !important;
  font-size:20px;
  line-height:1.55;
}

.foe-tee-success-screen__close{
  min-width:170px;
  min-height:50px;
  padding:12px 28px;
  border:0;
  border-radius:8px;
  background:#fff;
  color:#07543e;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}

.foe-tee-success-screen__close:hover{
  background:#f3f7f5;
}

@media (max-width:767px){

  .foe-tee-success-screen{
    min-height:460px;
    padding:45px 24px;
  }

  .foe-tee-success-screen__icon{
    width:76px;
    height:76px;
    font-size:38px;
  }

  .foe-tee-success-screen h2{
    font-size:34px !important;
  }

  .foe-tee-success-screen p{
    font-size:17px;
  }
}