/* =====================================================================
   Boendeförfrågan för företag – inc/accommodation-request.php
   Allt är scopat under .ar-section så att övriga formulär inte påverkas.
   Dokumentation: docs/accommodation-request.md
   ===================================================================== */

.ar-section {
	--ar-green-900: #2c4420;
	--ar-green-800: #344f26;
	--ar-green-700: #46652f;
	--ar-green-600: #5b7d3a;
	--ar-green-500: #6f9147;
	--ar-green-100: #eef2e3;
	--ar-green-50: #f5f7ee;
	--ar-bg: #f7f7f1;
	--ar-bg-2: #eef1e4;
	--ar-card: #ffffff;
	--ar-line: #d7dacd;
	--ar-line-strong: #c3c8b6;
	--ar-text: #2b2f27;
	--ar-muted: #5f645a;
	--ar-req: #9b1c1c;
	--ar-radius: 14px;
	--ar-radius-sm: 8px;
	--ar-shadow: 0 1px 2px rgba(44, 68, 32, 0.04), 0 10px 30px rgba(44, 68, 32, 0.08);
	--ar-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--ar-sans: "Open Sans", "Raleway", Arial, sans-serif;

	position: relative;
	z-index: 1;
	width: 100%;
	color: var(--ar-text);
	background: linear-gradient(180deg, var(--ar-bg-2) 0%, var(--ar-bg) 220px, var(--ar-bg) 100%);
	padding: 8px 0 64px;
}

.ar-section *,
.ar-section *::before,
.ar-section *::after {
	font-family: var(--ar-sans);
}

/* Vågen sticker upp ovanför sektionen och överlappar sektionen ovan (bild i CMS:et) */
.ar-wave {
	position: absolute;
	left: 0;
	bottom: calc(100% - 1px);
	width: 100%;
	height: clamp(36px, 7vw, 110px);
	display: block;
	pointer-events: none;
}
.ar-wave path {
	fill: var(--ar-bg-2);
}

.ar-container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Intro ---------- */
.ar-intro {
	max-width: 760px;
	margin: 0 auto 36px;
}

.ar-section .ar-title {
	font-family: var(--ar-serif);
	font-weight: 700;
	font-size: clamp(32px, 4.4vw, 50px);
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: var(--ar-green-900);
	padding: 0 0 14px;
	margin: 0;
}

.ar-section .ar-lead {
	font-size: clamp(16px, 1.6vw, 19px);
	line-height: 1.5;
	color: var(--ar-text);
	padding: 0;
	margin: 0;
	max-width: 56ch;
}

/* ---------- Kort ---------- */
.ar-card {
	max-width: 760px;
	margin: 0 auto;
	background: var(--ar-card);
	border-radius: var(--ar-radius);
	box-shadow: var(--ar-shadow);
	border: 1px solid rgba(195, 200, 182, 0.45);
	/* script.js sätter ibland inline-höjd på formulärets "grandparent" (slideDown) – neutralisera */
	height: auto !important;
}

.ar-card-inner {
	padding: 28px 28px 30px;
}

.ar-section .ar-card-title {
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--ar-serif);
	font-weight: 600;
	font-size: clamp(24px, 2.6vw, 30px);
	line-height: 1.2;
	color: var(--ar-green-900);
	padding: 0;
	margin: 0 0 22px;
}
.ar-section .ar-card-title span {
	font-family: var(--ar-serif);
}

.ar-icon {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	color: var(--ar-green-700);
}

.ar-card-title-icon {
	width: 46px;
	height: 46px;
	stroke-width: 1.4;
}

/* ---------- Etiketter & fält ---------- */
.ar-form {
	position: relative;
}

.ar-section .ar-label {
	display: block;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ar-text);
	padding: 0;
	margin: 0 0 6px;
	line-height: 1.3;
}

.ar-label-stacked {
	display: flex !important;
	flex-direction: column;
}
.ar-optional {
	font-size: 12px;
	font-weight: 400;
	color: var(--ar-muted);
	line-height: 1.2;
}

.ar-req {
	color: var(--ar-req);
	font-weight: 700;
}

.ar-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 22px;
	row-gap: 6px;
	align-items: end;
}

.ar-full {
	grid-column: 1 / -1;
}

.ar-field {
	min-width: 0;
}

.ar-section input[type="text"],
.ar-section input[type="email"],
.ar-section input[type="tel"],
.ar-section input[type="number"],
.ar-section input[type="date"],
.ar-section select,
.ar-section textarea {
	width: 100%;
	margin: 0;
	padding: 10px 14px;
	min-height: 44px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--ar-text);
	background: #fff;
	border: 1px solid var(--ar-line);
	border-radius: var(--ar-radius-sm);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ar-section select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346652f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	cursor: pointer;
}
.ar-section select:invalid {
	color: #8a8f84;
}
.ar-section select option {
	color: var(--ar-text);
}

.ar-section input[type="date"] {
	-webkit-appearance: auto;
	appearance: auto;
}
.ar-section input[type="date"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.75;
}

.ar-section textarea {
	min-height: 76px;
	resize: vertical;
}

.ar-section input::placeholder,
.ar-section textarea::placeholder {
	color: #8a8f84;
	opacity: 1;
}

.ar-section input:hover,
.ar-section select:hover,
.ar-section textarea:hover {
	border-color: var(--ar-line-strong);
}

.ar-section input:focus,
.ar-section select:focus,
.ar-section textarea:focus {
	outline: none;
	border-color: var(--ar-green-600);
	box-shadow: 0 0 0 3px rgba(91, 125, 58, 0.18);
}

.ar-section .input-error-border,
.ar-section .has-error {
	border-color: #c0392b !important;
}

.ar-section .error-message {
	display: block;
	min-height: 18px;
	font-size: 12.5px;
	line-height: 1.4;
	color: #b3261e;
	padding: 3px 0 0;
	margin: 0;
}

/* intl-tel-input */
.ar-section .phone-wrapper {
	display: block;
}
.ar-section .iti {
	width: 100%;
	display: block;
}
.ar-section .iti--separate-dial-code .iti__selected-flag {
	background: var(--ar-green-50);
	border-radius: var(--ar-radius-sm) 0 0 var(--ar-radius-sm);
}

/* ---------- Typ av boende (radiokort) ---------- */
.ar-fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 18px;
	min-width: 0;
}

.ar-section .ar-fieldset legend {
	float: left;
	width: 100%;
	margin-bottom: 8px;
}
.ar-fieldset legend + * {
	clear: both;
}

.ar-type-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.ar-section .ar-type-option {
	position: relative;
	display: block;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

.ar-type-radio {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.ar-type-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 66px;
	height: 100%;
	padding: 12px 10px 10px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--ar-line);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ar-type-option:hover .ar-type-card {
	border-color: var(--ar-line-strong);
}

.ar-type-dot {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1.5px solid #9aa08f;
	background: #fff;
	transition: border-color 0.15s ease;
}

.ar-type-icons {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}
.ar-type-icons .ar-icon {
	width: 28px;
	height: 28px;
}
.ar-type-icons .ar-icon-plus {
	width: 14px;
	height: 14px;
	stroke-width: 2.2;
}

.ar-type-text {
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--ar-text);
}

.ar-type-radio:checked + .ar-type-card {
	background: var(--ar-green-100);
	border-color: #b9c4a0;
	box-shadow: inset 0 0 0 1px rgba(91, 125, 58, 0.15);
}
.ar-type-radio:checked + .ar-type-card .ar-type-dot {
	border-color: var(--ar-green-800);
	background: radial-gradient(circle, var(--ar-green-800) 0 4px, #fff 4.5px);
}
.ar-type-radio:focus-visible + .ar-type-card {
	outline: 3px solid rgba(91, 125, 58, 0.35);
	outline-offset: 2px;
}

/* ---------- Samtycke ---------- */
.ar-consent {
	display: grid;
	grid-template-columns: 22px 1fr;
	grid-template-areas:
		"box text"
		". err";
	column-gap: 12px;
	align-items: start;
	margin: 14px 0 18px;
}

.ar-section .ar-consent input[type="checkbox"] {
	grid-area: box;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	accent-color: var(--ar-green-700);
	cursor: pointer;
}

.ar-section .ar-consent-text {
	grid-area: text;
	font-size: 15px;
	line-height: 1.45;
	color: var(--ar-text);
	padding: 0;
	cursor: pointer;
}

.ar-section .ar-consent-text a {
	font-size: inherit;
	padding: 0;
	color: var(--ar-green-700);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.ar-section .ar-consent-text a:hover {
	color: var(--ar-green-900);
}

.ar-section .ar-consent-error {
	grid-area: err;
	min-height: 0;
}

/* ---------- Skicka-knapp ---------- */
.ar-section .ar-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	min-height: 52px;
	padding: 12px 24px;
	margin: 0;
	border: 0;
	border-radius: 9px;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #fff;
	background: linear-gradient(180deg, var(--ar-green-500) 0%, var(--ar-green-700) 100%);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 16px rgba(44, 68, 32, 0.22);
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.ar-section .ar-submit span {
	font-size: inherit;
	font-weight: inherit;
	padding: 0;
}
/* Klick på ikon/text ska räknas som klick på knappen (script.js kollar event.target) */
.ar-section .ar-submit > * {
	pointer-events: none;
}
.ar-section .ar-submit-icon {
	width: 24px;
	height: 24px;
	color: #fff;
	stroke-width: 1.8;
}
.ar-section .ar-submit:hover:not(:disabled) {
	filter: brightness(1.06);
	transform: translateY(-1px);
}
.ar-section .ar-submit:focus-visible {
	outline: 3px solid rgba(91, 125, 58, 0.45);
	outline-offset: 3px;
}
.ar-section .ar-submit:disabled {
	background: linear-gradient(180deg, #a3b08f 0%, #8e9b7b 100%);
	box-shadow: none;
	opacity: 0.85;
	cursor: not-allowed;
}

/* Loader (samma beteende som .form-wrapper .loader-wrapper) */
.ar-section .loader-wrapper {
	width: 100%;
	display: none;
	justify-content: center;
	align-items: center;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Svar efter skickat formulär (HTML från ajax-calls.php) */
.ar-form > div:only-child,
.ar-form h2 {
	font-family: var(--ar-serif);
	color: var(--ar-green-900);
}
.ar-form h4 {
	color: var(--ar-muted);
	font-weight: 500;
}

/* ---------- USP-rad ---------- */
.ar-usps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 48px 0 0;
	padding: 0;
}

.ar-section .ar-usp {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 4px 22px;
	font-size: inherit;
}
.ar-usp + .ar-usp {
	border-left: 1px solid var(--ar-line);
}

.ar-usp-icon {
	width: 48px;
	height: 48px;
	stroke-width: 1.3;
	color: var(--ar-green-700);
}

.ar-section .ar-usp-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ar-text);
	padding: 0 0 4px;
	margin: 0;
}

.ar-section .ar-usp-text {
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--ar-muted);
	padding: 0;
	margin: 0;
}

/* ---------- Svarstid ---------- */
.ar-section .ar-reply {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 40px 0 0;
	padding: 18px 24px;
	background: var(--ar-bg-2);
	border: 1px solid rgba(195, 200, 182, 0.5);
	border-radius: 12px;
	font-size: 17px;
	color: var(--ar-text);
	text-align: center;
}
.ar-section .ar-reply span {
	font-size: inherit;
	padding: 0;
}
.ar-reply-icon {
	width: 30px;
	height: 30px;
	stroke-width: 1.4;
}

/* ---------- Responsivt ---------- */
@media (max-width: 960px) {
	.ar-usps {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 28px;
	}
	.ar-usp:nth-child(3) {
		border-left: 0;
	}
}

@media (max-width: 640px) {
	.ar-section {
		padding-bottom: 44px;
	}
	.ar-container {
		padding: 0 16px;
	}
	.ar-intro {
		margin-bottom: 24px;
	}
	.ar-card-inner {
		padding: 22px 18px 24px;
	}
	.ar-card-title-icon {
		width: 38px;
		height: 38px;
	}
	.ar-grid {
		grid-template-columns: 1fr;
	}
	.ar-type-grid {
		gap: 8px;
	}
	.ar-type-card {
		padding: 26px 6px 10px;
	}
	.ar-type-text {
		font-size: 13px;
	}
	.ar-usps {
		grid-template-columns: 1fr;
		row-gap: 20px;
		margin-top: 36px;
	}
	.ar-section .ar-usp {
		padding: 0;
	}
	.ar-usp + .ar-usp {
		border-left: 0;
	}
	.ar-usp-icon {
		width: 40px;
		height: 40px;
	}
	.ar-section .ar-reply {
		font-size: 15.5px;
		padding: 14px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ar-section * {
		transition: none !important;
	}
}

/* =====================================================================
   CTA-knapp i menyn: "Boendeförfrågan" / "Accommodation Request"
   (index.php -> li.nav-cta-item > a#nav-action.nav-cta)
   Bakgrund: gallery/1729494362.4221.png (grön bladstruktur)
   ===================================================================== */

/* Ankarlänken #boendeforfragan ska inte hamna under den fasta headern */
.ar-section {
	scroll-margin-top: 110px;
}

.mainmenu li.nav-cta-item {
	margin-left: 14px;
	align-items: center;
}

.mainmenu a.nav-cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px 13px 24px;
	border-radius: 999px;
	font-family: "Open Sans", "Raleway", Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
	background-color: #3f8a3a;
	background-image:
		linear-gradient(135deg, rgba(18, 66, 22, 0.38) 0%, rgba(18, 66, 22, 0.08) 55%, rgba(255, 255, 255, 0.1) 100%),
		url("../gallery/1729494362.4221.png");
	background-size: cover;
	background-position: center;
	box-shadow:
		0 6px 18px rgba(40, 110, 40, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.35),
		inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
	animation: nav-cta-pulse 2.8s ease-in-out infinite;
}

/* Glansstråle som sveper över knappen */
.mainmenu a.nav-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
	transform: translateX(-130%);
	animation: nav-cta-shine 5s ease-in-out 1.2s infinite;
	pointer-events: none;
}

/* Stäng av menyns understrykningseffekt för knappen */
.mainmenu a.nav-cta::after,
.mainmenu a.nav-cta:hover::after {
	display: none;
	width: 0;
}

.mainmenu a.nav-cta .nav-cta-text {
	font: inherit;
	color: inherit;
	padding: 0;
}

.mainmenu a.nav-cta .nav-cta-arrow {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	transition: transform 0.25s ease;
}

.mainmenu a.nav-cta:hover,
.mainmenu a.nav-cta:focus-visible {
	color: #fff;
	transform: translateY(-2px) scale(1.03);
	filter: saturate(1.15) brightness(1.05);
	box-shadow:
		0 10px 26px rgba(40, 110, 40, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.4),
		inset 0 0 0 1px rgba(255, 255, 255, 0.25);
	animation-play-state: paused;
}

.mainmenu a.nav-cta:hover .nav-cta-arrow,
.mainmenu a.nav-cta:focus-visible .nav-cta-arrow {
	transform: translateX(4px);
}

.mainmenu a.nav-cta:active {
	transform: translateY(0) scale(0.98);
}

.mainmenu a.nav-cta:focus-visible {
	outline: 3px solid rgba(63, 138, 58, 0.55);
	outline-offset: 3px;
}

@keyframes nav-cta-pulse {
	0%,
	100% {
		box-shadow:
			0 6px 18px rgba(40, 110, 40, 0.35),
			0 0 0 0 rgba(98, 170, 70, 0.5),
			inset 0 1px 0 rgba(255, 255, 255, 0.35),
			inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	}
	60% {
		box-shadow:
			0 6px 18px rgba(40, 110, 40, 0.35),
			0 0 0 10px rgba(98, 170, 70, 0),
			inset 0 1px 0 rgba(255, 255, 255, 0.35),
			inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	}
}

@keyframes nav-cta-shine {
	0% {
		transform: translateX(-130%);
	}
	30%,
	100% {
		transform: translateX(130%);
	}
}

/* Mobilmeny (samma brytpunkt som menyn i style.css) */
@media all and (max-width: 1100px) {
	.mainmenu li.nav-cta-item {
		margin: 18px 0 10px;
		padding: 0 24px;
		display: flex;
		justify-content: center;
	}
	.mainmenu li > a.nav-cta {
		width: 100%;
		max-width: 420px;
		justify-content: center;
		padding: 18px 24px;
		font-size: 18px;
	}
	.mainmenu li > a.nav-cta:hover {
		background-color: #3f8a3a;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mainmenu a.nav-cta,
	.mainmenu a.nav-cta::before {
		animation: none;
	}
	.mainmenu a.nav-cta,
	.mainmenu a.nav-cta .nav-cta-arrow {
		transition: none;
	}
}
