/* Validation States */
.form-control.is-invalid {
    border-color: #EF4444;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    display: none;
    color: #EF4444;
    font-size: 0.75rem;
    margin-top: 4px;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Form Submission States */
.form-alert {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-alert.is-active {
    display: flex;
}

.form-alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

.form-alert-error svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #EF4444;
}

.form-success-state {
    display: none;
    text-align: center;
    padding: 2rem 0;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.form-success-state.is-active {
    display: flex;
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10B981;
    margin-bottom: 0.5rem;
}

.success-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.btn-submit {
    position: relative;
}

.btn-submit .btn-text {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.btn-submit .btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-submit .btn-loader .dot {
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}

.btn-submit .btn-loader .dot:nth-child(1) { animation-delay: -0.32s; }
.btn-submit .btn-loader .dot:nth-child(2) { animation-delay: -0.16s; }

.btn-submit.is-loading {
    pointer-events: none;
}

.btn-submit.is-loading .btn-text {
    opacity: 0;
    transform: translateY(10px);
}

.btn-submit.is-loading .btn-loader {
    opacity: 1;
    transform: translate(-50%, -50%);
}

@keyframes dot-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.honeypot {
    display: none !important;
}
