/* Real Krabi – Contact popup (v1.0, 7 Oct 2026). Loaded site-wide by Code Snippet "Real Krabi – Contact popup".
   Desktop: floating panel in the bottom-right corner. Mobile (≤ 640px): full screen. */

.rkcp, .rkcp *, .rkcp *::before, .rkcp *::after { box-sizing: border-box; }

.rkcp {
	--c-navy: #0b1d2a;
	--c-navy-2: #12303f;
	--c-gold: #d6a84f;
	--c-gold-2: #e8c77f;
	--c-gold-soft: #f6ecd7;
	--c-cream: #f8f5f0;
	--c-ink: #16232e;
	--c-muted: #5d6b76;
	--c-line: #e7e0d4;
	--c-err: #b3261e;
	--c-ok: #2f7d4f;
	--c-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--c-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 2147483000;
	width: 400px;
	max-width: calc(100vw - 32px);
	height: min(660px, calc(100vh - 48px));
	display: flex;
	flex-direction: column;
	background: var(--c-cream);
	color: var(--c-ink);
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(11, 29, 42, .08), 0 30px 70px -20px rgba(11, 29, 42, .5);
	font-family: var(--c-sans);
	font-size: 15px;
	line-height: 1.55;
	text-align: left;
	-webkit-font-smoothing: antialiased;
	transform: translateY(12px);
	transform-origin: bottom right;
	transition: transform .22s ease;
}
.rkcp[hidden] { display: none; }
.rkcp.is-in { transform: none; }

/* ---------------------------------------------------------------- header */
.rkcp-head {
	flex: none;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 20px 20px 18px 22px;
	background: linear-gradient(135deg, #0a1620 0%, #0f2532 55%, var(--c-navy-2) 100%);
	color: #fff;
}
.rkcp-head-txt { flex: 1; min-width: 0; }
.rkcp-eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--c-gold);
}
.rkcp h2.rkcp-title {
	margin: 0;
	font-family: var(--c-serif);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: #fff;
}
.rkcp-sub { margin: 6px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.rkcp-x {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; padding: 0; margin: -4px -6px 0 0;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	cursor: pointer;
	transition: background .2s;
}
.rkcp-x:hover, .rkcp-x:focus-visible { background: rgba(255, 255, 255, .18); }
.rkcp-x svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- body */
.rkcp-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 18px 20px 22px;
}
.rkcp-step[hidden] { display: none; }

.rkcp-label, .rkcp label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--c-navy);
}
.rkcp-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rkcp-opt { font-weight: 400; color: var(--c-muted); }

.rkcp textarea,
.rkcp input[type="text"],
.rkcp input[type="email"],
.rkcp select {
	display: block;
	width: 100%;
	margin: 0;
	padding: 11px 13px;
	border: 1.5px solid var(--c-line);
	border-radius: 12px;
	background: #fff;
	color: var(--c-ink);
	font: inherit;
	font-size: 16px; /* stops iOS zooming in */
	line-height: 1.45;
	box-shadow: none;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.rkcp textarea { resize: vertical; min-height: 92px; }
.rkcp select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b76' stroke-width='2' stroke-linecap='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: 16px; }
.rkcp textarea:focus,
.rkcp input:focus,
.rkcp select:focus { border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(214, 168, 79, .2); }
.rkcp .is-invalid { border-color: var(--c-err) !important; }
.rkcp ::placeholder { color: #98a3ab; opacity: 1; }

.rkcp-field { margin: 0 0 14px; }
.rkcp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rkcp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- buttons */
.rkcp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px; margin: 0;
	border: 1.5px solid var(--c-gold); border-radius: 999px;
	background: var(--c-gold); color: var(--c-navy);
	font: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
	text-decoration: none; text-transform: none;
	cursor: pointer;
	box-shadow: 0 10px 22px -14px rgba(214, 168, 79, .9);
	transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.rkcp-btn:hover, .rkcp-btn:focus-visible { background: var(--c-gold-2); border-color: var(--c-gold-2); color: var(--c-navy); }
.rkcp-btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.rkcp-btn--ghost { background: transparent; border-color: var(--c-line); color: var(--c-navy); box-shadow: none; }
.rkcp-btn--ghost:hover, .rkcp-btn--ghost:focus-visible { background: #fff; border-color: var(--c-gold); }
.rkcp-btn--block { width: 100%; }
.rkcp-btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.rkcp-btn svg { width: 16px; height: 16px; flex: none; }
.rkcp-btn.is-busy { pointer-events: none; opacity: .7; }

.rkcp-textbtn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 0; margin: 0; border: 0; background: none;
	font: inherit; font-size: 13px; font-weight: 600; color: var(--c-navy);
	cursor: pointer; text-decoration: none;
}
.rkcp-textbtn:hover, .rkcp-textbtn:focus-visible { color: #9a7428; }
.rkcp-textbtn svg { width: 15px; height: 15px; }
.rkcp-copy.is-done { color: var(--c-ok); }

/* ---------------------------------------------------------------- FAQ answers */
.rkcp-results { margin: 16px 0 0; }
.rkcp-results:empty { display: none; }
.rkcp-rhead {
	display: flex; align-items: center; gap: 8px;
	margin: 0 0 10px;
	font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--c-muted);
}
.rkcp-rhead svg { width: 16px; height: 16px; color: var(--c-gold); }
.rkcp-hit {
	margin: 0 0 8px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: 14px;
	overflow: hidden;
}
.rkcp-hit.is-open { border-color: rgba(214, 168, 79, .6); }
.rkcp-hit-q {
	display: flex; align-items: flex-start; gap: 10px;
	width: 100%; margin: 0; padding: 12px 14px;
	border: 0; background: none;
	font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.4; text-align: left; text-transform: none; letter-spacing: 0;
	color: var(--c-navy);
	cursor: pointer;
}
.rkcp-hit-q:hover, .rkcp-hit-q:focus-visible { background: #fcfaf6; color: var(--c-navy); }
.rkcp-hit-q span { flex: 1; }
.rkcp-hit-q svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--c-gold); transition: transform .2s; }
.rkcp-hit.is-open .rkcp-hit-q svg { transform: rotate(45deg); }
.rkcp-hit-a { padding: 0 14px 14px; font-size: 14px; color: #3a4a56; }
.rkcp-hit-a[hidden] { display: none; }
.rkcp-hit-a p { margin: 0 0 .7em; }
.rkcp-hit-a p:last-of-type { margin-bottom: 0; }
.rkcp-hit-a ul, .rkcp-hit-a ol { margin: 0 0 .7em 1.2em; padding: 0; }
.rkcp-hit-a a { color: #9a7428; text-decoration: underline; text-underline-offset: 2px; }
.rkcp-hit-a .rkcp-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--c-navy); }
.rkcp-hit-a .rkcp-more:hover { color: #9a7428; }
.rkcp mark.rkcp-hl { background: var(--c-gold-soft); color: inherit; padding: 0 1px; border-radius: 3px; }

.rkcp-feedback {
	margin: 14px 0 0;
	padding: 14px;
	border-radius: 14px;
	background: var(--c-gold-soft);
	font-size: 14px;
	color: var(--c-navy);
}
.rkcp-feedback p { margin: 0 0 10px; font-weight: 600; }
.rkcp-feedback-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.rkcp-feedback--none { background: #fff; border: 1px dashed var(--c-line); }
.rkcp-feedback--none p { font-weight: 400; color: #3a4a56; }
.rkcp-glad { margin: 14px 0 0; font-size: 14px; color: var(--c-ok); font-weight: 600; }

.rkcp-ask-foot {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
	margin: 16px 0 0; padding: 16px 0 0;
	border-top: 1px solid var(--c-line);
}
.rkcp-ask-foot .rkcp-btn { flex: 1 1 auto; }
.rkcp-loading { font-size: 13px; color: var(--c-muted); }

/* ---------------------------------------------------------------- send step */
.rkcp-back { margin: -4px 0 12px; }
.rkcp-err {
	margin: 0 0 12px; padding: 10px 12px;
	border-radius: 10px;
	background: #fcebea; color: var(--c-err);
	font-size: 13.5px;
}
.rkcp-err[hidden] { display: none; }
.rkcp-err a { color: inherit; font-weight: 600; text-decoration: underline; }
.rkcp-fine { margin: 10px 0 0; font-size: 12.5px; color: var(--c-muted); text-align: center; }
.rkcp-alt {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px;
	margin: 14px 0 0; padding: 14px 0 0;
	border-top: 1px solid var(--c-line);
	font-size: 13px; color: var(--c-muted);
}
.rkcp-alt a { color: var(--c-navy); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.rkcp-alt a:hover { color: #9a7428; }
.rkcp-alt svg { width: 16px; height: 16px; color: var(--c-gold); }

/* ---------------------------------------------------------------- done */
.rkcp-done { text-align: center; padding: 18px 4px 6px; }
.rkcp-done-ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 58px; height: 58px; margin: 0 0 14px;
	border-radius: 50%; background: var(--c-gold-soft); color: #9a7428;
}
.rkcp-done-ico svg { width: 28px; height: 28px; }
.rkcp-done h3 { margin: 0 0 8px; font-family: var(--c-serif); font-size: 22px; font-weight: 600; color: var(--c-navy); }
.rkcp-done p { margin: 0 0 18px; color: #3a4a56; font-size: 14.5px; }
.rkcp-done-btns { display: flex; flex-direction: column; gap: 8px; }

/* ---------------------------------------------------------------- mobile: full screen */
@media (max-width: 640px) {
	.rkcp {
		inset: 0;
		right: 0; bottom: 0;
		width: 100%;
		max-width: none;
		height: 100vh;
		height: 100dvh;
		border-radius: 0;
		transform: translateY(24px);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.rkcp-head { padding-top: calc(18px + env(safe-area-inset-top)); }
	.rkcp-row { grid-template-columns: 1fr; gap: 0; }
	.rkcp-row .rkcp-field { margin-bottom: 14px; }
	html.rkcp-lock, html.rkcp-lock body { overflow: hidden !important; }
}

@media (prefers-reduced-motion: reduce) {
	.rkcp { transition: none; transform: none; }
}

/* ---------------------------------------------------------------- theme overrides
   Elementor's site kit and Astra style every <button> (teal background, Capitalised text, padding).
   Scope by ID so the popup always keeps its own look. */
#rkcp button { text-transform: none !important; letter-spacing: normal; font-family: var(--c-sans) !important; box-shadow: none; border-radius: 0; min-width: 0; }
#rkcp button:focus { outline: none; }
#rkcp button:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }
#rkcp .rkcp-x { background: rgba(255, 255, 255, .08) !important; color: #fff !important; border: 0 !important; border-radius: 50% !important; padding: 0 !important; }
#rkcp .rkcp-x:hover, #rkcp .rkcp-x:focus-visible { background: rgba(255, 255, 255, .18) !important; }
#rkcp .rkcp-btn { background: var(--c-gold) !important; color: var(--c-navy) !important; border: 1.5px solid var(--c-gold) !important; border-radius: 999px !important; padding: 0 22px !important; font-size: 14.5px !important; font-weight: 600 !important; letter-spacing: .01em !important; line-height: 1.2 !important; }
#rkcp .rkcp-btn:hover, #rkcp .rkcp-btn:focus-visible { background: var(--c-gold-2) !important; border-color: var(--c-gold-2) !important; }
#rkcp .rkcp-btn--ghost { background: transparent !important; border-color: var(--c-line) !important; }
#rkcp .rkcp-btn--ghost:hover, #rkcp .rkcp-btn--ghost:focus-visible { background: #fff !important; border-color: var(--c-gold) !important; }
#rkcp .rkcp-btn--sm { padding: 0 14px !important; font-size: 13px !important; }
#rkcp .rkcp-textbtn { background: none !important; border: 0 !important; padding: 4px 0 !important; color: var(--c-navy) !important; font-size: 13px !important; font-weight: 600 !important; }
#rkcp .rkcp-textbtn:hover, #rkcp .rkcp-textbtn:focus-visible { color: #9a7428 !important; }
#rkcp .rkcp-copy.is-done { color: var(--c-ok) !important; }
#rkcp .rkcp-hit-q { background: none !important; border: 0 !important; padding: 12px 14px !important; color: var(--c-navy) !important; font-size: 14.5px !important; font-weight: 600 !important; line-height: 1.4 !important; text-align: left !important; }
#rkcp .rkcp-hit-q:hover, #rkcp .rkcp-hit-q:focus-visible { background: #fcfaf6 !important; }
#rkcp textarea, #rkcp input[type="text"], #rkcp input[type="email"], #rkcp select { color: var(--c-ink) !important; background-color: #fff !important; border: 1.5px solid var(--c-line) !important; border-radius: 12px !important; font-size: 16px !important; font-family: var(--c-sans) !important; }
#rkcp textarea:focus, #rkcp input:focus, #rkcp select:focus { border-color: var(--c-gold) !important; }
#rkcp .is-invalid { border-color: var(--c-err) !important; }
#rkcp h2, #rkcp h3 { text-transform: none !important; }
#rkcp select, #rkcp input[type="text"], #rkcp input[type="email"] { height: auto !important; min-height: 46px !important; padding: 11px 38px 11px 13px !important; line-height: 1.45 !important; }
#rkcp input[type="text"], #rkcp input[type="email"] { padding-right: 13px !important; }
#rkcp textarea { padding: 11px 13px !important; line-height: 1.45 !important; }

/* ---------------------------------------------------------------- header support button (v1.1, 8 Oct 2026)
   The "Contact Us" item in the Primary menu has the CSS class rk-nav-support and opens this popup. */
.rk-header .jet-nav__item.rk-nav-support > a.menu-item-link-depth-0 {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin: 0 4px;
	padding: 7px 16px 7px 13px !important;
	border: 1px solid rgba(250, 248, 245, .28);
	border-radius: 999px;
	background: rgba(250, 248, 245, .06);
	color: #faf8f5 !important;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.rk-header .jet-nav__item.rk-nav-support > a.menu-item-link-depth-0::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background-color: var(--rk-gold, #d6a84f);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20l1.2-4.2A8.5 8.5 0 1 1 20 11.5z'/%3E%3Cpath d='M8.5 11.5h.01M12 11.5h.01M15.5 11.5h.01' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20l1.2-4.2A8.5 8.5 0 1 1 20 11.5z'/%3E%3Cpath d='M8.5 11.5h.01M12 11.5h.01M15.5 11.5h.01' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: background-color .25s ease;
}
.rk-header .jet-nav__item.rk-nav-support > a.menu-item-link-depth-0:hover,
.rk-header .jet-nav__item.rk-nav-support > a.menu-item-link-depth-0:focus-visible {
	border-color: var(--rk-gold, #d6a84f);
	background: rgba(214, 168, 79, .12);
	color: var(--rk-gold, #d6a84f) !important;
}
.rk-header .jet-nav__item.rk-nav-support > a.menu-item-link-depth-0:focus-visible {
	outline: 2px solid var(--rk-gold, #d6a84f);
	outline-offset: 2px;
}

/* Inside the mobile menu: a full-width row with the same chat icon. */
@media (max-width: 1024px) {
	.rk-header .jet-nav__item.rk-nav-support > a.menu-item-link-depth-0 {
		display: flex !important;
		margin: 0;
		gap: 10px;
		padding: 14px 24px !important;
		border: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .06);
		border-radius: 0;
		background: transparent;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rk-header .jet-nav__item.rk-nav-support > a.menu-item-link-depth-0,
	.rk-header .jet-nav__item.rk-nav-support > a.menu-item-link-depth-0::before { transition: none; }
}
