/* ── Field wrapper ───────────────────────────────── */
.field-wrap {
    position: relative;
    width: 100%;
}

/* ── Inline error text ───────────────────────────── */
.cf-error-msg {
    display: block;
    font-size: 12px;
    color: #e53e3e;
    margin-top: 4px;
    /* min-height: 16px; */
    /* line-height: 1.3; */
}

/* ── Error state: red border on input/textarea ───── */
.field-wrap.has-error input,
.field-wrap.has-error textarea {
    border-color: #e53e3e !important;
    outline-color: #e53e3e !important;
}

/* ── Captcha row ─────────────────────────────────── */
.cf-captcha-wrap {
    /* margin-top: 18px; */
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
}

/* ── Captcha / generic error notice ─────────────── */
.cf-captcha-status {
    display: none;
    margin-top: 8px;
    padding: 10px 14px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    font-size: 13px;
    color: #c53030;
    line-height: 1.45;
}

.cf-captcha-status.show {
    display: block;
}

/* ── Submit button loading state ─────────────────── */
#btnSubmit {
    position: relative;
    transition: opacity 0.2s;
}

#btnSubmit.loading {
    opacity: 0.75;
    pointer-events: none;
    cursor: not-allowed;
}

#btnSubmit.loading .cf-btn-label {
    visibility: hidden;
}

#btnSubmit.loading .cf-btn-spinner {
    display: inline-block;
}

/* Spinner */
.cf-btn-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cf-spin 0.7s linear infinite;
}

@keyframes cf-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ── Success overlay ─────────────────────────────── */
.cf-success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cf-success-overlay.show {
    display: flex;
}

.cf-success-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 40px 36px 34px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: cf-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes cf-pop {
    from {
        opacity: 0;
        transform: scale(0.88);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cf-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e6f9f0;
    color: #22a06b;
    font-size: 28px;
    line-height: 60px;
    margin: 0 auto 16px;
    border: 2px solid #b7f0d4;
}

.cf-success-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #4ea458;
}

.cf-success-msg {
    font-size: 15px;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

