/**
 * SwissProfs - Forms CSS
 * Styles unifiés pour tous les formulaires de la plateforme
 *
 * @package SwissProfs
 */

/* ==========================================================================
   FORM BASE
   ========================================================================== */

.sp-form {
    max-width: 100%;
}

.sp-form-group {
    margin-bottom: 1.5rem;
}

.sp-form-group:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   LABELS
   ========================================================================== */

.sp-form-label,
label.sp-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #374151;
}

.sp-form-label .required,
.sp-required {
    color: #E63946;
    margin-left: 0.25rem;
}

.sp-form-label-inline {
    display: inline;
    margin-bottom: 0;
}

/* ==========================================================================
   INPUT CONTROLS
   ========================================================================== */

.sp-form-control {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    color: #1F2937;
    background-color: #fff;
    background-clip: padding-box;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.sp-form-control:focus {
    outline: none;
    border-color: #E63946;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.sp-form-control::placeholder {
    color: #9CA3AF;
}

.sp-form-control:disabled,
.sp-form-control[readonly] {
    background-color: #F9FAFB;
    color: #6B7280;
    cursor: not-allowed;
}

/* Size Variants */
.sp-form-control-sm {
    min-height: 36px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.sp-form-control-lg {
    min-height: 56px;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
}

/* Validation States */
.sp-form-control.is-valid,
.sp-form-control.valid {
    border-color: #10B981;
}

.sp-form-control.is-valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.sp-form-control.is-invalid,
.sp-form-control.invalid,
.sp-form-control.error {
    border-color: #DC2626;
}

.sp-form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

/* ==========================================================================
   SELECT
   ========================================================================== */

.sp-form-select,
select.sp-form-control {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: #1F2937;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5em 1.5em;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.sp-form-select:focus {
    outline: none;
    border-color: #E63946;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

/* ==========================================================================
   TEXTAREA
   ========================================================================== */

textarea.sp-form-control {
    min-height: 120px;
    resize: vertical;
}

textarea.sp-form-control.sp-textarea-sm {
    min-height: 80px;
}

textarea.sp-form-control.sp-textarea-lg {
    min-height: 200px;
}

/* Auto-resize textarea */
textarea.sp-form-control.auto-resize {
    resize: none;
    overflow: hidden;
}

/* ==========================================================================
   INPUT GROUPS (avec icônes)
   ========================================================================== */

.sp-input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

/* Icon Left */
.sp-input-icon-left,
.sp-input-group-icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
    z-index: 1;
}

.sp-input-icon-left .dashicons,
.sp-input-group-icon-left .dashicons {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
}

.sp-input-group.has-icon-left .sp-form-control,
.has-icon-left .sp-form-control {
    padding-left: 3rem;
}

/* Icon Right */
.sp-input-icon-right,
.sp-input-group-icon-right {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 1;
    transition: color 0.15s ease;
}

.sp-input-icon-right:hover {
    color: #374151;
}

.sp-input-group.has-icon-right .sp-form-control,
.has-icon-right .sp-form-control {
    padding-right: 3rem;
}

/* Input Group Addons */
.sp-input-group-prepend,
.sp-input-group-append {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    font-size: 0.9375rem;
    color: #6B7280;
}

.sp-input-group-prepend {
    border-right: none;
    border-radius: 0.75rem 0 0 0.75rem;
}

.sp-input-group-append {
    border-left: none;
    border-radius: 0 0.75rem 0.75rem 0;
}

.sp-input-group .sp-form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.sp-input-group .sp-form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* ==========================================================================
   CHECKBOX & RADIO - STANDARD
   ========================================================================== */

.sp-checkbox-wrapper,
.sp-radio-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.sp-checkbox-wrapper:last-child,
.sp-radio-wrapper:last-child {
    margin-bottom: 0;
}

.sp-checkbox-input,
.sp-radio-input {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    cursor: pointer;
    accent-color: #E63946;
}

.sp-checkbox-label,
.sp-radio-label {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.5;
}

.sp-checkbox-label a,
.sp-radio-label a {
    color: #E63946;
    text-decoration: underline;
}

/* Checkbox/Radio Group */
.sp-checkbox-group,
.sp-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sp-checkbox-group-inline,
.sp-radio-group-inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* ==========================================================================
   CUSTOM CHECKBOX
   ========================================================================== */

.sp-custom-checkbox {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-left: 2rem;
    cursor: pointer;
    user-select: none;
}

.sp-custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.sp-custom-checkbox .checkmark {
    position: absolute;
    top: 0.125rem;
    left: 0;
    height: 1.25rem;
    width: 1.25rem;
    background-color: #fff;
    border: 2px solid #D1D5DB;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
}

.sp-custom-checkbox:hover input ~ .checkmark {
    border-color: #E63946;
}

.sp-custom-checkbox input:checked ~ .checkmark {
    background-color: #E63946;
    border-color: #E63946;
}

.sp-custom-checkbox input:focus ~ .checkmark {
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.25);
}

.sp-custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 0.375rem;
    top: 0.125rem;
    width: 0.3125rem;
    height: 0.625rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sp-custom-checkbox input:checked ~ .checkmark::after {
    display: block;
}

/* ==========================================================================
   RADIO CARDS
   ========================================================================== */

.sp-radio-cards {
    display: grid;
    gap: 1rem;
}

.sp-radio-cards-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sp-radio-cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sp-radio-cards-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .sp-radio-cards-3,
    .sp-radio-cards-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sp-radio-cards-2,
    .sp-radio-cards-3,
    .sp-radio-cards-4 {
        grid-template-columns: 1fr;
    }
}

.sp-radio-card {
    position: relative;
    cursor: pointer;
}

.sp-radio-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sp-radio-card-inner,
.sp-radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.15s ease;
}

.sp-radio-card:hover .sp-radio-card-inner,
.sp-radio-card:hover .sp-radio-card-content {
    border-color: #E63946;
    background: #FEF2F2;
}

.sp-radio-card input:checked + .sp-radio-card-inner,
.sp-radio-card input:checked + .sp-radio-card-content {
    border-color: #E63946;
    background: #FEF2F2;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.sp-radio-card-icon {
    font-size: 2rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.sp-radio-card-icon .dashicons {
    width: 2rem;
    height: 2rem;
}

.sp-radio-card input:checked + .sp-radio-card-inner .sp-radio-card-icon,
.sp-radio-card input:checked + .sp-radio-card-content .sp-radio-card-icon {
    color: #E63946;
}

.sp-radio-card-title {
    font-weight: 600;
    color: #111827;
    font-size: 0.9375rem;
}

.sp-radio-card-desc {
    font-size: 0.8125rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* ==========================================================================
   FILE UPLOAD
   ========================================================================== */

.sp-file-upload {
    position: relative;
}

.sp-file-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.sp-file-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: #F9FAFB;
    border: 2px dashed #D1D5DB;
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.15s ease;
}

.sp-file-upload:hover .sp-file-upload-zone,
.sp-file-upload.is-dragover .sp-file-upload-zone {
    border-color: #E63946;
    background: #FEF2F2;
}

.sp-file-upload-icon {
    font-size: 3rem;
    color: #9CA3AF;
    margin-bottom: 1rem;
}

.sp-file-upload-icon .dashicons {
    width: 3rem;
    height: 3rem;
}

.sp-file-upload-text {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.sp-file-upload-text span {
    color: #E63946;
}

.sp-file-upload-hint {
    font-size: 0.8125rem;
    color: #9CA3AF;
}

/* File Preview */
.sp-file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.sp-file-preview-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 0.5rem;
    color: #6B7280;
}

.sp-file-preview-info {
    flex: 1;
    min-width: 0;
}

.sp-file-preview-name {
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-file-preview-size {
    font-size: 0.8125rem;
    color: #9CA3AF;
}

.sp-file-preview-remove {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FEE2E2;
    border: none;
    border-radius: 0.375rem;
    color: #DC2626;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sp-file-preview-remove:hover {
    background: #FECACA;
}

/* ==========================================================================
   FORM MESSAGES (Help, Error, Success)
   ========================================================================== */

.sp-form-hint,
.sp-form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6B7280;
}

.sp-form-error {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #DC2626;
}

.sp-form-error .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

.sp-form-success {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #059669;
}

/* ==========================================================================
   FORM ROWS (Grille)
   ========================================================================== */

.sp-form-row {
    display: grid;
    gap: 1rem;
}

.sp-form-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sp-form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sp-form-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .sp-form-row-3,
    .sp-form-row-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sp-form-row-2,
    .sp-form-row-3,
    .sp-form-row-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FORM DIVIDER
   ========================================================================== */

.sp-form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: #9CA3AF;
    font-size: 0.875rem;
}

.sp-form-divider::before,
.sp-form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

/* ==========================================================================
   FORM ACTIONS
   ========================================================================== */

.sp-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.sp-form-actions.center {
    justify-content: center;
}

.sp-form-actions.between {
    justify-content: space-between;
}

.sp-form-actions.end {
    justify-content: flex-end;
}

.sp-form-actions.stack {
    flex-direction: column;
}

/* ==========================================================================
   FORM CARD
   ========================================================================== */

.sp-form-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sp-form-card-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.sp-form-card-header h2,
.sp-form-card-header h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.sp-form-card-header p {
    margin: 0;
    color: #6B7280;
    font-size: 0.9375rem;
}

.sp-form-card-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}

/* ==========================================================================
   INLINE FORM
   ========================================================================== */

.sp-form-inline {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.sp-form-inline .sp-form-control {
    flex: 1;
}

.sp-form-inline .sp-btn {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .sp-form-inline {
        flex-direction: column;
    }
    
    .sp-form-inline .sp-btn {
        width: 100%;
    }
}

/* ==========================================================================
   SEARCH FORM
   ========================================================================== */

.sp-search-form {
    position: relative;
}

.sp-search-form .sp-form-control {
    padding-left: 3rem;
    padding-right: 3rem;
}

.sp-search-form .sp-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
}

.sp-search-form .sp-search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E5E7EB;
    border: none;
    border-radius: 50%;
    color: #6B7280;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.sp-search-form .sp-form-control:not(:placeholder-shown) ~ .sp-search-clear {
    opacity: 1;
}

.sp-search-form .sp-search-clear:hover {
    background: #D1D5DB;
}

/* ==========================================================================
   PRICE INPUT
   ========================================================================== */

.sp-price-input {
    position: relative;
}

.sp-price-input .sp-currency {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #6B7280;
}

.sp-price-input .sp-form-control {
    padding-left: 3.5rem;
    padding-right: 4rem;
}

.sp-price-input .sp-unit {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #9CA3AF;
}

/* ==========================================================================
   DATE/TIME INPUTS
   ========================================================================== */

input[type="date"].sp-form-control,
input[type="time"].sp-form-control,
input[type="datetime-local"].sp-form-control {
    padding-right: 0.75rem;
}

/* ==========================================================================
   RANGE SLIDER
   ========================================================================== */

.sp-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.5rem;
    background: #E5E7EB;
    border-radius: 9999px;
    outline: none;
}

.sp-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background: #E63946;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease;
}

.sp-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.sp-range-slider::-moz-range-thumb {
    width: 1.25rem;
    height: 1.25rem;
    background: #E63946;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sp-range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6B7280;
}

/* ==========================================================================
   TAG INPUT
   ========================================================================== */

.sp-tag-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    min-height: 48px;
    align-items: center;
    cursor: text;
    transition: border-color 0.15s ease;
}

.sp-tag-input-wrapper:focus-within {
    border-color: #E63946;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.sp-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem 0.25rem 0.75rem;
    background: #F3F4F6;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #374151;
}

.sp-tag-remove {
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D1D5DB;
    border: none;
    border-radius: 50%;
    color: #6B7280;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.15s ease;
}

.sp-tag-remove:hover {
    background: #9CA3AF;
    color: #fff;
}

.sp-tag-input {
    flex: 1;
    min-width: 100px;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.25rem 0;
    background: transparent;
}

/* ==========================================================================
   FORM WIZARD / STEPS
   ========================================================================== */

.sp-form-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.sp-form-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sp-form-step:not(:last-child)::after {
    content: '';
    width: 3rem;
    height: 2px;
    background: #E5E7EB;
    margin: 0 1rem;
}

.sp-step-number {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E5E7EB;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    color: #6B7280;
    transition: all 0.15s ease;
}

.sp-form-step.active .sp-step-number {
    background: #E63946;
    color: #fff;
}

.sp-form-step.completed .sp-step-number {
    background: #10B981;
    color: #fff;
}

.sp-step-label {
    font-size: 0.875rem;
    color: #6B7280;
}

.sp-form-step.active .sp-step-label {
    color: #111827;
    font-weight: 600;
}

@media (max-width: 640px) {
    .sp-form-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sp-form-step:not(:last-child)::after {
        display: none;
    }
}

/* ==========================================================================
   CHARACTER COUNTER
   ========================================================================== */

.sp-char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 0.375rem;
}

.sp-char-counter.warning {
    color: #D97706;
}

.sp-char-counter.error {
    color: #DC2626;
}

/* ==========================================================================
   PASSWORD STRENGTH
   ========================================================================== */

.sp-password-strength {
    margin-top: 0.75rem;
}

.sp-strength-bar {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.sp-strength-segment {
    flex: 1;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    transition: background 0.15s ease;
}

.sp-strength-weak .sp-strength-segment:nth-child(1) {
    background: #DC2626;
}

.sp-strength-fair .sp-strength-segment:nth-child(1),
.sp-strength-fair .sp-strength-segment:nth-child(2) {
    background: #F59E0B;
}

.sp-strength-good .sp-strength-segment:nth-child(1),
.sp-strength-good .sp-strength-segment:nth-child(2),
.sp-strength-good .sp-strength-segment:nth-child(3) {
    background: #10B981;
}

.sp-strength-strong .sp-strength-segment {
    background: #059669;
}

.sp-strength-text {
    font-size: 0.75rem;
    color: #6B7280;
}

.sp-strength-weak .sp-strength-text { color: #DC2626; }
.sp-strength-fair .sp-strength-text { color: #F59E0B; }
.sp-strength-good .sp-strength-text { color: #10B981; }
.sp-strength-strong .sp-strength-text { color: #059669; }

/* ==========================================================================
   PASSWORD TOGGLE
   ========================================================================== */

.sp-password-toggle {
    position: relative;
}

.sp-password-toggle .sp-toggle-btn,
.sp-password-toggle .sp-password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    padding: 0.25rem;
    transition: color 0.15s ease;
}

.sp-password-toggle .sp-toggle-btn:hover,
.sp-password-toggle .sp-password-toggle-btn:hover {
    color: #6B7280;
}

/* ==========================================================================
   FIELD FLOATING LABELS
   ========================================================================== */

.sp-floating-label {
    position: relative;
}

.sp-floating-label .sp-form-control {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.sp-floating-label label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #9CA3AF;
    transition: all 0.15s ease;
    pointer-events: none;
    background: #fff;
    padding: 0 0.25rem;
}

.sp-floating-label .sp-form-control:focus ~ label,
.sp-floating-label .sp-form-control:not(:placeholder-shown) ~ label {
    top: 0.5rem;
    transform: translateY(0);
    font-size: 0.75rem;
    color: #E63946;
}

/* ==========================================================================
   FORM SECTION
   ========================================================================== */

.sp-form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E5E7EB;
}

.sp-form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sp-form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.sp-form-section-desc {
    color: #6B7280;
    margin-bottom: 1.5rem;
}
