.efss-protected-badge {
    margin-top: 12px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.efss-protected-badge a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    border-radius: 9999px !important;
    background: #1e293b !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.3px !important;
}

.efss-protected-badge a:hover {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

.efss-badge-icon {
    font-size: 14px !important;
    line-height: 1 !important;
}

.efss-badge-text {
    line-height: 1 !important;
    color: #ffffff !important;
}

/* Ensure badge appears below button */
.elementor-field-type-submit {
    position: relative;
}

/* Validation error messages */
.efss-validation-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    animation: slideIn 0.3s ease;
}

.efss-validation-error p {
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    margin: 4px 0;
    line-height: 1.5;
}

.efss-validation-error p:first-child {
    margin-top: 0;
}

.efss-validation-error p:last-child {
    margin-bottom: 0;
}

/* Disabled submit button — applied while validation rules are not satisfied.
   Uses .efss-btn-disabled to match the JS class name. The button also has
   the native `disabled` attribute set so assistive technology announces it. */
.elementor-button.efss-btn-disabled,
.elementor-button[disabled] {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(0.3) !important;
    transition: opacity 0.2s ease, filter 0.2s ease !important;
}

/* Smooth transition when the button becomes enabled */
.elementor-button:not(.efss-btn-disabled):not([disabled]) {
    transition: opacity 0.2s ease, filter 0.2s ease !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Phone / Call-Now prompt ─────────────────────────────────────────────────
   Sits below the rule-reason line(s) inside .efss-validation-error.
   Matches the badge aesthetic: dark pill, white text, gold CTA number.       */

.efss-phone-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(239, 68, 68, 0.25);
}

.efss-phone-prompt__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.3px;
    line-height: 1;
    white-space: nowrap;
}

/* Phone icon — inline SVG data URI so no extra request is needed */
.efss-phone-prompt__label::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.15 12a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.06 1.18h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.09 8.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7a2 2 0 0 1 1.72 2.02z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

.efss-phone-prompt__number {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 9px 20px;
    background: #1e293b;
    border: 1px solid rgba(253, 224, 71, 0.35);
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    color: #fde047;
    letter-spacing: 0.8px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 0 0 rgba(253, 224, 71, 0);
    transition: background 0.2s ease, border-color 0.2s ease,
                color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on the number pill */
.efss-phone-prompt__number::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(253, 224, 71, 0.12), transparent);
    animation: efss-phone-shimmer 2.8s ease-in-out infinite;
    pointer-events: none;
}

.efss-phone-prompt__number:hover {
    background: rgba(253, 224, 71, 0.12);
    border-color: #fde047;
    color: #fef08a;
    box-shadow: 0 0 14px rgba(253, 224, 71, 0.25);
    transform: translateY(-1px);
    text-decoration: none;
}

@keyframes efss-phone-shimmer {
    0%   { left: -100%; }
    60%  { left: 160%; }
    100% { left: 160%; }
}
