/* Smart Contact Form Builder v2 - Frontend */

.scf-wrapper * { box-sizing: border-box; }
.scf-wrapper { margin: 0 auto; }

.scf-submit:focus {
    outline: 3px solid rgba(0,115,170,0.4);
    outline-offset: 2px;
}

.scf-submit.loading {
    position: relative;
    padding-right: 50px;
    pointer-events: none;
    opacity: 0.8;
}
.scf-submit.loading::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: scf-spin 0.7s linear infinite;
}
@keyframes scf-spin { to { transform: translateY(-50%) rotate(360deg); } }

.scf-field input.scf-error,
.scf-field textarea.scf-error,
.scf-field select.scf-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.15) !important;
}
