/**
 * Centralis · HotelPro - стилове на резервационната форма.
 *
 * Цветовете следват сайта (тъмносиньо + златисто) и са изнесени
 * като променливи, за да се пренастройват без промяна в кода.
 */

.chp-widget {
	--chp-accent: #c8a46a;
	--chp-accent-dark: #b08d4f;
	--chp-navy: #141c2e;
	--chp-radius: 4px;
	--chp-border: #e2e0db;
	--chp-muted: #6b7280;

	box-sizing: border-box;
	max-width: 440px;
	width: 100%;
	padding: 28px 26px;
	font-family: inherit;
	line-height: 1.5;
}

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

.chp-widget--light {
	background: #fff;
	color: var(--chp-navy);
}

.chp-widget--dark {
	background: #1b2336;
	color: #fff;
	--chp-border: rgba( 255, 255, 255, 0.18 );
	--chp-muted: rgba( 255, 255, 255, 0.65 );
}

/* ---------- Заглавие ---------- */

.chp-widget__head {
	margin-bottom: 20px;
}

.chp-widget__title {
	margin: 0;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
}

.chp-widget__subtitle {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--chp-muted);
}

/* ---------- Полета ---------- */

.chp-grid {
	display: grid;
	gap: 12px;
	margin-bottom: 12px;
}

.chp-grid--2 {
	grid-template-columns: 1fr 1fr;
}

.chp-field {
	display: block;
	margin-bottom: 12px;
}

.chp-field__label {
	display: block;
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--chp-muted);
}

.chp-input {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 11px 12px;
	font: inherit;
	font-size: 15px;
	color: inherit;
	background: transparent;
	border: 1px solid var(--chp-border);
	border-radius: var(--chp-radius);
	transition: border-color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.chp-widget--dark .chp-input {
	background: rgba( 255, 255, 255, 0.04 );
}

.chp-input:focus {
	outline: none;
	border-color: var(--chp-accent);
	box-shadow: 0 0 0 2px rgba( 200, 164, 106, 0.2 );
}

select.chp-input {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
}

textarea.chp-input {
	resize: vertical;
	min-height: 60px;
}

.chp-children {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}

/* Скритото поле срещу ботове не трябва да е видимо, но и да не е display:none. */
.chp-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Бутони ---------- */

.chp-button {
	display: block;
	width: 100%;
	padding: 14px 18px;
	margin-top: 4px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: var(--chp-accent);
	border: 0;
	border-radius: var(--chp-radius);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.chp-button:hover:not( :disabled ) {
	background: var(--chp-accent-dark);
}

.chp-button:disabled {
	opacity: 0.6;
	cursor: default;
}

.chp-button--book {
	background: var(--chp-navy);
	margin-top: 14px;
}

.chp-widget--dark .chp-button--book {
	background: var(--chp-accent);
}

.chp-button--book:hover:not( :disabled ) {
	background: #0c1424;
}

/* ---------- Съобщения ---------- */

.chp-message {
	margin-top: 14px;
	padding: 11px 13px;
	font-size: 14px;
	border-radius: var(--chp-radius);
	border-left: 3px solid;
}

.chp-message--error {
	color: #8c1d18;
	background: #fdecea;
	border-color: #c62828;
}

.chp-message--warn {
	color: #7a5900;
	background: #fff8e1;
	border-color: #f0a202;
}

.chp-message--info {
	color: #1e3a5f;
	background: #eef4fb;
	border-color: #3b6ea5;
}

/* ---------- Цена ---------- */

.chp-quote {
	margin-top: 18px;
	padding: 16px 18px;
	background: rgba( 200, 164, 106, 0.1 );
	border: 1px solid rgba( 200, 164, 106, 0.4 );
	border-radius: var(--chp-radius);
}

.chp-quote__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.chp-quote__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--chp-muted);
}

.chp-quote__price {
	font-size: 26px;
	font-weight: 700;
	white-space: nowrap;
}

.chp-quote__meta,
.chp-quote__package {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--chp-muted);
}

.chp-quote__package {
	font-weight: 600;
	color: var(--chp-accent-dark);
}

.chp-widget--dark .chp-quote__package {
	color: var(--chp-accent);
}

/* ---------- Данни за госта ---------- */

.chp-guest {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--chp-border);
}

.chp-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 6px 0 4px;
	font-size: 13px;
	color: var(--chp-muted);
}

.chp-check input {
	margin-top: 3px;
	flex: 0 0 auto;
}

.chp-check a {
	color: inherit;
	text-decoration: underline;
}

/* ---------- Успех ---------- */

.chp-success {
	text-align: center;
	padding: 10px 0;
}

.chp-success__icon {
	width: 54px;
	height: 54px;
	margin: 0 auto 14px;
	font-size: 28px;
	line-height: 54px;
	color: #fff;
	background: #2e7d32;
	border-radius: 50%;
}

.chp-success__title {
	margin: 0 0 8px;
	font-size: 20px;
}

.chp-success__text {
	margin: 0;
	font-size: 14px;
	color: var(--chp-muted);
}

/* ---------- Бележка за администратор ---------- */

.chp-widget--notice {
	max-width: none;
	padding: 14px 16px;
	background: #fff8e1;
	border: 1px solid #f0a202;
	color: #7a5900;
	font-size: 14px;
}

/* ---------- Малки екрани ---------- */

@media ( max-width: 480px ) {
	.chp-widget {
		padding: 22px 18px;
	}

	.chp-grid--2,
	.chp-children {
		grid-template-columns: 1fr;
	}

	.chp-quote__row {
		flex-direction: column;
		gap: 2px;
	}
}

/* ---------- Знак за демо режим ---------- */

.chp-demo-badge {
	margin: 0 0 16px;
	padding: 9px 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #7a5900;
	background: #fff3cd;
	border: 1px dashed #d4a017;
	border-radius: var(--chp-radius);
}

/* ---------- Бележка към цената (режим запитване) ---------- */

.chp-quote__note {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--chp-muted);
}

/* ---------- Подсказка за деца и връзки към подходящи стаи ---------- */

.chp-hint {
	margin: -4px 0 12px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--chp-muted);
}

.chp-hint a,
.chp-message__links a {
	color: var(--chp-accent);
	text-decoration: underline;
}

.chp-message__links {
	display: inline-block;
	margin-top: 6px;
	font-weight: 600;
}
