/*
 * Tabarak — WordPress bridge.
 * main.css is the design stylesheet, byte-identical to tabark/assets/css/style.css.
 * This file ONLY covers things the static design cannot know about:
 * admin bar, editor (Gutenberg/classic) content, embeds and plugin form output.
 * Do not restyle design components here.
 */

/* Admin bar: keep the sticky header below it */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }

/* Screen-reader helpers emitted by WordPress/plugins */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

/* Editor content inside design prose containers */
.prose img, .article__body img, .legal img { max-width: 100%; height: auto; }
.prose iframe, .article__body iframe { max-width: 100%; }
.prose .alignleft, .article__body .alignleft { float: left; margin: 6px 24px 16px 0; }
.prose .alignright, .article__body .alignright { float: right; margin: 6px 0 16px 24px; }
.prose .aligncenter, .article__body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.prose .wp-caption, .article__body .wp-caption, .prose figure, .article__body figure { max-width: 100%; margin: 24px 0; }
.prose figcaption, .article__body figcaption, .wp-caption-text { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.prose .wp-block-embed__wrapper, .article__body .wp-block-embed__wrapper { position: relative; }
.prose table, .article__body table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.prose th, .prose td, .article__body th, .article__body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }

/* Plugin (CF7) forms rendered inside the design booking shell */
.tabarak-booking-plugin form, .book__form .wpcf7-form { max-width: 100%; }
.book__form .wpcf7-form p { margin: 0 0 16px; }
.book__form .wpcf7-form label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.book__form .wpcf7-form-control-wrap { display: block; }
.book__form .wpcf7-form input[type="text"], .book__form .wpcf7-form input[type="email"], .book__form .wpcf7-form input[type="tel"],
.book__form .wpcf7-form input[type="number"], .book__form .wpcf7-form select, .book__form .wpcf7-form textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; font: inherit; color: var(--navy);
}
.book__form .wpcf7-form textarea { min-height: 110px; }
.book__form .wpcf7-form input:focus, .book__form .wpcf7-form select:focus, .book__form .wpcf7-form textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(87, 81, 225, .12); }
.book__form .wpcf7-form input[type="submit"], .book__form .wpcf7-form button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px; border: 0; border-radius: 50px;
  background: var(--yellow, #FFC224); color: var(--navy); font: 700 15px var(--font-h); cursor: pointer;
}
.book__form .wpcf7-not-valid-tip { color: #D92D20; font-size: 13px; margin-top: 6px; }
.book__form .wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 16px !important; border-radius: 12px; font-size: 14px; }
.book__form .wpcf7-spinner { margin: 0 12px; }

/* Booking submit busy state */
.js-booking button[aria-busy="true"] { opacity: .7; pointer-events: none; }
