/* ── NCF Wrapper ───────────────────────────────────────── */
.ncf-wrapper {
    width: 100%;
    max-width: 600px;
}

/* ── Form Layout ───────────────────────────────────────── */
.ncf-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.ncf-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.ncf-row .ncf-field {
    flex: 1;
    min-width: 0;
}

/* ── Fields ────────────────────────────────────────────── */
.ncf-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

/* Hide labels but keep accessible for screen readers */
.ncf-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.ncf-field input {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
    margin: 0;
}

.ncf-field input::placeholder {
    color: #9ca3af;
}

.ncf-field input:focus {
    border-color: #801FFF;
    box-shadow: 0 0 0 3px rgba(128,31,255,0.10);
}

/* ── Error State ───────────────────────────────────────── */
.ncf-field.ncf-has-error input {
    border-color: #c02b0a;
    box-shadow: 0 0 0 3px rgba(192,43,10,0.08);
}

.ncf-error {
    font-size: 13px;
    color: #c02b0a;
    min-height: 16px;
    display: block;
    margin: 0;
}

/* ── Notice (success / warning / error) ────────────────── */
.ncf-notice {
    display: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.ncf-notice.ncf-notice--success {
    display: block;
    background: #e6f4ea;
    border: 1px solid #2e7d32;
    color: #1b5e20;
}

.ncf-notice.ncf-notice--warning {
    display: block;
    background: #fff8e1;
    border: 1px solid #f9a825;
    color: #6d4c00;
}

.ncf-notice.ncf-notice--error {
    display: block;
    background: #fdecea;
    border: 1px solid #c62828;
    color: #b71c1c;
}

/* ── Submit Button ─────────────────────────────────────── */
.ncf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 36px;
    background: #801FFF;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 0 40px 40px 0;
    cursor: pointer;
    transition: background 0.18s, transform 0.1s;
    align-self: flex-start;
    min-width: 200px;
    letter-spacing: 0.01em;
}

.ncf-btn:hover:not(:disabled) {
    background: #6a0fe0;
}

.ncf-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.ncf-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Spinner ───────────────────────────────────────────── */
.ncf-btn-spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ncf-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.ncf-btn.ncf-loading .ncf-btn-spinner {
    display: block;
}

@keyframes ncf-spin {
    to { transform: rotate(360deg); }
}

/* ── Mobile ────────────────────────────────────────────── */
@media (max-width: 520px) {
    .ncf-row {
        flex-direction: column;
        gap: 12px;
    }

    .ncf-btn {
        width: 100%;
        border-radius: 0 40px 40px 0;
    }
}
