.wpf-fallback-form-wrapper {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.wpf-fallback-form-wrapper h3 {
    color: #0b1a4a; /* Theme azul oscuro */
    font-weight: 800;
}

#wpf-fallback-form label {
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
    font-size: 14px;
}

#wpf-fallback-form .form-control {
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 10px 12px;
    font-size: 15px;
    margin-bottom: 15px;
}

#wpf-fallback-form .form-control:focus {
    border-color: #12b740; /* Theme verde */
    box-shadow: 0 0 0 0.2rem rgba(18, 183, 64, 0.25);
}

#wpf-fallback-form button[type="submit"] {
    background-color: #12b740; /* Verde */
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    border-radius: 50px;
    transition: all 0.3s ease;
}

#wpf-fallback-form button[type="submit"]:hover {
    background-color: #0e9a34;
    transform: translateY(-2px);
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: .25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Success State Styling */
#wpf-success-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    border-radius: 8px;
    border: 2px solid #12b740;
}

.success-title {
    color: #0e9a34;
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 15px;
}

.success-msg {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

/* Success Checkmark SVG Animation */
.success-icon-wrapper {
    width: 80px;
    height: 80px;
}

.success-svg {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0 auto;
}

.success-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #12b740;
    fill: none;
    animation: success-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: #12b740;
    animation: success-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes success-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}
