/* Traffic Plus — shared form UX styles */

.form-field {
    margin-bottom: 1rem;
}

.form-field label,
.form-label-custom {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.35rem;
}

.form-field label .required,
.form-label-custom .required {
    color: #C62626;
    margin-left: 2px;
}

.form-field .form-hint {
    display: block;
    font-size: 0.75rem;
    color: #757575;
    margin-top: 0.25rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon > i.bi,
.input-with-icon > i.fas {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #757575;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.input-with-icon input,
.input-with-icon select,
.input-with-icon textarea {
    padding-left: 2.5rem;
}

.input-with-icon.has-toggle input {
    padding-right: 2.75rem;
}

.input-with-icon .password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #757575;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 2;
    line-height: 1;
}

.input-with-icon .password-toggle-btn:hover {
    color: #C62626;
}

/* Dark theme forms (dashboard) */
.dark-form .form-field label,
.dark-form .form-label-custom {
    color: var(--text-secondary, #adb5bd);
}

.dark-form .form-field .form-hint {
    color: var(--text-muted, #6c757d);
}

.dark-form .input-with-icon > i.bi {
    color: var(--text-muted, #6c757d);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.step-header i {
    font-size: 1.5rem;
    color: var(--primary-color, #C62626);
}

.step-header h4 {
    margin: 0;
}

.optional-badge {
    font-size: 0.7rem;
    font-weight: 500;
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.form-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.form-alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 3px solid #dc3545;
}

.form-alert-info {
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    border-left: 3px solid #0d6efd;
}

.otp-container label.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
