/* WordPress-only additions on top of site.css: admin bar, Contact Form 7 markup, text pages. */

/* Logged-in editors see the WordPress bar; keep the fixed header below it */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.btn--sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Contact Form 7 ---------- */
.wpcf7 form.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.wpcf7 form.wizard-form { display: block; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid { border-color: var(--coral) !important; }
.wpcf7-not-valid-tip { color: var(--coral-deep); font-size: 13px; margin-top: 6px; display: block; }
.wpcf7 .wpcf7-response-output { grid-column: 1 / -1; margin: 0; padding: 14px 18px; border-radius: 12px; border: 0; font-size: 14px; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output { background: #fde8ea; color: var(--coral-deep); }
.wpcf7 form.sent .wpcf7-response-output { background: var(--teal); color: var(--white); }
.wpcf7-spinner { display: none; }
.wpcf7 form.submitting .btn { opacity: .6; pointer-events: none; }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form .form-actions .wpcf7-submit { display: none; }

/* Option cards in the briefing wizard (CF7 radio / checkbox lists) */
.opts .wpcf7-form-control { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.opts .wpcf7-list-item { margin: 0; display: block; position: relative; }
.opts .wpcf7-list-item label { display: block; height: 100%; cursor: pointer; margin: 0; color: var(--ink); font-size: 15px; font-weight: 600; }
.opts .wpcf7-list-item input { position: absolute; opacity: 0; }
.opts .wpcf7-list-item-label {
  display: block; padding: 16px 18px 16px 50px; border: 1.6px solid #d3d8d3; border-radius: 14px; position: relative; height: 100%; transition: .2s;
}
.opts .wpcf7-list-item-label::before { content: ""; position: absolute; left: 18px; top: 18px; width: 18px; height: 18px; border-radius: 6px; border: 1.6px solid #b4bbb4; transition: .2s; }
.opts input[type="radio"] + .wpcf7-list-item-label::before { border-radius: 50%; }
.opts input:checked + .wpcf7-list-item-label { border-color: var(--teal); background: rgba(13,102,112,.06); }
.opts input:checked + .wpcf7-list-item-label::before { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: var(--teal); }
.opts input:focus-visible + .wpcf7-list-item-label { outline: 3px solid var(--lime); outline-offset: 2px; }

/* Newsletter form in the footer */
.newsletter-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.newsletter-form .wpcf7-form-control-wrap { width: 100%; max-width: 330px; }
.newsletter-form input[type="email"] {
  width: 100%; background: transparent; border: 1.5px solid rgba(255,255,255,.8); border-radius: 12px;
  padding: 10px 14px; color: var(--white); font: inherit; font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-form .btn { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.newsletter-form .wpcf7-response-output { background: transparent !important; color: var(--lime) !important; padding: 0 !important; font-size: 13px; }

/* ---------- Activity page and window ---------- */
.more-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 0; }
.activity-page .facts { grid-template-columns: repeat(3, 1fr); }

/* ---------- Text pages (Política de Privacidade) ---------- */
.prose { max-width: 780px; font-size: 17px; line-height: 1.75; }
.prose h2, .prose h3 { font-size: 22px; margin: 36px 0 12px; color: var(--teal); }
.prose a { color: var(--teal); }

/* CF7 adds a hidden fieldset of technical inputs as the form's first child; keep it out of the grid */
.wpcf7 .hidden-fields-container { display: none; }
/* Buttons styled as text links */
button.link-arrow { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; font-size: 13px; color: var(--teal); cursor: pointer; }
/* Same sub-headings on the activity page as in the catalogue window */
.activity-page h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .03em; margin: 22px 0 10px; }

/* Floating WhatsApp button (inc/whatsapp.php) */
.wa-float {
  position: fixed; left: 24px; bottom: 24px; z-index: 40;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px 14px 18px; border-radius: 999px;
  background: #5fcb6e; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 16px; line-height: 1;
  box-shadow: 0 12px 30px -10px rgba(40, 140, 60, .6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float:hover { background: #4fbd5f; transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(40, 140, 60, .7); }
.menu-open .wa-float { display: none; }
@media (max-width: 600px) {
  .wa-float { left: 16px; bottom: 16px; padding: 12px 18px 12px 14px; font-size: 14px; gap: 9px; }
  .wa-float svg { width: 22px; height: 22px; }
}
@media print { .wa-float { display: none; } }