/* ============================================
   BHD NOTIFY ME — Signup Form
   Copyright (c) 2026 Blue Heron Data
   blueherondata.com — All rights reserved.
   ============================================ */

/* ---- Wrapper ---- */
.bhd-nm-wrapper {
    max-width: 560px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Form Container ---- */
.bhd-nm-form-container {
    background: #FFFFFF;
    border: 2px solid #D5E8F0;
    border-radius: 10px;
    padding: 28px 32px;
}

.bhd-nm-heading {
    color: #2C4A6E;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 16px 0;
}

/* ---- Fields ---- */
.bhd-nm-field {
    margin-bottom: 16px;
}

.bhd-nm-row {
    display: flex;
    gap: 16px;
}

.bhd-nm-half {
    flex: 1;
}

.bhd-nm-label {
    display: block;
    font-weight: 600;
    color: #2C4A6E;
    margin-bottom: 5px;
    font-size: 0.92rem;
}

.bhd-nm-optional {
    font-weight: 400;
    color: #6B8FAD;
    font-size: 0.82rem;
}

.bhd-nm-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #B0C4D8;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    background: #FFFFFF;
}

.bhd-nm-input:focus {
    border-color: #4A7CAA;
    box-shadow: 0 0 0 3px rgba(74, 124, 170, 0.15);
    outline: none;
}

.bhd-nm-input::placeholder {
    color: #A0B4C8;
}

/* ---- Checkboxes ---- */
.bhd-nm-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.bhd-nm-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid #D5E8F0;
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    user-select: none;
    font-size: 0.88rem;
    color: #2C4A6E;
}

.bhd-nm-checkbox-label:hover {
    border-color: #4A7CAA;
    background: #F0F7FB;
}

.bhd-nm-checkbox-label input[type="checkbox"] {
    display: none;
}

.bhd-nm-checkbox-label input[type="checkbox"]:checked + .bhd-nm-checkbox-text {
    font-weight: 600;
}

.bhd-nm-checkbox-label:has(input:checked) {
    border-color: #4A7CAA;
    background: #EAF2F8;
}

.bhd-nm-checkbox-text {
    pointer-events: none;
}

/* ---- Privacy Notice ---- */
.bhd-nm-privacy {
    background: #F0F7EC;
    border: 1px solid #C5DFB6;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #3D6B2E;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ---- Messages ---- */
.bhd-nm-message {
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.88rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.bhd-nm-message.bhd-nm-error {
    background: #FFF5F5;
    border: 1px solid #E8B4B4;
    color: #9B2C2C;
}

.bhd-nm-message.bhd-nm-info {
    background: #F0F4F8;
    border: 1px solid #C0D4E4;
    color: #3A5A7A;
}

/* ---- Submit Button ---- */
.bhd-nm-submit-btn {
    display: block;
    width: 100%;
    padding: 14px 28px;
    background-color: #2C4A6E;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-family: inherit;
}

.bhd-nm-submit-btn:hover:not(:disabled) {
    background-color: #4A7CAA;
    transform: translateY(-1px);
}

.bhd-nm-submit-btn:disabled {
    background-color: #B0C4D8;
    cursor: not-allowed;
    transform: none;
}

/* ---- reCAPTCHA Notice ---- */
.bhd-nm-recaptcha-notice {
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    margin-top: 12px;
    line-height: 1.5;
}

.bhd-nm-recaptcha-notice a {
    color: #6B8FAD;
    text-decoration: none;
}

.bhd-nm-recaptcha-notice a:hover {
    text-decoration: underline;
}

/* ---- Success State ---- */
.bhd-nm-success {
    text-align: center;
    padding: 32px 20px;
}

.bhd-nm-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.bhd-nm-success-heading {
    color: #2C4A6E;
    font-size: 1.3rem;
    margin: 0 0 8px 0;
}

.bhd-nm-success-text {
    color: #6B8FAD;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* ---- Compact Variant (for homepage) ---- */
.bhd-nm-compact .bhd-nm-form-container {
    padding: 20px 24px;
}

.bhd-nm-compact .bhd-nm-row {
    flex-direction: row;
}

.bhd-nm-compact .bhd-nm-checkboxes {
    gap: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .bhd-nm-wrapper {
        max-width: 100%;
    }

    .bhd-nm-form-container {
        padding: 20px;
    }

    .bhd-nm-row {
        flex-direction: column;
        gap: 0;
    }

    .bhd-nm-checkboxes {
        flex-direction: column;
        gap: 8px;
    }

    .bhd-nm-checkbox-label {
        justify-content: center;
    }
}

/* ---- Hide reCAPTCHA badge (we have the text notice instead) ---- */
.grecaptcha-badge {
    visibility: hidden !important;
}
