/* DAG Registration Form */

.dag-registration-wrap {
	max-width: 640px;
	margin: 0 auto;
}

.dag-reg-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.dag-reg-section {
	margin-bottom: 2rem;
}

.dag-reg-section h3 {
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e0e0e0;
	font-size: 1.1rem;
}

/* Felt-layout */

.dag-reg-field {
	margin-bottom: 1rem;
}

.dag-reg-field label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
	font-size: 0.9rem;
}

.dag-reg-field label .required {
	color: #c0392b;
}

.dag-reg-field input[type="text"],
.dag-reg-field input[type="email"],
.dag-reg-field input[type="tel"] {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.dag-reg-field input:focus {
	border-color: #2b5797;
	outline: none;
	box-shadow: 0 0 0 2px rgba(43, 87, 151, 0.15);
}

.dag-reg-field input[readonly] {
	background-color: #f5f5f5;
	color: #666;
	cursor: not-allowed;
}

/* To felter ved siden af hinanden */

.dag-reg-row {
	display: flex;
	gap: 1rem;
}

.dag-reg-row .dag-reg-field {
	flex: 1;
}

.dag-reg-row .dag-reg-field-sm {
	flex: 0 0 30%;
}

.dag-reg-row .dag-reg-field-lg {
	flex: 1;
}

@media (max-width: 480px) {
	.dag-reg-row {
		flex-direction: column;
		gap: 0;
	}
	.dag-reg-row .dag-reg-field-sm {
		flex: 1;
	}
}

/* CVR-input med status */

.dag-reg-cvr-input {
	position: relative;
}

.dag-reg-cvr-input input {
	padding-right: 2.5rem;
}

.dag-cvr-status {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.85rem;
	pointer-events: none;
}

.dag-cvr-loading {
	color: #888;
}

.dag-cvr-found {
	color: #27ae60;
	font-weight: bold;
}

.dag-cvr-error {
	color: #c0392b;
	font-size: 0.8rem;
}

/* Fejlvisning */

.dag-reg-field-error {
	border-color: #c0392b !important;
}

.dag-reg-field-error-msg {
	display: block;
	color: #c0392b;
	font-size: 0.8rem;
	margin-top: 0.25rem;
}

/* Beskeder */

.dag-reg-message {
	padding: 0;
	margin: 0 0 1rem;
	border-radius: 4px;
	font-size: 0.95rem;
}

.dag-reg-message:empty {
	display: none;
}

.dag-reg-success {
	background: #eafaf1;
	color: #1e7e34;
	padding: 0.75rem 1rem;
	border: 1px solid #b2dfdb;
}

.dag-reg-error {
	background: #fef2f2;
	color: #c0392b;
	padding: 0.75rem 1rem;
	border: 1px solid #f5c6cb;
}

/* Submit-knap */

.dag-reg-consent label {
	display: flex;
	gap: 0.6em;
	align-items: flex-start;
	font-weight: normal;
	cursor: pointer;
}

.dag-reg-consent input[type="checkbox"] {
	flex: 0 0 auto;
	margin-top: 0.3em;
}

.dag-reg-consent a {
	text-decoration: underline;
}

.dag-reg-submit {
	margin-top: 0.5rem;
}

.dag-reg-btn {
	display: inline-block;
	padding: 0.75rem 2rem;
	background: #2b5797;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.dag-reg-btn:hover {
	background: #1e3f6f;
}

.dag-reg-btn:disabled {
	background: #999;
	cursor: not-allowed;
}

/* Notice for indloggede brugere */

.dag-reg-notice {
	padding: 1rem;
	background: #f0f4f8;
	border-radius: 4px;
	text-align: center;
	color: #555;
}
