/* Module de dons - Mobile Money (Orange / MTN) */

.dd-wrap {
	max-width: 640px;
	margin: 0 auto;
	font-size: 15px;
}

.dd-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 34px rgba(42, 10, 68, .10);
	padding: 34px 30px 28px;
	overflow: hidden;
}

.dd-title {
	margin: 0 0 6px;
	font-size: 27px;
	font-weight: 800;
	color: #4a1168;
}

.dd-sub {
	margin: 0 0 24px;
	color: #5d5570;
	line-height: 1.55;
}

.dd-wrap fieldset {
	border: 0;
	margin: 0 0 22px;
	padding: 0;
}

.dd-wrap legend {
	font-weight: 700;
	color: #2a0a44;
	margin-bottom: 10px;
	font-size: 14px;
}

/* Montants */
.dd-amount-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.dd-amount {
	position: relative;
	display: block;
}

.dd-amount input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dd-amount span {
	display: block;
	text-align: center;
	padding: 13px 6px;
	border: 2px solid #e6dcf3;
	border-radius: 10px;
	font-weight: 700;
	color: #4a1168;
	cursor: pointer;
	transition: all .15s ease;
	background: #fbf9fe;
}

.dd-amount input:checked + span {
	border-color: #16a34a;
	background: #ecfdf3;
	color: #15803d;
}

.dd-amount span:hover {
	border-color: #b490e0;
}

.dd-input-hidden {
	display: none !important;
}

/* Opérateurs */
.dd-operator {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.dd-operator legend {
	width: 100%;
}

.dd-op {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 9px;
	align-items: center;
	flex: 1;
	min-width: 100%;
	padding: 13px 16px;
	border: 2px solid #e6dcf3;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 600;
	color: #2a0a44;
	background: #fbf9fe;
}

.dd-op-dot {
	grid-row: 1;
}

.dd-op-name {
	grid-column: 2;
	font-weight: 700;
}

.dd-op-info {
	grid-column: 1 / -1;
	margin-top: 8px;
	font-size: 12.5px;
	font-weight: 500;
	color: #6b6280;
	line-height: 1.45;
}

.dd-op-info b {
	color: #4a1168;
}

.dd-op-note {
	grid-column: 1 / -1;
	margin: 10px 0 0;
	font-size: 12.5px;
	font-weight: 500;
	color: #6b6280;
	line-height: 1.45;
}

.dd-op input {
	position: absolute;
	opacity: 0;
}

.dd-op:has(input:checked) {
	border-color: #4a1168;
	background: #f5eefc;
}

.dd-op-dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}

.dd-op-orange .dd-op-dot,
.dd-op-dot-orange { background: #ff7900; }

.dd-op-mtn .dd-op-dot,
.dd-op-dot-mtn { background: #ffcc00; }

/* Champs */
.dd-fields {
	display: grid;
	gap: 14px;
	margin-bottom: 22px;
}

.dd-fields label {
	display: block;
	font-weight: 600;
	font-size: 13.5px;
	color: #2a0a44;
}

.dd-input {
	width: 100%;
	margin-top: 6px;
	padding: 12px 14px;
	border: 1.5px solid #ddd3ea;
	border-radius: 9px;
	font-size: 15px;
	font-family: inherit;
	background: #fdfcff;
	color: #2a0a44;
}

.dd-input:focus {
	outline: none;
	border-color: #16a34a;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}

.dd-ref-label {
	padding: 12px;
	background: #f8f3ec;
	border-radius: 9px;
	border: 1px dashed #d8cfc2;
}

/* Bouton */
.dd-submit {
	width: 100%;
	padding: 15px;
	border: 0;
	border-radius: 10px;
	background: #16a34a;
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
	transition: background .15s ease;
}

.dd-submit:hover { background: #15803d; }
.dd-submit:disabled { opacity: .65; cursor: wait; }

.dd-error {
	margin: 12px 0 0;
	padding: 10px 14px;
	background: #fef2f2;
	border-left: 4px solid #dc2626;
	border-radius: 6px;
	color: #b91c1c;
	font-size: 14px;
}

.dd-legal {
	margin: 16px 0 0;
	text-align: center;
	font-size: 12.5px;
	color: #8b8399;
}

.dd-legend {
	font-weight: 700;
	color: #2a0a44;
	margin-bottom: 4px;
	font-size: 14px;
}

/* Remerciement */
.dd-thanks {
	text-align: center;
	padding: 46px 30px;
}

.dd-check {
	width: 74px;
	height: 74px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	font-size: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dd-thanks h2 {
	color: #4a1168;
	margin: 0 0 12px;
}

.dd-thanks p {
	color: #5d5570;
	line-height: 1.6;
	margin: 0;
}

@media (max-width: 560px) {
	.dd-card { padding: 26px 18px 22px; }
	.dd-amount-grid { grid-template-columns: repeat(2, 1fr); }
}
