/* ── Trigger link in notice bar ───────────────────────────── */
.wtofe-rf-trigger-wrap {
    margin-left: auto;
}
.wtofe-rf-trigger {
    text-decoration: underline;
    cursor: pointer;
    color: #2271b1;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
}
.wtofe-rf-trigger:hover { color: #135e96; }

/* ── Overlay ──────────────────────────────────────────────── */
.wtofe-rf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Modal ────────────────────────────────────────────────── */
.wtofe-rf-modal {
    position: relative;
    background: #f5fafe;
    border-radius: 10px;
    width: 95%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 36px 36px;
    box-sizing: border-box;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
}

/* ── Close button ─────────────────────────────────────────── */
.wtofe-rf-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #32373e;
    background: none;
    color: #32373e;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.wtofe-rf-close:hover { background: #f0f0f0; }

/* ── Headings ─────────────────────────────────────────────── */
.wtofe-rf-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #32373e;
    margin: 0 0 4px;
}
.wtofe-rf-subtitle {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: #32373e;
    margin: 0 0 20px;
}

/* ── Form elements ────────────────────────────────────────── */
.wtofe-rf-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #32373e;
    margin-top: 16px;
}
.wtofe-rf-caption {
    display: block;
    font-size: 13px;
    color: #6d7277;
    margin-bottom: 6px;
}
#wtofe-rf-form textarea {
    width: 100%;
    height: 150px;
    border: 1px solid #c7cbd1;
    border-radius: 6px;
    background: #fff;
    padding: 8px 10px;
    box-sizing: border-box;
    resize: vertical;
    font-size: 13px;
}
.wtofe-rf-checkbox-row {
    margin-top: 10px;
    font-size: 13px;
    color: #32373e;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wtofe-rf-email-input {
    width: 100%;
    max-width: 400px;
    height: 40px;
    border: 1px solid #c7cbd1;
    border-radius: 6px;
    background: #fff;
    padding: 0 10px;
    margin-top: 6px;
    font-size: 13px;
    box-sizing: border-box;
}

/* ── Inline notice (error / success) ─────────────────────── */
.wtofe-rf-notice {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 13px;
}
.wtofe-rf-notice.is-error   { background: #fde8e8; color: #991b1b; border: 1px solid #fca5a5; }
.wtofe-rf-notice.is-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }

/* ── Buttons ──────────────────────────────────────────────── */
.wtofe-rf-btn-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
}
.wtofe-rf-btn-row .wtofe-rf-cancel {
    background: none;
    color: #3157a6;
    border: 1px solid #3157a6 !important;
    height: 40px;
    padding: 0 28px !important;
    font-size: 14px;
}
.wtofe-rf-btn-row .wtofe-rf-submit {
    background: #3157a6;
    border-color: #3157a6 !important;
    color: #fff;
    height: 40px;
    padding: 0 28px !important;
    font-size: 14px;
}
.wtofe-rf-btn-row .wtofe-rf-submit:hover { background: #254a8a; }
.wtofe-rf-btn-row .wtofe-rf-submit:disabled { opacity: .6; cursor: not-allowed; }