/* Reservation Form — frontend styles */

.rf-form-wrapper {
	--rf-primary: #c9a227;
	--rf-primary-dark: #a9861c;
	--rf-text: #2b2b2b;
	--rf-muted: #8a8a8a;
	--rf-border: #e7e2d6;
	--rf-bg: #ffffff;
	--rf-radius: 14px;
	direction: rtl;
	font-family: inherit;
	max-width: 640px;
	margin: 0 auto;
	box-sizing: border-box;
}

.rf-form-wrapper * {
	box-sizing: border-box;
}

.rf-booking-form {
	background: var(--rf-bg);
	border: 1px solid var(--rf-border);
	border-radius: var(--rf-radius);
	padding: 32px 28px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.rf-form-title {
	margin: 0 0 22px;
	font-size: 20px;
	font-weight: 700;
	color: var(--rf-text);
	text-align: center;
	position: relative;
	padding-bottom: 14px;
}
.rf-form-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	right: 50%;
	transform: translateX(50%);
	width: 60px;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--rf-primary), transparent);
}

.rf-hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.rf-alert {
	padding: 14px 16px;
	border-radius: 10px;
	font-size: 14px;
	margin-bottom: 18px;
	line-height: 1.8;
	animation: rf-fade-in 0.35s ease;
}
.rf-alert-success {
	background: #eef8ee;
	color: #2e7d32;
	border: 1px solid #cfead0;
}
.rf-alert-error {
	background: #fdeeee;
	color: #c62828;
	border: 1px solid #f5cccc;
}

@keyframes rf-fade-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.rf-row {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}
.rf-row-2 {
	grid-template-columns: 1fr 1fr;
}

.rf-field {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
}
.rf-row .rf-field {
	margin-bottom: 0;
}

.rf-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--rf-text);
	margin-bottom: 8px;
}

.rf-input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--rf-border);
	border-radius: 10px;
	font-size: 14px;
	color: var(--rf-text);
	background: #fcfbf8;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-family: inherit;
}
.rf-input:focus {
	outline: none;
	border-color: var(--rf-primary);
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
	background: #fff;
}

.rf-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%238a8a8a' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 14px center;
	padding-left: 34px;
}

.rf-field-error {
	display: block;
	color: #c62828;
	font-size: 12px;
	margin-top: 6px;
	min-height: 14px;
}

.rf-hours-note {
	font-size: 12.5px;
	color: var(--rf-muted);
	margin: 4px 0 22px;
	text-align: center;
}

.rf-submit-btn {
	width: 100%;
	padding: 14px 20px;
	border: none;
	border-radius: 30px;
	background: linear-gradient(135deg, var(--rf-primary), var(--rf-primary-dark));
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
	box-shadow: 0 10px 24px rgba(201, 162, 39, 0.3);
	font-family: inherit;
}
.rf-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(201, 162, 39, 0.4);
}
.rf-submit-btn:active {
	transform: translateY(0);
}
.rf-submit-btn[disabled] {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.rf-btn-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	display: inline-block;
	animation: rf-spin 0.7s linear infinite;
}
@keyframes rf-spin {
	to { transform: rotate(360deg); }
}

.rf-input.rf-field-invalid,
.rf-select.rf-field-invalid {
	border-color: #c62828;
}

@media (max-width: 600px) {
	.rf-booking-form { padding: 24px 18px; border-radius: 12px; }
	.rf-row-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.rf-alert, .rf-submit-btn, .rf-btn-spinner { animation: none !important; transition: none !important; }
}
