/* ==========================================================
   CHIRALA RESORTS
   VENDOR ADD / EDIT ROOM FORM
========================================================== */

:root {
	--crms-form-primary: #0f766e;
	--crms-form-primary-dark: #0b5f59;
	--crms-form-primary-light: #ecfdf5;

	--crms-form-bg: #f4f8fb;
	--crms-form-surface: #ffffff;
	--crms-form-text: #172033;
	--crms-form-muted: #667085;
	--crms-form-border: #dfe5ec;

	--crms-form-danger: #b42318;
	--crms-form-danger-bg: #fff1f0;

	--crms-form-warning: #9a6700;
	--crms-form-warning-bg: #fff8e5;

	--crms-form-radius-sm: 10px;
	--crms-form-radius-md: 16px;
	--crms-form-radius-lg: 22px;

	--crms-form-shadow:
		0 14px 38px rgba(15, 23, 42, 0.07);
}

/* ==========================================================
   PAGE RESET
========================================================== */

body:has(.crms-vendor-room-form-page) {
	background: var(--crms-form-bg);
}

body:has(.crms-vendor-room-form-page) .entry-header,
body:has(.crms-vendor-room-form-page) .entry-title,
body:has(.crms-vendor-room-form-page) .page-title {
	display: none !important;
}

body:has(.crms-vendor-room-form-page) .site-content,
body:has(.crms-vendor-room-form-page) .content-area,
body:has(.crms-vendor-room-form-page) .site-main {
	width: 100%;
	max-width: none;
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.crms-vendor-room-form-page,
.crms-vendor-room-form-page * {
	box-sizing: border-box;
}

.crms-vendor-room-form-page {
	width: min(1040px, calc(100% - 40px));
	margin: 38px auto 70px;
	color: var(--crms-form-text);
}

/* ==========================================================
   PAGE HEADER
========================================================== */

.crms-vendor-room-form-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;

	margin-bottom: 24px;
	padding: 30px 32px;

	background:
		linear-gradient(
			135deg,
			rgba(236, 253, 245, 0.94),
			rgba(255, 255, 255, 0.98) 52%
		);

	border: 1px solid var(--crms-form-border);
	border-radius: var(--crms-form-radius-lg);
	box-shadow: var(--crms-form-shadow);
}

.crms-vendor-room-form-header > div {
	max-width: 700px;
}

.crms-vendor-room-form-header__eyebrow {
	display: inline-flex;
	align-items: center;

	margin-bottom: 13px;
	padding: 7px 12px;

	border: 1px solid #b7e5dc;
	border-radius: 999px;
	background: var(--crms-form-primary-light);

	font-size: 11px;
	font-weight: 750;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--crms-form-primary-dark);
}

.crms-vendor-room-form-header h1 {
	margin: 0 0 10px;
	font-size: clamp(29px, 4vw, 40px);
	font-weight: 760;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--crms-form-text);
}

.crms-vendor-room-form-header p {
	max-width: 680px;
	margin: 0;
	font-size: 15px;
	line-height: 1.75;
	color: var(--crms-form-muted);
}

.crms-vendor-room-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;

	min-height: 44px;
	padding: 10px 15px;

	border: 1px solid #cfd7e1;
	border-radius: 10px;
	background: #ffffff;

	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	color: #344054;

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.crms-vendor-room-back:hover {
	background: var(--crms-form-primary-light);
	border-color: #acdcd3;
	color: var(--crms-form-primary-dark);
	transform: translateX(-2px);
}

/* ==========================================================
   ALERTS
========================================================== */

.crms-vendor-room-alert {
	margin-bottom: 22px;
	padding: 16px 18px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.65;
}

.crms-vendor-room-alert p {
	margin: 5px 0 0;
}

.crms-vendor-room-alert--error {
	background: var(--crms-form-danger-bg);
	border: 1px solid #f5b7b1;
	color: var(--crms-form-danger);
}

.crms-vendor-room-alert--warning {
	background: var(--crms-form-warning-bg);
	border: 1px solid #f0d78c;
	color: var(--crms-form-warning);
}

/* ==========================================================
   FORM
========================================================== */

.crms-vendor-room-form {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* ==========================================================
   FORM SECTION CARDS
========================================================== */

.crms-vendor-room-form .crms-vendor-room-card {
	overflow: hidden;
	padding: 0;

	background: var(--crms-form-surface);
	border: 1px solid var(--crms-form-border);
	border-radius: var(--crms-form-radius-lg);
	box-shadow: var(--crms-form-shadow);

	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.crms-vendor-room-form .crms-vendor-room-card:hover {
	border-color: #c9d8df;
	box-shadow: 0 17px 42px rgba(15, 23, 42, 0.09);
}

/* Section Header */

.crms-vendor-room-card__header {
	display: flex;
	align-items: flex-start;
	gap: 16px;

	padding: 23px 26px;
	border-bottom: 1px solid #edf0f3;
	background: #fbfcfd;
}

.crms-vendor-room-card__header > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 38px;
	height: 38px;
	flex: 0 0 38px;

	border-radius: 11px;
	background: var(--crms-form-primary);

	font-size: 15px;
	font-weight: 750;
	color: #ffffff;

	box-shadow: 0 7px 16px rgba(15, 118, 110, 0.2);
}

.crms-vendor-room-card__header h2 {
	margin: 0 0 5px;
	font-size: 21px;
	font-weight: 740;
	line-height: 1.3;
	color: var(--crms-form-text);
}

.crms-vendor-room-card__header p {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--crms-form-muted);
}

/* ==========================================================
   GRID
========================================================== */

.crms-vendor-room-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	padding: 26px;
}

.crms-vendor-room-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crms-vendor-room-field--full {
	grid-column: 1 / -1;
}

/* ==========================================================
   FIELDS
========================================================== */

.crms-vendor-room-field {
	min-width: 0;
}

.crms-vendor-room-field label {
	display: block;
	margin-bottom: 8px;

	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	color: #344054;
}

.crms-vendor-room-field label > span {
	color: #d92d20;
}

.crms-vendor-room-field input[type="text"],
.crms-vendor-room-field input[type="number"],
.crms-vendor-room-field input[type="email"],
.crms-vendor-room-field input[type="url"],
.crms-vendor-room-field select,
.crms-vendor-room-field textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;

	border: 1px solid #cfd7e1;
	border-radius: 10px;
	outline: none;
	background: #ffffff;

	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	color: var(--crms-form-text);

	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease;
}

.crms-vendor-room-field textarea {
	min-height: 145px;
	line-height: 1.7;
	resize: vertical;
}

.crms-vendor-room-field select {
	padding-right: 40px;
	cursor: pointer;
}

.crms-vendor-room-field input::placeholder,
.crms-vendor-room-field textarea::placeholder {
	color: #98a2b3;
}

.crms-vendor-room-field input:hover,
.crms-vendor-room-field select:hover,
.crms-vendor-room-field textarea:hover {
	border-color: #aeb9c5;
}

.crms-vendor-room-field input:focus,
.crms-vendor-room-field select:focus,
.crms-vendor-room-field textarea:focus {
	border-color: var(--crms-form-primary);
	box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.11);
}

/* Remove browser number arrows in Chrome */

.crms-vendor-room-field input[type="number"]::-webkit-inner-spin-button,
.crms-vendor-room-field input[type="number"]::-webkit-outer-spin-button {
	margin: 0;
}

/* ==========================================================
   PRICE INPUTS
========================================================== */

.crms-price-input {
	position: relative;
	display: flex;
	align-items: stretch;
}

.crms-price-input > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 50px;
	flex: 0 0 50px;

	border: 1px solid #cfd7e1;
	border-right: 0;
	border-radius: 10px 0 0 10px;
	background: #f7f9fb;

	font-size: 16px;
	font-weight: 750;
	color: #344054;
}

.crms-price-input input {
	border-radius: 0 10px 10px 0 !important;
}

.crms-price-input:focus-within > span {
	border-color: var(--crms-form-primary);
	background: var(--crms-form-primary-light);
	color: var(--crms-form-primary-dark);
}

/* ==========================================================
   AMENITIES
========================================================== */

.crms-vendor-room-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 13px;
	padding: 26px 26px 18px;
}

.crms-vendor-room-option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 11px;

	min-height: 54px;
	padding: 13px 14px;

	border: 1px solid #dce2e8;
	border-radius: 11px;
	background: #ffffff;

	font-size: 13px;
	font-weight: 650;
	line-height: 1.4;
	color: #475467;

	cursor: pointer;

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.crms-vendor-room-option:hover {
	background: #f7fcfb;
	border-color: #b8ddd6;
	transform: translateY(-1px);
}

.crms-vendor-room-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.crms-vendor-room-option__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 24px;
	height: 24px;
	flex: 0 0 24px;

	border: 1px solid #c8d0d9;
	border-radius: 7px;
	background: #ffffff;

	font-size: 13px;
	font-weight: 800;
	color: transparent;

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.crms-vendor-room-option input:checked + .crms-vendor-room-option__check {
	background: var(--crms-form-primary);
	border-color: var(--crms-form-primary);
	color: #ffffff;
}

.crms-vendor-room-option:has(input:checked) {
	background: var(--crms-form-primary-light);
	border-color: #a9ddd3;
	color: var(--crms-form-primary-dark);
}

.crms-vendor-room-option input:focus-visible + .crms-vendor-room-option__check {
	outline: 3px solid rgba(15, 118, 110, 0.18);
	outline-offset: 2px;
}

/* Room Status */

.crms-vendor-room-status-field {
	max-width: 370px;
	padding: 0 26px 27px;
}

/* ==========================================================
   IMAGE UPLOAD
========================================================== */

.crms-vendor-room-upload {
	position: relative;
	padding: 26px;
}

.crms-vendor-room-upload > input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.crms-vendor-room-upload > label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	min-height: 190px;
	padding: 28px 24px;

	border: 2px dashed #bfcad5;
	border-radius: 15px;
	background:
		linear-gradient(
			135deg,
			#f8fbfc,
			#f4faf8
		);

	text-align: center;
	cursor: pointer;

	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		transform 0.2s ease;
}

.crms-vendor-room-upload > label::before {
	content: "↑";
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 54px;
	height: 54px;
	margin-bottom: 15px;

	border-radius: 16px;
	background: var(--crms-form-primary-light);

	font-size: 25px;
	font-weight: 800;
	color: var(--crms-form-primary);
}

.crms-vendor-room-upload > label:hover {
	border-color: var(--crms-form-primary);
	background: #f6fcfa;
	transform: translateY(-1px);
}

.crms-vendor-room-upload > label strong {
	display: block;
	margin-bottom: 7px;
	font-size: 15px;
	font-weight: 750;
	color: var(--crms-form-text);
}

.crms-vendor-room-upload > label span {
	display: block;
	font-size: 12px;
	line-height: 1.6;
	color: var(--crms-form-muted);
}

.crms-vendor-room-current-image {
	margin-top: 20px;
	overflow: hidden;
	border: 1px solid var(--crms-form-border);
	border-radius: 14px;
	background: #eef2f6;
}

.crms-vendor-room-current-image img {
	display: block;
	width: 100%;
	max-height: 430px;
	object-fit: cover;
}

/* ==========================================================
   FORM FOOTER
========================================================== */

.crms-vendor-room-form-footer {
	position: sticky;
	bottom: 16px;
	z-index: 10;

	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;

	padding: 16px 18px;

	border: 1px solid rgba(214, 221, 229, 0.92);
	border-radius: 15px;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(12px);
	box-shadow: 0 12px 34px rgba(15, 23, 42, 0.13);
}

.crms-vendor-room-cancel,
.crms-vendor-room-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;

	min-height: 46px;
	padding: 11px 19px;

	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.crms-vendor-room-cancel {
	border: 1px solid #cfd7e1;
	background: #ffffff;
	color: #344054;
}

.crms-vendor-room-cancel:hover {
	background: #f8fafc;
	border-color: #aeb9c5;
	color: var(--crms-form-text);
}

.crms-vendor-room-submit {
	border: 1px solid var(--crms-form-primary);
	background: var(--crms-form-primary);
	color: #ffffff;
}

.crms-vendor-room-submit:hover {
	background: var(--crms-form-primary-dark);
	border-color: var(--crms-form-primary-dark);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 9px 20px rgba(15, 118, 110, 0.23);
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {

	.crms-vendor-room-grid--three {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.crms-vendor-room-options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

	.crms-vendor-room-form-page {
		width: calc(100% - 24px);
		margin: 20px auto 45px;
	}

	.crms-vendor-room-form-header {
		flex-direction: column;
		padding: 23px 20px;
		border-radius: 17px;
	}

	.crms-vendor-room-back {
		width: 100%;
	}

	.crms-vendor-room-grid,
	.crms-vendor-room-grid--three {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 20px;
	}

	.crms-vendor-room-card__header {
		padding: 20px;
	}

	.crms-vendor-room-options {
		grid-template-columns: 1fr;
		padding: 20px 20px 15px;
	}

	.crms-vendor-room-status-field {
		max-width: none;
		padding: 0 20px 22px;
	}

	.crms-vendor-room-upload {
		padding: 20px;
	}

	.crms-vendor-room-upload > label {
		min-height: 165px;
		padding: 24px 18px;
	}

	.crms-vendor-room-form-footer {
		bottom: 8px;
		padding: 12px;
	}

	.crms-vendor-room-cancel,
	.crms-vendor-room-submit {
		flex: 1;
	}
}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

	.crms-vendor-room-card__header {
		gap: 12px;
	}

	.crms-vendor-room-card__header > span {
		width: 34px;
		height: 34px;
		flex-basis: 34px;
	}

	.crms-vendor-room-form-footer {
		flex-direction: column-reverse;
	}

	.crms-vendor-room-cancel,
	.crms-vendor-room-submit {
		width: 100%;
	}
}