/* NerveConnect Form Styles */
.ncf-wrapper {
    max-width: 780px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #333;
}

.ncf-section {
    background: #fff;
    border: 1px solid #e0e6f0;
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(33, 90, 169, .06);
}

.ncf-section-title {
    color: #215AA9;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eef8;
}

.ncf-section-sub {
    color: #666;
    font-size: 13.5px;
    margin: 0 0 18px;
}

.ncf-field-group {
    margin-bottom: 18px;
}

.ncf-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #444;
    font-size: 14px;
}

.ncf-label em {
    font-weight: 400;
    color: #888;
}

/* ── Radio & Checkbox Groups ── */
.ncf-radio-group,
.ncf-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ncf-radio-option,
.ncf-check-option {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f4f7fd;
    border: 1.5px solid #c9d8ef;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: all .18s ease;
    user-select: none;
}

.ncf-radio-option:hover,
.ncf-check-option:hover {
    border-color: #215AA9;
    background: #eaf0fc;
}

.ncf-radio-option input,
.ncf-check-option input {
    accent-color: #215AA9;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.ncf-radio-option input:checked + span,
.ncf-check-option input:checked + span {
    color: #215AA9;
    font-weight: 600;
}

.ncf-radio-option:has(input:checked),
.ncf-check-option:has(input:checked) {
    border-color: #215AA9;
    background: #dde9fa;
}

/* ── Textarea ── */
.ncf-textarea {
    width: 100%;
    border: 1.5px solid #c9d8ef;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color .18s;
    box-sizing: border-box;
    background: #fafcff;
    color: #333;
}

.ncf-textarea:focus {
    outline: none;
    border-color: #215AA9;
    box-shadow: 0 0 0 3px rgba(33, 90, 169, .12);
}

/* ── Required asterisk ── */
.ncf-required { color: #d63638; }

/* ── Notes box ── */
.ncf-notes-box {
    background: #eef4ff;
    border-left: 4px solid #215AA9;
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #444;
}

.ncf-notes-box strong {
    color: #215AA9;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.ncf-notes-box ul { margin: 0 0 10px 18px; padding: 0; }
.ncf-notes-box li { margin-bottom: 4px; }
.ncf-notes-box p  { margin: 0; }

/* ── Submit ── */
.ncf-submit-wrap { text-align: center; margin-top: 8px; }

.ncf-submit-btn {
    background: #215AA9;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    letter-spacing: .3px;
}

.ncf-submit-btn:hover   { background: #1a4a8c; }
.ncf-submit-btn:active  { transform: scale(.98); }
.ncf-submit-btn:disabled { background: #8aacd6; cursor: not-allowed; }

/* ── Messages ── */
#ncf-messages {
    margin-bottom: 16px;
    text-align: center;
}

.ncf-msg {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.ncf-msg-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.ncf-msg-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* ── Submitter section ── */
.ncf-section-submitter {
    border-color: #b8d0ec;
    background: linear-gradient(135deg, #f7faff 0%, #ffffff 100%);
}

.ncf-section-submitter .ncf-section-title::before {
    content: '👤 ';
}

/* ── Two-column layout ── */
.ncf-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Text input & select ── */
.ncf-text-input,
.ncf-select {
    width: 100%;
    border: 1.5px solid #c9d8ef;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    background: #fafcff;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s;
    appearance: none;
    -webkit-appearance: none;
}

.ncf-text-input:focus,
.ncf-select:focus {
    outline: none;
    border-color: #215AA9;
    box-shadow: 0 0 0 3px rgba(33, 90, 169, 0.12);
    background: #fff;
}

.ncf-text-input::placeholder { color: #aab8cd; }

/* ── Select arrow ── */
.ncf-field-country { position: relative; }

.ncf-select {
    padding-right: 36px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23215AA9' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* ── Inline field errors ── */
.ncf-error {
    display: none;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #c0392b;
}

.ncf-error::before {
    content: '⚠';
    font-size: 13px;
    flex-shrink: 0;
}

.ncf-error-visible { display: flex; }

.ncf-input-error {
    border-color: #e74c3c !important;
    background: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12) !important;
}

.ncf-has-error .ncf-radio-group,
.ncf-has-error .ncf-checkbox-group {
    animation: ncf-shake 0.35s ease;
}

@keyframes ncf-shake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-5px); }
    40%  { transform: translateX(5px); }
    60%  { transform: translateX(-4px); }
    80%  { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

.ncf-msg-summary { font-size: 14px; }

/* ── "Other" field — hidden by default, jQuery slideDown/slideUp handles show/hide ── */

.ncf-other-field {
    display: none;  /* jQuery .slideDown() overrides this — do not remove */
}

.ncf-other-text,
.ncf-other-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #c9d8ef;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fafcff;
    color: #333;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.ncf-other-textarea {
    resize: vertical;
    min-height: 70px;
}

.ncf-other-text:focus,
.ncf-other-textarea:focus {
    outline: none;
    border-color: #215AA9;
    box-shadow: 0 0 0 3px rgba(33, 90, 169, 0.12);
    background: #fff;
}

.ncf-other-text::placeholder,
.ncf-other-textarea::placeholder {
    color: #aab8cd;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .ncf-section { padding: 20px 16px; }
    .ncf-two-col { grid-template-columns: 1fr; }
    .ncf-radio-group,
    .ncf-checkbox-group { flex-direction: column; }
    .ncf-submit-btn { width: 100%; }
}
