/* Reuse IDP's existing type, colours and spacing. Scope to the v2 field tree. */
form[data-idp-ready] { --idp-error: #a62323; --idp-outline: var(--cc-color-2, #b89535); }
/* Dates, and adults/children/bedrooms, stay side by side at every width (Fluent stacks columns below 768px). */
form[data-idp-ready] .ff-t-container.idp-row { display: flex; gap: var(--xs, .5rem); }
form[data-idp-ready] .ff-t-container.idp-row > .ff-t-cell { flex: 1 1 0; padding: 0; }
/* Desktop: the same 15px gutter as Fluent's other columns, so the rows line up with the name fields. */
@media (min-width: 768px) { form[data-idp-ready] .ff-t-container.idp-row { gap: 15px; } }
/* The narrowest phones: stack the cells so dates and Not sure aren't cut off. */
@media (max-width: 359px) { form[data-idp-ready] .ff-t-container.idp-row { flex-wrap: wrap; } form[data-idp-ready] .ff-t-container.idp-row > .ff-t-cell { flex-basis: 100% !important; } }
/* The nights or window line tucks under the dates instead of adding a full gap. */
form[data-idp-ready] .idp-date-notes { margin-top: calc(-1 * var(--xs, .5rem)); }
form[data-idp-ready] .idp-date-notes p { margin: 0; }
form[data-idp-ready] .ff-el-input--label label { white-space: normal; }
form[data-idp-ready] .ff-el-help-message, form[data-idp-ready] .idp-nights { margin: var(--xs7, .3rem) 0 0; }
form[data-idp-ready] .idp-nights:empty { display: none; }
form[data-idp-ready] .idp-error { color: var(--idp-error); margin: var(--xs7, .3rem) 0 0; }
form[data-idp-ready] [aria-invalid="true"]:not([type=radio]):not([type=checkbox]) { outline: 1px solid var(--idp-error); outline-offset: 1px; }
form[data-idp-ready] .ff-t-cell { min-width: 0; }
form[data-idp-ready] .ff-el-form-control { max-width: 100%; min-width: 0; }
form[data-idp-ready] [hidden], form[data-idp-ready] .idp-folded { display: none !important; }
form[data-idp-ready] .ff-el-input--label span[aria-hidden] { display:none; }
form[data-idp-ready] .ff-el-is-required label:after { content:' *'; }
form[data-idp-ready] [data-annotation] { outline: 1px dashed var(--idp-outline); outline-offset: 4px; position:relative; }
form[data-idp-ready] [data-annotation]:before { content:attr(data-annotation); position:absolute; inset-inline-end:0; top:0; font-size:var(--tx-xxs,.75rem); font-weight:700; color:var(--cc-color-5,#121212); background:var(--cc-color-11,#fcf4d8); padding:0 var(--xs7,.3rem); z-index:1; }

/* Keep the existing type outside editable controls. Phone controls use 16px without scaling the gaps. */
form[data-idp-ready] { --idp-size: var(--tx-xs, .8rem); --idp-control-size: var(--idp-size); --idp-control-padding: 6.4px 9.6px; --idp-line: 1.45; --idp-fill: var(--cc-color-11, #fcf4d8); --idp-hair: var(--cc-color-2, #b89535); }
form[data-idp-ready] :is(label, p, span, li, a, legend, input, select, textarea, button, .ff-el-input--label, .ff-el-form-check-label, .ff-el-help-message, .ff-el-tooltip, .ff_tc_checkbox, .ff_t_c, .idp-nights, .idp-error, .text-danger, .error) { font-family: inherit !important; font-size: var(--idp-size) !important; line-height: var(--idp-line) !important; }
form[data-idp-ready] :is(.ff-el-input--label, .ff-el-input--label label, .ff-t-cell > .ff-el-group > p:not(.idp-error), .ff-t-cell > p:not(.idp-error), .ff-t-cell > .ff-custom_html p, .idp-more) { font-weight: 500 !important; }
form[data-idp-ready] :is(input, select, textarea, .ff-el-form-check-label, .ff-el-form-check-label span, .ff-el-help-message, .idp-nights, .ff_t_c, .ff_tc_checkbox, .idp-error, .text-danger, .error) { font-weight: 400 !important; font-style: normal !important; }
form[data-idp-ready] .ff-el-input--label { margin-bottom: var(--xs7, .3rem); padding-bottom: 0; }
/* The site animates every property on form controls, which made the size change on load visible. Only colour and border changes ease now. */
form[data-form_id="8"] :is(input, select, textarea, button, .ff-el-form-control, .ff_btn_style) { transition-property: border-color, background-color, box-shadow, color !important; transition-duration: .2s !important; }
/* Smaller fields: less padding inside every box. */
form[data-idp-ready] :is(input.ff-el-form-control, select.ff-el-form-control, textarea.ff-el-form-control) { font-size: var(--idp-control-size) !important; padding: var(--idp-control-padding) !important; min-height: 0 !important; height: auto !important; }
/* The phone field's country picker sits inside the box on the live site; keep the number clear of it (the picker asks for 48px). */
form[data-idp-ready] .iti input.ff-el-form-control { padding-left: 48px !important; }
form[data-idp-ready] .ff-el-form-check-input { width: 1.05em; height: 1.05em; margin: 0 .4em 0 0; vertical-align: -.15em; }
/* Yes and No sit side by side on phones too. */
form[data-idp-ready] .ff_list_2col .ff-el-form-check, form[data-idp-ready] .ff-el-form-check.ff-el-form-check- { display: inline-block; width: auto; margin: 0 1.25em 0 0; }
form[data-idp-ready] .ff_btn_style { font-size: var(--idp-size) !important; white-space: nowrap; }
/* Rows that open part of the form look like the other fields (Orrett, 21 Nov 2026): the fields' own pale fill and faint underline, the question in placeholder grey like "* First Name", and an arrow or plus on the right. No light fill with a darker stroke. */
form[data-idp-ready] .idp-more-heading { margin: 0; }
form[data-idp-ready] .idp-more, form[data-idp-ready] .idp-more:focus { display: flex; align-items: center; gap: var(--xs, .5rem); width: 100%; min-height: 0; margin: 0; padding: var(--idp-control-padding); border: 0; border-bottom: 1px solid var(--cc-color-11, #fcf4d8); border-radius: 2px; background: #fffdf8; box-shadow: none; color: inherit; font-size: var(--idp-control-size) !important; text-transform: none; text-align: start; cursor: pointer; }
form[data-idp-ready] .idp-more:hover { padding: var(--idp-control-padding); border: 0; border-bottom: 1px solid var(--cc-color-11, #fcf4d8); background: var(--cc-color-11, #fcf4d8); box-shadow: none; color: inherit; }
form[data-idp-ready] .idp-more:focus-visible { outline: 2px solid var(--idp-outline); outline-offset: 2px; }
form[data-idp-ready] :is(.idp-more > span:first-child, .idp-more > span:first-child *) { color: rgb(18 18 18 / .7); font-weight: 400 !important; font-size: var(--idp-control-size) !important; }
form[data-idp-ready] .idp-more-cue { display: none; }
/* The arrow matches the dropdowns' heavier arrow and sits as close to the right edge. */
form[data-idp-ready] .idp-more:after { content: ''; flex: none; width: 6px; height: 6px; margin-inline: auto -6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); transition: transform .2s; }
form[data-idp-ready] .idp-more[aria-expanded="true"]:after { transform: translateY(.1em) rotate(-135deg); }
form[data-idp-ready] .idp-note:after { content: '+'; width: auto; height: auto; border: 0; transform: none; font-weight: 500; }

/* Less space above the button now that the consent boxes wait below the form. */
form[data-idp-ready] .ff_submit_btn_wrapper { margin-top: var(--sm8, .7rem) !important; }
/* Greyed until the form can be sent (Orrett, 22 Nov 2026). */
form[data-idp-ready] button[type="submit"].idp-waiting { opacity: .4; filter: grayscale(1); cursor: not-allowed; }

form[data-idp-ready] .idp-preferred-villa { margin: 0; }
/* The villa line reads as the guest's selection (Orrett, 21 Nov 2026): the villa's main photo at 16:10, a small label and the name in the heading font. */
form[data-idp-ready] .idp-preferred-villa { display: grid; grid-template-columns: 1fr; row-gap: 3px; align-items: center; }
form[data-idp-ready] .idp-preferred-villa.idp-pv-has-photo { grid-template-columns: auto 1fr; column-gap: var(--sm8, .7rem); }
form[data-idp-ready] .idp-pv-label { grid-column: -2; align-self: end; color: var(--cc-color-6, #7b7b7e) !important; font-weight: 400 !important; line-height: 1.2 !important; }
form[data-idp-ready] .idp-pv-name { grid-column: -2; align-self: start; font-family: Heading, serif !important; font-size: var(--tx-lg, 1.25rem) !important; font-weight: 400 !important; line-height: 1.15 !important; color: var(--cc-color-5, #121212); }
form[data-idp-ready] .idp-pv-photo { grid-row: 1 / span 2; display: block; width: 80px; height: 50px; object-fit: cover; object-position: 70% 50%; }
form[data-idp-ready] .idp-contact .ff-el-input--label {
  /* Retain associated field labels for assistive technology when visually hidden. */
  display: block !important;
  visibility: visible !important;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
form[data-idp-ready][data-idp-variant~="labels"] .idp-contact .ff-el-input--label {
  position: static;
  width: auto;
  height: auto;
  margin-bottom: var(--xs7, .3rem);
  overflow: visible;
  clip-path: none;
}
form[data-idp-ready][data-idp-variant~="sol-type"] { --idp-control-size: 14px; }
form[data-idp-ready][data-idp-variant~="sol-type"] :is(label, .ff-el-input--label label, .ff-el-form-check-label span, .ff-t-cell > .ff-custom_html p) {
  font-size: 14px !important;
}
@media (max-width: 767px) {
  form[data-idp-ready], form[data-idp-ready][data-idp-variant~="sol-type"] {
    --idp-control-size: 16px;
    --idp-control-padding: 6px 9px;
  }
}
/* Mock-only proposal (21 Nov), not chosen yet: a field being typed in keeps the pale fill but loses the gold underline. */
form[data-idp-ready][data-idp-focus="quiet"] .ff-el-form-control:is(:focus, :hover) { border-bottom-color: var(--cc-color-11, #fcf4d8) !important; }
