/* Sarayan Contact Requests — front-end form (matches site brand: gold #CFB783, text #5e5e5e) */

.sarayan-cr-form-wrap {
	font-family: 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	box-sizing: border-box;
	/* Row-group columns respond to the form's own rendered width, not the
	   viewport — this page places the form inside a 50%-width column, so a
	   viewport-based breakpoint would wrongly go 2-across on a narrow tablet
	   column while a wide phone-in-landscape form might have room to spare. */
	container-type: inline-size;
	container-name: sarayan-cr;
}

.sarayan-cr-form-wrap * {
	box-sizing: border-box;
}

.sarayan-cr-card {
	background-color: #ffffff;
	border: 1px solid #ebe7e0;
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(31, 28, 20, 0.07);
	padding: 32px;
}

.sarayan-cr-row {
	margin-bottom: 18px;
}

.sarayan-cr-row:last-child {
	margin-bottom: 0;
}

.sarayan-cr-row-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 18px;
}

/* Go 2-across only once the form itself has enough room — independent of
   whether the surrounding page layout is 1 or 2 columns at this viewport. */
@container sarayan-cr (min-width: 480px) {
	.sarayan-cr-row-group {
		flex-direction: row;
	}
}

.sarayan-cr-row-group .sarayan-cr-row {
	flex: 1 1 0;
	min-width: 0;
	margin-bottom: 0;
}

.sarayan-cr-form label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #333333;
	margin-bottom: 6px;
}

.sarayan-cr-form label .req {
	color: #c0392b;
}

.sarayan-cr-form input[type="text"],
.sarayan-cr-form input[type="tel"],
.sarayan-cr-form input[type="email"],
.sarayan-cr-form select,
.sarayan-cr-form textarea {
	display: block;
	width: 100%;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: #3d3d3d;
	background-color: #faf9f7;
	border: 1px solid #e2ded6;
	border-radius: 9px;
	padding: 0 14px;
	height: 48px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.sarayan-cr-form textarea {
	height: auto;
	min-height: 150px;
	padding-top: 12px;
	padding-bottom: 12px;
	resize: vertical;
	line-height: 1.7;
}

.sarayan-cr-form select {
	cursor: pointer;
}

.sarayan-cr-form input:focus,
.sarayan-cr-form select:focus,
.sarayan-cr-form textarea:focus {
	outline: none;
	border-color: #CFB783;
	box-shadow: 0 0 0 3px rgba(207, 183, 131, 0.2);
	background-color: #ffffff;
}

.sarayan-cr-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	overflow: hidden;
}

.sarayan-cr-submit-row {
	margin-top: 6px;
	text-align: center;
}

.sarayan-cr-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	background-color: #CFB783;
	border: 2px solid #CFB783;
	border-radius: 9px;
	padding: 12px 32px;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.sarayan-cr-submit-btn:hover:not(:disabled) {
	background-color: #ffffff;
	color: #CFB783;
}

.sarayan-cr-submit-btn:focus-visible {
	outline: 2px solid #CFB783;
	outline-offset: 3px;
}

.sarayan-cr-submit-btn:disabled {
	cursor: not-allowed;
	opacity: 0.7;
}

.sarayan-cr-submit-btn .spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: sarayan-cr-spin 0.7s linear infinite;
	display: none;
	flex: 0 0 auto;
}

.sarayan-cr-submit-btn.is-loading .spinner {
	display: inline-block;
}

@keyframes sarayan-cr-spin {
	to { transform: rotate(360deg); }
}

.sarayan-cr-notice {
	padding: 12px 16px;
	border-radius: 9px;
	margin-bottom: 18px;
	font-size: 14px;
	line-height: 1.7;
}

.sarayan-cr-notice.success {
	background-color: rgba(136, 165, 163, 0.12);
	border: 1px solid #88A5A3;
	color: #3d5654;
}

.sarayan-cr-notice.error {
	background-color: rgba(192, 57, 43, 0.08);
	border: 1px solid #e0a29a;
	color: #a23a2e;
}

.sarayan-cr-form.is-submitted-success .sarayan-cr-row:not(.sarayan-cr-submit-row),
.sarayan-cr-form.is-submitted-success .sarayan-cr-row-group {
	display: none;
}

/* Desktop: submit button doesn't need to span the whole card width. */
@media (min-width: 768px) {
	.sarayan-cr-submit-btn {
		width: auto;
		min-width: 220px;
	}
}

/* Tablet */
@media (max-width: 1024px) {
	.sarayan-cr-form-wrap {
		max-width: 100%;
	}
}

/* Mobile: single column, compact spacing, full-width tap-friendly fields. */
@media (max-width: 767px) {
	.sarayan-cr-card {
		padding: 20px 16px;
		border-radius: 12px;
	}

	.sarayan-cr-row,
	.sarayan-cr-row-group {
		margin-bottom: 16px;
	}

	.sarayan-cr-form input[type="text"],
	.sarayan-cr-form input[type="tel"],
	.sarayan-cr-form input[type="email"],
	.sarayan-cr-form select {
		height: 44px;
	}

	.sarayan-cr-form textarea {
		min-height: 140px;
	}

	.sarayan-cr-submit-btn {
		width: 100%;
	}
}

/* ===== Contact info cards (left column on desktop) ===== */
.sarayan-contact-info-cards {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sarayan-info-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background-color: #ffffff;
	border: 1px solid #ebe7e0;
	border-radius: 12px;
	padding: 16px 18px;
	box-shadow: 0 4px 16px rgba(31, 28, 20, 0.05);
}

.sarayan-info-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background-color: rgba(207, 183, 131, 0.14);
	color: #b8935a;
}

.sarayan-info-icon svg {
	width: 20px;
	height: 20px;
}

.sarayan-info-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sarayan-info-title {
	font-family: 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #8a8a8a;
}

.sarayan-info-value {
	font-family: 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #333333;
	line-height: 1.6;
	word-break: break-word;
}

@media (max-width: 767px) {
	.sarayan-info-card {
		padding: 14px 16px;
	}
}
