/* ======= کانتینر آپلود فایل ======= */
.ginput_container_fileupload {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 25px;
    border: 3px dashed #ccc;
    border-radius: 20px;
    background-color: #fafafa;
    max-width: 500px;
    margin: 30px auto;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* ======= placeholder دوربین ======= */
.photo-placeholder {
    width: 150px;
    height: 150px;
    background: url('/wp-content/themes/yousof-rajestary-child/assets/images/photo.svg') center center no-repeat;
    background-size: contain;
    margin-bottom: 20px;
}

/* ======= منطقه Drag & Drop ======= */
.gform_drop_area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    border: 2px dashed #aaa;
    border-radius: 15px;
    background-color: #fff;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
}

.gform_drop_area:hover {
    border-color: rgba(15, 81, 50, 1);
    background-color: #f5fff5;
}

/* ======= دکمه آپلود فایل ======= */
.gform_button_select_files {
    padding: 12px 30px;
    background-color: rgba(15, 81, 50, 1);
    color: #fff;
    border-radius: 20px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

.gform_button_select_files:hover {
    background-color: #218838;
}

/* ======= پیش‌نمایش فایل‌ها ======= */
.ginput_preview_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.ginput_preview_list .ginput_preview img {
    object-fit: cover;
    border-radius: 12px;
}

/* Thumbnail اصلی */
.ginput_preview_list .ginput_preview img.thumbnail-first {
    width: 150px;
    height: 150px;
    border: 2px solid rgba(15, 81, 50, 1);
    border-radius: 15px;
}

/* سایر Thumbnailها */
.ginput_preview_list .ginput_preview img.thumbnail-other {
    width: 100px;
    height: 100px;
    border: 1px solid #aaa;
    border-radius: 10px;
}

/* اطلاعات فایل کنار Thumbnail */
.file-info {
    font-size: 13px;
    color: #555;
    text-align: center;
    margin-top: 5px;
}

/* ======= متن محدودیت‌ها ======= */
/* ======= متن محدودیت‌ها ======= */
.gfield_description.gform_fileupload_rules {
    direction: rtl; /* راست‌چین */
    text-align: right;
    font-size: 14px;
    color: #333;
    margin-top: 20px;
    line-height: 1.6;
}

/* هر محدودیت در یک خط جداگانه با آیکن تیک سبز */
.gfield_description.gform_fileupload_rules span {
    display: block; /* خط جدید */
    margin-bottom: 6px;
    position: relative;
    padding-right: 25px; /* فاصله برای آیکن */
}

/* آیکن تیک سبز */
.gfield_description.gform_fileupload_rules span::before {
    content: "\2714"; /* تیک Unicode */
    color: rgba(15, 81, 50, 1); /* سبز */
    font-weight: bold;
    position: absolute;
    right: 0; /* سمت راست برای راست‌چین */
}


/* افکت Hover روی Thumbnailها */
.ginput_preview_list .ginput_preview:hover img {
    transform: scale(1.05);
    transition: transform 0.3s;
}

/* ======= واکنش‌گرا ======= */
@media (max-width: 768px) {
    .ginput_container_fileupload {
        padding: 30px 15px;
    }

    .ginput_preview_list .ginput_preview img.thumbnail-first {
        width: 120px;
        height: 120px;
    }

    .ginput_preview_list .ginput_preview img.thumbnail-other {
        width: 80px;
        height: 80px;
    }
}
