/**
 * ============================================================
 * ESTILOS ESPECÍFICOS PARA FORMULÁRIOS
 * ============================================================
 */

/* Payment Options */
.payment-option {
    transition: all 0.3s ease !important;
}

.payment-option:hover {
    border-color: var(--cor-azul-escuro) !important;
    background: #F0F9FF !important;
    transform: translateX(4px);
    box-shadow: var(--sombra-sm);
}

.payment-option input[type="radio"]:checked + div {
    color: var(--cor-azul-escuro);
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: var(--cor-azul-escuro) !important;
    background: #EFF6FF !important;
    box-shadow: 0 0 0 3px rgba(0, 43, 92, 0.1);
}

/* Input Focus States */
.form-control:focus {
    border-color: var(--cor-azul-escuro) !important;
    box-shadow: 0 0 0 3px rgba(0, 43, 92, 0.15) !important;
}

.form-control.error {
    border-color: var(--cor-erro) !important;
    background: #FEF2F2;
}

.form-control.success {
    border-color: var(--cor-sucesso) !important;
    background: #ECFDF5;
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    background: var(--cor-cinza-200);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 2px;
}

.password-strength.weak .password-strength-bar {
    width: 33%;
    background: var(--cor-erro);
}

.password-strength.medium .password-strength-bar {
    width: 66%;
    background: var(--cor-aviso);
}

.password-strength.strong .password-strength-bar {
    width: 100%;
    background: var(--cor-sucesso);
}

/* Loading Spinner */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 0.8s linear infinite;
}

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

/* Form Validation Messages */
.form-error {
    color: var(--cor-erro);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-success {
    color: var(--cor-sucesso);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Checkbox and Radio Custom Styles */
input[type="checkbox"],
input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--cor-azul-escuro);
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    accent-color: var(--cor-azul-escuro);
}

