/* Follow-up inherits the first form's .fghb card, width and controls. */
.fghb-followup form { margin: 0; }
/* Keep the theme's overlapping white heading anchored when the form becomes shorter.
   This is scoped to the existing Hemen Basvur page's centered Elementor column. */
.elementor-2311 .elementor-element.elementor-element-31bebe8d:has(.fghb) { justify-content: flex-start; }
.fghb.fghb-followup .fghb-success-actions { margin-top: 24px; justify-content: center; align-items: center; }
.fghb.fghb-followup .fghb-success-actions a.fghb-button {
    width: 220px; max-width: 100%; flex: 0 1 220px; text-align: center; text-decoration: none; color: #fff;
}
.fghb.fghb-followup .fghb-success-actions a.fghb-button:is(:visited, :hover, :focus, :active) { color: #fff; text-decoration: none; }
.fghb.fghb-followup .fghb-success-actions a.fghb-button.is-secondary,
.fghb.fghb-followup .fghb-success-actions a.fghb-button.is-secondary:is(:visited, :hover, :focus, :active) { color: var(--fghb-text); }
@media (max-width: 899px) {
    .fghb.fghb-followup .fghb-success-actions { flex-direction: column; }
    .fghb.fghb-followup .fghb-success-actions a.fghb-button { flex-basis: auto; }
}
.fghb-email-actions { margin-bottom: 20px; }
.fghb-email-code-header { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-bottom: 8px; }
.fghb-email-code-header [data-email-code-label] { margin-right: auto; }
.fghb-email-code-header .fghb-button { flex: 0 0 auto; width: auto; min-height: 42px; padding: 9px 14px; }
.fghb-email-code-panel .fghb-field { margin-bottom: 8px; }
.fghb-email-code-panel > .fghb-button { min-height: 42px; padding: 9px 14px; }
.fghb-email-actions [data-email-status] { color: var(--fghb-muted); line-height: 1.6; }
.fghb-email-actions [data-email-status].is-success { color: var(--fghb-success); font-weight: 650; }
.fghb-followup-primary-action { margin-top: 16px; }
.fghb-followup-primary-action .fghb-button { width: 100%; }
.fghb-followup [hidden] { display: none; }
.fghb-followup .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.fghb-followup .fghb-progress-item { min-width: 0; }
.fghb-followup .fghb-progress-item strong { white-space: normal; }
.fghb-followup .fghb-progress-item span { flex-shrink: 0; }
.fghb-followup input[readonly] { background: #f6f8fa; color: var(--fghb-muted); }
.fghb-followup textarea { width: 100%; min-height: 100px; padding: 11px 14px; border: 1px solid var(--fghb-border); border-radius: 10px; font: inherit; color: var(--fghb-text); background: #fff; resize: vertical; }
.fghb-followup textarea:focus { outline: none; border-color: var(--fghb-primary); box-shadow: 0 0 0 3px rgba(6,104,201,.12); }
.fghb-followup input[type="file"] { min-width: 0; font-size: 13px; padding: 10px; }
.fghb-followup input::file-selector-button { border: 0; border-radius: 5px; padding: 5px 7px; margin-right: 8px; background: #eef3f7; color: var(--fghb-text); font: inherit; cursor: pointer; }
.fghb-followup .fghb-upload-help { font-size: 13px; margin-bottom: 16px; }
.fghb-followup .is-secondary { background: #eef3f7; color: var(--fghb-text); }
.fghb-followup .is-secondary:hover { background: #dde7ef; }
.fghb-followup .fghb-summary-card { margin-bottom: 26px; padding: 16px; border: 1px solid var(--fghb-border); border-radius: 10px; background: #f6f8fa; }
.fghb-followup .fghb-followup-address { overflow-wrap: anywhere; }
.fghb-followup .fghb-followup-address p { margin: 6px 0 0; color: var(--fghb-muted); }
.fghb-followup .fghb-summary-reference { display: flex; justify-content: space-between; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--fghb-border); }
.fghb-followup-package-field { min-width: 0; border: 0; padding: 0; margin: 0 0 26px; }
.fghb-followup-package-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.fghb-followup-package-header strong span { color: var(--fghb-danger); }
.fghb-followup-package-field .fghb-refresh-packages { flex: 0 0 auto; width: auto; min-height: 42px; padding: 9px 14px; }
.fghb-followup .fghb-packages { grid-template-columns: 1fr; margin-bottom: 16px; }

.fghb-followup-package small { color: var(--fghb-muted); margin-top: 4px; }
.fghb.fghb-followup input[aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]),
.fghb.fghb-followup select[aria-invalid="true"],
.fghb.fghb-followup textarea[aria-invalid="true"] { border-color: var(--fghb-danger); }
.fghb.fghb-followup input[aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]):focus,
.fghb.fghb-followup select[aria-invalid="true"]:focus,
.fghb.fghb-followup textarea[aria-invalid="true"]:focus { border-color: var(--fghb-danger); box-shadow: 0 0 0 3px rgba(217,45,32,.12); }
.fghb-followup [data-followup-status]:not(:empty) { padding: 12px; border-radius: 8px; background: #eff8ff; color: var(--fghb-primary-dark); }
.fghb-followup button:focus-visible, .fghb-followup a:focus-visible { outline: 3px solid var(--fghb-primary); outline-offset: 3px; }
.fghb-followup .fghb-snapshot { overflow-wrap: anywhere; }
.fghb-followup .fghb-snapshot table { width: 100%; }
.fghb-followup .fghb-snapshot th, .fghb-followup .fghb-snapshot td { padding: 8px; text-align: left; }
@media (prefers-reduced-motion: reduce) { .fghb-followup .fghb-step.is-active { animation: none; } }

@media (max-width: 540px) {
    .fghb-email-code-header { gap: 8px; }
    .fghb-email-code-header [data-email-code-label], .fghb-email-code-header .fghb-button { font-size: 13px; }
    .fghb-followup-package-header { align-items: stretch; flex-direction: column; }
    .fghb-followup-package-field .fghb-refresh-packages { width: 100%; }
    .fghb-followup .fghb-summary-reference { align-items: flex-start; flex-direction: column; gap: 4px; }
}
