.ifn-form {
    position: relative;
}

.ifn-hidden {
    display: none !important;
}

body.ifn-no-scroll {
    overflow: hidden;
}

/* Loading overlay (global, popup) */
.ifn-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.ifn-loading-box {
    text-align: center;
    padding: 28px 36px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    min-width: 220px;
}

.ifn-loading-box p {
    margin: 0;
    font-size: 15px;
    color: #333;
}

.ifn-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #f0f0f0;
    border-top-color: #ed1c24;
    border-radius: 50%;
    animation: ifn-spin 0.75s linear infinite;
    margin: 0 auto 14px;
}

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

/* Inline feedback (kept for non-error info if needed) */
.ifn-feedback {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 12px;
}

.ifn-feedback--success {
    background: #e6f9ee;
    color: #1a7a3a;
    border: 1px solid #a8dfc0;
}

.ifn-feedback--error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5b7b1;
}

.ifn-feedback--info {
    background: #eaf4ff;
    color: #1a5fa8;
    border: 1px solid #aacfee;
}

/* reCAPTCHA */
.ifn-recaptcha-row {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

/* Result / Error modal */
.ifn-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 16px;
}

.ifn-modal-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    padding: 32px 36px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    border-top: 6px solid #1a5fa8;
}

.ifn-modal--error .ifn-modal-box {
    border-top-color: #c0392b;
}

.ifn-modal--success .ifn-modal-box {
    border-top-color: #1a7a3a;
}

.ifn-modal--info .ifn-modal-box {
    border-top-color: #1a5fa8;
}

.ifn-modal-msg {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 0 0 18px;
}

.ifn-modal-contact {
    border-top: 1px solid #eee;
    margin: 0 0 18px;
    padding-top: 14px;
    text-align: left;
}

.ifn-modal-contact-help {
    margin: 0 0 8px;
    font-size: 14px;
    color: #555;
    text-align: center;
}

.ifn-modal-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.ifn-modal-contact-list li {
    margin: 4px 0;
}

.ifn-modal-contact-list a {
    color: #ed1c24;
    text-decoration: none;
    font-weight: 600;
}

.ifn-modal-contact-list a:hover {
    text-decoration: underline;
}

.ifn-contact-label {
    color: #666;
    margin-right: 4px;
}

.ifn-contact-sep {
    color: #bbb;
    margin: 0 4px;
}

.ifn-modal-close {
    min-width: 120px;
}

.ifn-optional {
    color: #888;
    font-weight: normal;
    font-size: 0.9em;
}
