/* بانک مشتریان — صفحه‌ی درخواست طراحی داخلی: اسلایدر نمونه‌کار + فرم. */

.ddcbd {
	--ddcbd-blue: #783942;
	--ddcbd-blue-dark: #5C2C35;
	--ddcbd-green: #B99874;
	max-width: 900px;
	margin: 0 auto;
	font-family: inherit;
}
.ddcbd *, .ddcbd *::before, .ddcbd *::after { box-sizing: border-box; }
.ddcbd [hidden] { display: none !important; }

/* ---------- header ---------- */
.ddcbd__head { text-align: center; margin-bottom: 20px; }
.ddcbd__title { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: #39242D; }
.ddcbd__sub { margin: 0 0 14px; font-size: 14px; color: #7C6D70; }
.ddcbd__price {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 560px;
	margin: 0;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.8;
	color: #395c11;
	text-align: start;
	background: rgba(185, 152, 116, .16);
	border-radius: 14px;
}
.ddcbd__price .ddcbd__ico { width: 16px; height: 16px; flex: none; }
.ddcbd__note { max-width: 560px; margin: 12px auto 0; font-size: 12.5px; line-height: 1.9; color: #7C6D70; }

/* ---------- form shell ---------- */
.ddcbd__form,
.ddcbd__done {
	max-width: 560px;
	margin: 0 auto;
	padding: 28px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(57, 36, 45, .08);
}
.ddcbd__msgbox { max-width: 560px; margin: 0 auto 14px; }
.ddcbd__msgbox:empty { display: none; }
.ddcbd .ddcbd__msg {
	margin: 0; padding: 10px 14px; font-size: 13px; text-align: center; border-radius: 10px;
	color: #7a1f16; background: #fdecea; border: 1px solid #f6c6c0;
}

.ddcbd__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ddcbd__field { margin-bottom: 16px; }
.ddcbd__field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #39242D; }
.ddcbd .ddcbd__field input,
.ddcbd .ddcbd__field textarea {
	width: 100%; padding: 10px 14px; font: inherit; font-size: 14px; color: #39242D;
	background: #f7f8fa; border: 1px solid #e3e7ed; border-radius: 10px; outline: none;
	transition: border-color .2s, background .2s;
	resize: vertical;
}
.ddcbd .ddcbd__field input:focus,
.ddcbd .ddcbd__field textarea:focus { background: #fff; border-color: var(--ddcbd-blue); }

/* ---------- photo capture ---------- */
.ddcbd__photo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ddcbd .ddcbd__photo-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
	font: inherit; font-size: 13px; font-weight: 600; color: var(--ddcbd-blue);
	background: #eef3fa; border: 1px dashed #E6D5CF; border-radius: 10px; cursor: pointer;
	transition: background .2s, border-color .2s;
}
.ddcbd .ddcbd__photo-btn:hover { background: #e2eaf6; border-color: var(--ddcbd-blue); }
.ddcbd__ico { width: 16px; height: 16px; flex: none; }

.ddcbd__previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ddcbd__preview { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid #e3e7ed; }
.ddcbd__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ddcbd__preview-remove {
	position: absolute; top: 3px; inset-inline-end: 3px; display: flex; align-items: center; justify-content: center;
	width: 20px; height: 20px; color: #fff; background: rgba(0, 0, 0, .55); border: 0; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1;
}

/* ---------- submit ---------- */
.ddcbd .ddcbd__submit {
	position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; height: 46px; margin-top: 8px; padding: 0;
	font: inherit; font-size: 15px; font-weight: 700; color: #fff;
	background: linear-gradient(135deg, var(--ddcbd-blue), var(--ddcbd-blue-dark));
	border: 0; border-radius: 9999px; cursor: pointer;
	transition: transform .2s, box-shadow .2s, opacity .2s;
}
.ddcbd .ddcbd__submit:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(120, 57, 66, .3); }
.ddcbd .ddcbd__submit:disabled { opacity: .7; cursor: default; transform: none; box-shadow: none; }
.ddcbd__spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 9999px; animation: ddcbd-spin .7s linear infinite; }
.ddcbd__submit.is-loading .ddcbd__spin { display: block; }
@keyframes ddcbd-spin { to { transform: rotate(360deg); } }

/* ---------- done state ---------- */
.ddcbd__done { text-align: center; }
.ddcbd__done h3 { margin: 0 0 8px; font-size: 19px; color: #39242D; }
.ddcbd__done p { margin: 0; font-size: 14px; color: #7C6D70; }

@media (max-width: 560px) {
	.ddcbd__grid2 { grid-template-columns: 1fr; }
	.ddcbd__form, .ddcbd__done { padding: 20px; border-radius: 14px; }
	.ddcbd__title { font-size: 21px; }
}
