/* WordPress + Contact Form 7 adjustments for the J'adore v2 design. */

/* Fixed header sits below the admin bar when logged in. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { position: absolute; } }

/* Header: GTranslate flags next to the Enquire button (desktop + mobile). */
.header-actions { justify-self: end; display: flex; align-items: center; gap: clamp(.75rem, 1.4vw, 1.25rem); }
.header-actions .header-cta { justify-self: auto; margin-left: 0; }
.header-lang { display: flex; align-items: center; min-height: 44px; }
.header-lang .gtranslate_wrapper { display: flex; align-items: center; gap: .45rem; width: auto !important; }
.header-lang .gtranslate_wrapper br { display: none; }
.header-lang a { display: inline-flex; margin: 0 !important; line-height: 0; opacity: .9; transition: opacity .2s, transform .2s; }
.header-lang a:hover, .header-lang a.gt-current-lang { opacity: 1; }
.header-lang a:focus-visible { outline-offset: 3px; }
.header-lang img { display: block; width: 30px !important; height: auto !important; max-width: none; }
@media (max-width: 850px) {
	.header-actions { margin-left: auto; gap: .55rem; }
	.header-lang .gtranslate_wrapper { gap: .35rem; }
	.header-lang img { width: 26px !important; }
}
@media (max-width: 620px) {
	.header-lang img { width: 22px !important; }
	.header-lang .gtranslate_wrapper { gap: .28rem; }
}
@media (max-width: 365px) {
	.header-actions { gap: .4rem; }
	.header-lang img { width: 20px !important; }
}

/* Core alignment / caption classes inside article content. */
.prose .alignleft { float: left; margin: .3rem 1.4rem 1rem 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3rem 0 1rem 1.4rem; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose img { height: auto; }
.prose .wp-caption, .prose figure { max-width: 100%; }
.prose .wp-caption-text, .prose figcaption { font-size: .88rem; margin-top: .5rem; }
.prose::after { content: ""; display: table; clear: both; }
.prose .wp-block-image { margin-block: 1.5rem; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.5rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* CF7 wraps every control in an inline span; make it behave like the bare input. */
.jv2-form .wpcf7-form-control-wrap { display: block; }
.jv2-form .field .wpcf7-form-control-wrap { display: grid; }
.jv2-form .wpcf7-not-valid { border-color: #a1442f !important; }
.jv2-form .wpcf7-not-valid-tip { color: #a1442f; font-size: .8rem; margin-top: .3rem; }
.jv2-form .wpcf7-spinner { margin: 1.25rem 0 0 .75rem; vertical-align: middle; }
.jv2-form .wpcf7-submit { margin-top: 1.25rem; }
.guide-section .jv2-form .wpcf7-submit { width: 100%; }
.jv2-form .wpcf7-submit:disabled { opacity: .6; cursor: progress; }

/* Radio "chips" for the guide view preference. */
.jv2-form .venue-choices .wpcf7-form-control { display: flex; flex-wrap: wrap; gap: .45rem; }
.jv2-form .venue-choices .wpcf7-list-item { margin: 0; }
.jv2-form .venue-choices .wpcf7-list-item label { display: inline-flex; align-items: center; gap: .38rem; padding: .26rem .55rem; border: 1px solid var(--line); min-height: 40px; cursor: pointer; font-weight: 400; color: var(--ink); }
.jv2-form .venue-choices .wpcf7-list-item label:has(:checked) { border-color: var(--olive); background: var(--sand); }
.jv2-form .venue-choices input[type="radio"] { width: auto; min-height: auto; margin: 0; accent-color: var(--olive); }

/* Consent checkbox. */
.jv2-form .consent-check .wpcf7-list-item { margin: 0; }
.jv2-form .consent-check label { display: flex; align-items: flex-start; gap: .55rem; }
.jv2-form .consent-check input { width: auto; min-height: auto; margin: .2rem 0 0; accent-color: var(--olive); }

/* Response message. */
.jv2-form .wpcf7-response-output { margin: 1.1rem 0 0 !important; padding: .85rem 1rem !important; border: 0 !important; border-left: 2px solid var(--olive) !important; background: var(--sand); color: var(--ink); font-size: .92rem; }
.jv2-form.invalid .wpcf7-response-output,
.jv2-form.unaccepted .wpcf7-response-output,
.jv2-form.failed .wpcf7-response-output,
.jv2-form.aborted .wpcf7-response-output,
.jv2-form.spam .wpcf7-response-output { border-left-color: #a1442f !important; }
