/* DGE-Wp supplier registration form — brand styling.
   Uses the WoodMart primary-color CSS variable with a gold brand fallback. */

.dge-supplier-registration {
	--dge-brand: var(--wd-primary-color, #a8894f);
	--dge-brand-dark: #8f7340;
	max-width: 640px;
	margin: 0 auto;
}

.dge-supplier-registration__form p {
	margin: 0 0 1.15rem;
}

.dge-supplier-registration__form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	color: #3d3226;
}

.dge-supplier-registration__form input[type="text"],
.dge-supplier-registration__form input[type="email"],
.dge-supplier-registration__form select,
.dge-supplier-registration__form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.72rem 0.9rem;
	border: 1px solid #d9d2c5;
	border-radius: 6px;
	background: #fff;
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dge-supplier-registration__form input:focus,
.dge-supplier-registration__form select:focus,
.dge-supplier-registration__form textarea:focus {
	border-color: var(--dge-brand);
	box-shadow: 0 0 0 3px rgba(168, 137, 79, 0.18);
	outline: none;
}

.dge-supplier-registration__form input[readonly] {
	background: #f4f1ea;
	color: #7a7060;
	cursor: not-allowed;
}

.dge-supplier-registration__form .description {
	display: block;
	margin-top: 0.3rem;
	color: #8a8070;
	font-size: 0.85rem;
}

.dge-supplier-registration__address {
	border: 1px solid #e6e0d4;
	border-radius: 10px;
	padding: 1.1rem 1.3rem 0.4rem;
	margin: 0 0 1.4rem;
}

.dge-supplier-registration__address legend {
	font-weight: 700;
	padding: 0 0.45rem;
	color: #5a4632;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.85rem;
}

.dge-supplier-registration__terms label {
	font-weight: 400;
	color: #3d3226;
}

.dge-supplier-registration__terms a {
	color: var(--dge-brand);
	text-decoration: underline;
}

/* Submit button */
.dge-supplier-registration__submit {
	display: inline-block;
	background: var(--dge-brand);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 0.9rem 2.2rem;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
	box-shadow: 0 2px 6px rgba(90, 70, 50, 0.18);
}

.dge-supplier-registration__submit:hover,
.dge-supplier-registration__submit:focus {
	background: var(--dge-brand-dark);
	color: #fff;
}

.dge-supplier-registration__submit:active {
	transform: translateY(1px);
}

/* Confirmation / status notice */
.dge-supplier-registration__notice {
	padding: 1rem 1.15rem 1rem 1.3rem;
	border-radius: 8px;
	margin: 0 0 1.5rem;
	font-size: 0.98rem;
	line-height: 1.45;
	border-left: 4px solid;
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.dge-supplier-registration__notice::before {
	font-size: 1.15rem;
	line-height: 1.2;
}

.dge-supplier-registration__notice--success {
	background: #f2f7ee;
	border-color: #5a8f3c;
	color: #2f5320;
}

.dge-supplier-registration__notice--success::before {
	content: "\2714"; /* check mark */
	color: #5a8f3c;
}

.dge-supplier-registration__notice--error {
	background: #fbf1ef;
	border-color: #c0392b;
	color: #7a271f;
}

.dge-supplier-registration__notice--error::before {
	content: "\26A0"; /* warning sign */
	color: #c0392b;
}
