/* Client forms, navigation and connection card. No external resources. */
[hidden] { display: none !important; }
.hg-skip-link { position: fixed; top: 8px; left: 8px; z-index: 10000; transform: translateY(-180%); background: #fff; color: #111827; padding: 12px 16px; border: 2px solid var(--theme-primary, #a63120); border-radius: 8px; }
.hg-skip-link:focus { transform: translateY(0); }
body :is(a,button,input,select,textarea,[tabindex]):focus-visible { outline: 2px solid var(--theme-primary, #a63120) !important; outline-offset: 2px !important; }
#hg-main-content { scroll-margin-top: 112px; }
.hg-connection, .hg-cancellation-impact { padding: 20px; border: 1px solid var(--theme-neutral,#d1d5db); border-radius: 12px; min-width: 0; overflow-wrap: anywhere; }
.hg-connection { background: var(--theme-background-secondary,#fff); margin-bottom: 12px; }
.hg-connection h2, .hg-cancellation-impact h3 { font-weight: 600; font-size: 1.1rem; margin: 0 0 12px; }
.hg-connection p, .hg-cancellation-impact p { margin: 12px 0; line-height: 1.6; }
.hg-connection-row { display: flex; align-items: end; gap: 8px; margin: 16px 0; min-width: 0; }
.hg-connection-field { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.hg-connection-field input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--hg-control-border, #8e8e93); border-radius: 8px; padding: 8px 12px; background: transparent; color: inherit; font-size: 16px; }
.hg-connection-field input[readonly] { font-family: ui-monospace,monospace; }
.hg-comfort-button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; padding: 8px 16px; border: 1px solid currentColor; border-radius: 8px; font-weight: 600; cursor: pointer; line-height: 1.3; text-align: center; }
.hg-comfort-button:disabled, .hg-comfort-button[aria-disabled=true] { opacity: .6; cursor: not-allowed; }
.hg-cancellation-impact { margin: 12px 0; background: color-mix(in srgb, var(--theme-accent,#fde68a) 12%, transparent); }
.hg-cancellation-impact dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.hg-cancellation-impact dd { font-weight: 600; flex-shrink: 0; }
.hg-cancellation-impact ul { padding-left: 1.3rem; list-style: disc; line-height: 1.6; }
.hg-cancellation-impact a { text-decoration: underline; text-underline-offset: 3px; }
.hg-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.hg-table-hint { display: block; font-size: .875rem; margin: 6px 0; }
.petal-form-error { color: #b91c1c !important; overflow-wrap: anywhere; }
body.dark .petal-form-error { color: #fca5a5 !important; }
.petal-modal-panel, .petal-confirmation-panel { max-height: calc(100dvh - 32px) !important; overscroll-behavior: contain; }
.petal-modal-close, .petal-confirmation-close { min-width: 44px; min-height: 44px; display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; }
.petal-modal-title, .petal-confirmation-title { overflow-wrap: anywhere; min-width: 0; }
.psd-cancel-state dl > div { flex-wrap: wrap; }
@media (max-width: 767px) {
    #petal-page-slot :is(button,[role=button],input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select) { min-height: 44px; }
    #petal-page-slot :is(input,select,textarea), .petal-modal-panel :is(input,select,textarea) { font-size: 16px !important; }
    .hgnav :is(button,.hgnav-mobile-link,.hgnav-mobile-sub), .petal-client-sidebar button { min-height: 44px; }
    .hgnav-burger, .hgnav-theme-btn { min-width: 44px; }
    .hgnav-mobile { max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; }
    .hgnav-inner { flex-wrap: wrap; }
    .hgnav-tools { flex-wrap: wrap; min-width: 0; }
    .petal-service-detail { padding-inline: 12px !important; }
    .hg-connection-row { flex-wrap: wrap; align-items: stretch; }
    .hg-connection-row .hg-connection-field { flex-basis: 100%; }
    .hg-connection-row .hg-comfort-button { width: 100%; }
    .hg-cancellation-impact dl > div { flex-direction: column; gap: 2px; }
    .hg-connection, .hg-cancellation-impact { padding: 16px; }
    .petal-modal-panel, .petal-confirmation-panel { padding: 16px !important; width: calc(100% - 16px) !important; margin: 8px !important; max-height: calc(100dvh - 16px) !important; }
    .petal-modal-panel :is(button,[role=button]), .petal-confirmation-panel button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    body *, body *::before, body *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.petal-modal-overlay { z-index: 200 !important; }
.petal-confirmation-overlay { z-index: 210 !important; }
