/* Contact controls are scoped to avoid changing course activities. */
a.certi-contact-button, .navbar .navbar-header a.certi-contact-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 8px 14px; border: 1px solid #edb58e; border-radius: 5px;
  background: #fff8f1; color: #a63e07; font: 650 15px/1.3 "Segoe UI", Arial, sans-serif;
  text-decoration: none; white-space: nowrap; box-sizing: border-box;
}
a.certi-contact-button:hover, .navbar .navbar-header a.certi-contact-button:hover { color: #843007; background: #ffecdd; border-color: #bc581c; text-decoration: none; }
a.certi-contact-button:focus-visible { outline: 3px solid #164f75; outline-offset: 4px; }
.certi-contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1.7px solid currentColor; border-radius: 50%; font-size: 13px; line-height: 1; font-weight: 750; }
.certi-header-inner { gap: 18px; }
.certi-header-inner > .certi-brand { order: 1; }
.certi-header-inner > .certi-navigation { order: 2; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; min-width: 0; }
.certi-header-inner > .certi-contact-button { order: 3; flex-shrink: 0; }
.certi-header-inner > .certi-menu-toggle { order: 4; }
.navbar .navbar-header a.certi-contact-button { float: left; margin: 3px 8px; }
.contact-main { padding-block: 48px 64px; }
.contact-intro { max-width: 720px; font-size: 20px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 32px; margin-top: 32px; }
.contact-form-card { padding: 32px; border: 1px solid #dce5eb; border-radius: 12px; }
.contact-details { padding: 28px; background: #f2f6f8; border-radius: 12px; overflow-wrap: anywhere; }
.contact-details h2, .contact-form-card h2 { font-size: 26px; }
.contact-field { margin-bottom: 22px; }
.contact-field label { display: block; margin-bottom: 7px; font-weight: 650; }
.contact-field label span { font-weight: 400; font-size: 14px; color: #526674; }
.contact-field input, .contact-field textarea { display: block; width: 100%; border: 1px solid #8295a3; border-radius: 5px; padding: 11px 12px; background: #fff; color: #24394b; font: 16px/1.5 "Segoe UI", Arial, sans-serif; }
.contact-field textarea { resize: vertical; min-height: 160px; }
.contact-field input[aria-invalid], .contact-field textarea[aria-invalid] { border: 2px solid #a12421; }
.contact-field .contact-field-error { margin: 7px 0 0; font-size: 14px; color: #a12421; }
.contact-errors { border-left: 4px solid #a12421; padding: 18px; background: #fff1f0; margin-bottom: 24px; }
.contact-errors h3 { margin-top: 0; }
.contact-errors ul { margin-bottom: 0; padding-left: 22px; }
.contact-success { border: 1px solid #84ac99; border-left-width: 4px; padding: 28px; background: #f0f8f3; border-radius: 8px; max-width: 800px; }
.contact-success h2 { font-size: 28px; }
.contact-success p:last-child { margin-bottom: 0; }
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#contact-submit { cursor: pointer; }
#contact-submit:disabled { opacity: .7; cursor: wait; }
@media (max-width: 850px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) {
  .certi-header-inner { gap: 10px; }
  .certi-header-inner > .certi-contact-button { order: 2; margin-left: auto; }
  .certi-header-inner > .certi-menu-toggle { order: 3; padding-inline: 12px; }
  .certi-header-inner > .certi-navigation { order: 4; align-items: stretch; }
  .contact-main { padding-block: 32px 44px; }
  .contact-form-card, .contact-details { padding: 22px; }
}
@media (max-width: 380px) {
  .certi-header-inner { gap: 8px; }
  .certi-brand img { width: 105px; }
  .certi-header-inner > .certi-contact-button { gap: 6px; padding-inline: 9px; font-size: 14px; }
  .certi-header-inner > .certi-menu-toggle { padding-inline: 9px; font-size: 15px; }
  .contact-form-card { padding: 18px; }
}
@media print { .certi-contact-button { display: none !important; } }
