﻿/* =============================================
   FORMS - ورودی‌ها، تکست‌اریا، لیبل‌ها
   ============================================= */

/* ----- INPUT & TEXTAREA ----- */
.form-control {
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    /*padding: 1px 10px !important;*/
    font-size: 14px !important;
    font-family: IRANSans !important;
    transition: all 0.25s ease !important;
    background: #fff !important;
    color: #374151 !important;
}

    .form-control:focus {
        border-color: #66afe9 !important;
        box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6) !important;
    }

textarea.form-control {
    resize: none;
    min-height: 120px;
    line-height: 1.8;
}

/* ----- PLACEHOLDER ----- */
.form-control::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

/* ----- LABEL ----- */
label {
    font-weight: 500;
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
}

/* ----- HELP TEXT ----- */
.help-block {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.8;
}

    .help-block i {
        color: #ef4444;
        margin-left: 4px;
    }

/* ----- CHECKBOX ----- */
.large-checkbox {
    width: 14px;
    height: 14px;
    accent-color: #ef4444;
    cursor: pointer;
}

/* ----- LABEL BUTTON (انتخاب شهر/دسته‌بندی) ----- */
.btn-text-muted {
    cursor: pointer !important;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

    .btn-text-muted:hover {
        border-color: #ef4444;
        color: #ef4444;
        background: rgba(239, 68, 68, 0.03);
    }

    .btn-text-muted i {
        color: #ef4444;
    }

/* ----- SELECTED ITEMS (شهر/دسته انتخاب شده) ----- */
.label-text-sel {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444 !important;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
}

.label-text-cls {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .label-text-cls:hover {
        background: #fee2e2;
        border-color: #ef4444;
        color: #ef4444;
    }

/* ----- CHAR COUNT ----- */
#charCount {
    font-size: 12px;
    color: #9ca3af;
    text-align: left;
    margin-top: 4px;
}

/* ----- VALIDATION ERROR ----- */
.text-danger {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* ----- INPUT GROUP ----- */
.form-group {
    margin-bottom: 20px;
}

/* ----- SECTION HEADER ----- */
.section-header {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(239, 68, 68, 0.2);
}

    .section-header i {
        color: #ef4444;
        margin-left: 6px;
    }

/* ----- DARK MODE ----- */
.dark-mode .form-control {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

    .dark-mode .form-control:focus {
        border-color: #66afe9 !important;
        box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6) !important;
    }

    .dark-mode .form-control::placeholder {
        color: #64748b;
    }

.dark-mode label {
    color: #e2e8f0;
}

.dark-mode .help-block {
    color: #94a3b8;
}

.dark-mode .btn-text-muted {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

    .dark-mode .btn-text-muted:hover {
        border-color: #ef4444;
        color: #ef4444;
        background: rgba(239, 68, 68, 0.08);
    }

.dark-mode .label-text-sel {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.dark-mode .label-text-cls {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

    .dark-mode .label-text-cls:hover {
        background: rgba(239, 68, 68, 0.1);
        border-color: #ef4444;
        color: #ef4444;
    }

.dark-mode .section-header {
    color: #e2e8f0;
    border-bottom-color: rgba(239, 68, 68, 0.3);
}
