/* ==========================================================================
   LBH Coalition Form - Layout CSS
   Structural/layout only. Theme handles colors, fonts, and button styles.
   ========================================================================== */

.lbh-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Show/hide utility */
.lbh-hidden {
    display: none !important;
}

/* Honeypot field: visible to DOM/bots, invisible to humans */
.lbh-field-alt {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Form layout */
#lbh-sign-on,
.lbh-subform {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lbh-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Ensure inputs/selects fill their container */
.lbh-form-wrapper input[type="text"],
.lbh-form-wrapper input[type="email"],
.lbh-form-wrapper select {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Radio button group */
.lbh-radio-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.lbh-radio-group div {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Subheadings within org form */
.lbh-subheading {
    font-weight: bold;
    margin: 0.5rem 0 0;
}

/* Proof preview callout */
.lbh-callout {
    padding: 1rem;
    border-left: 4px solid currentColor;
    margin: 0.5rem 0;
    opacity: 0.85;
}

/* Success message */
.lbh-success-message {
    text-align: center;
    padding: 2.5rem 1rem;
}

/* Error message */
.lbh-error-msg {
    text-align: center;
    margin: 0;
}

#lbh-error {
    margin-bottom: 0.5rem;
}

/* Validation error state on inputs */
.lbh-form-wrapper input.error {
    outline: 2px solid red;
    outline-offset: 0;
}

/* Disabled submit button during processing */
#lbh-sign-on button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}
