/* ── SSN Forms – Frontend Styles ───────────────────────────────────── */

.ssn-form-wrap {
    max-width: 640px;
    margin: 0 auto;
}

/* Success state: hide form, show message */
.ssn-form-wrap.ssn-submitted .ssn-form {
    display: none;
}
.ssn-form-wrap.ssn-submitted .ssn-form-response {
    display: block !important;
}

/* Response box */
.ssn-form-response {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 18px 22px;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.6;
}
.ssn-form-response.ssn-has-error {
    background: #fde8e8;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Field rows */
.ssn-field-row {
    margin-bottom: 18px;
}

/* Labels */
.ssn-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}
.ssn-required {
    color: #d63638;
    margin-left: 3px;
}

/* Inputs */
.ssn-input,
.ssn-textarea,
.ssn-select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
.ssn-input:focus,
.ssn-textarea:focus,
.ssn-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,.15);
}
.ssn-textarea {
    min-height: 130px;
    resize: vertical;
}
.ssn-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Error state */
.ssn-input.ssn-error,
.ssn-textarea.ssn-error,
.ssn-select.ssn-error {
    border-color: #d63638;
}
.ssn-field-error {
    color: #d63638;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Fieldset (radio/checkbox) */
.ssn-fieldset {
    border: none;
    margin: 0;
    padding: 0;
}
.ssn-fieldset legend.ssn-label {
    float: left;
    width: 100%;
    padding-bottom: 6px;
}
.ssn-choice-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 15px;
    color: #444;
}
.ssn-choice-label input[type="radio"],
.ssn-choice-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #0073aa;
}

/* Section elements */
.ssn-heading {
    font-size: 18px;
    color: #333;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}
.ssn-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

/* Submit button */
.ssn-submit-row {
    margin-top: 10px;
}
.ssn-submit-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    font-family: inherit;
}
.ssn-submit-btn:hover {
    background: #005d8c;
}
.ssn-submit-btn:active {
    transform: scale(.98);
}
.ssn-submit-btn:disabled,
.ssn-submit-btn.ssn-loading {
    background: #999;
    cursor: not-allowed;
}

/* CAPTCHA row */
.ssn-captcha-row {
    margin-bottom: 18px;
}

/* Half-width helper (CSS class on field) */
.ssn-half-width {
    display: inline-block;
    width: 48%;
    margin-right: 2%;
    vertical-align: top;
}
