/* AMG Booking – Public Styles (namespaced under .amg-booking / .amg-*) */

.amg-booking {
	--amg-bg: #070707;
	--amg-bg-alt: #0D0D0D;
	--amg-gold: #C99335;
	--amg-gold-light: #D8A84E;
	--amg-gold-lighter: #E0B15C;
	--amg-gold-secondary: #A87824;
	--amg-text: #F5F1E8;
	--amg-text-muted: #B8B2A6;
	--amg-border: rgba(201, 147, 53, 0.30);
	--amg-radius: 12px;
	--amg-shadow: 0 10px 30px rgba(0,0,0,0.45);
	color: var(--amg-text);
	font-family: "Tajawal", "Cairo", Tahoma, Arial, sans-serif;
	direction: rtl;
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 20px 60px;
	box-sizing: border-box;
}
.amg-booking * { box-sizing: border-box; }

.amg-booking-hero { text-align: center; margin-bottom: 32px; }
.amg-booking-hero__title {
	font-size: clamp(28px, 4vw, 42px);
	color: var(--amg-gold-light);
	letter-spacing: 0.5px;
	margin: 0 0 12px;
	font-weight: 700;
}
.amg-booking-hero__subtitle {
	color: var(--amg-text-muted);
	font-size: 16px;
	max-width: 620px;
	margin: 0 auto;
	line-height: 1.8;
}

.amg-booking-card {
	background: linear-gradient(180deg, var(--amg-bg-alt), var(--amg-bg));
	border: 1px solid var(--amg-border);
	border-radius: var(--amg-radius);
	box-shadow: var(--amg-shadow);
	padding: 32px;
	margin-bottom: 48px;
}
@media (max-width: 600px) {
	.amg-booking-card { padding: 20px; }
}

.amg-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
@media (max-width: 640px) {
	.amg-form-grid { grid-template-columns: 1fr; }
}

.amg-field { margin-bottom: 18px; }
.amg-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--amg-gold-light);
	font-weight: 600;
}
.amg-field input[type="text"],
.amg-field input[type="tel"],
.amg-field input[type="email"],
.amg-field input[type="date"],
.amg-field input[type="time"],
.amg-field select,
.amg-field textarea {
	width: 100%;
	background: rgba(255,255,255,0.02);
	border: 1px solid var(--amg-border);
	border-radius: 8px;
	padding: 13px 14px;
	color: var(--amg-text);
	font-size: 15px;
	font-family: inherit;
	transition: border-color .2s ease, box-shadow .2s ease;
	min-height: 46px;
}
.amg-field input:focus,
.amg-field select:focus,
.amg-field textarea:focus {
	outline: none;
	border-color: var(--amg-gold);
	box-shadow: 0 0 0 3px rgba(201,147,53,0.18);
}
.amg-field textarea { resize: vertical; }

.amg-field--checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--amg-text-muted);
	font-weight: 400;
	font-size: 14px;
	cursor: pointer;
}
.amg-field--checkbox input { margin-top: 3px; accent-color: var(--amg-gold); }
.amg-field--checkbox a { color: var(--amg-gold-light); }

.amg-hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.amg-time-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}
.amg-slot-btn {
	border: 1px solid var(--amg-border);
	background: rgba(255,255,255,0.02);
	color: var(--amg-text);
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 14px;
	cursor: pointer;
	transition: all .2s ease;
	min-width: 88px;
	text-align: center;
}
.amg-slot-btn:hover:not(.is-disabled) {
	border-color: var(--amg-gold);
	background: rgba(201,147,53,0.10);
}
.amg-slot-btn.is-selected {
	background: linear-gradient(135deg, var(--amg-gold), var(--amg-gold-secondary));
	border-color: var(--amg-gold);
	color: #14100A;
	font-weight: 700;
}
.amg-slot-btn.is-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	text-decoration: line-through;
}
.amg-slots-placeholder { color: var(--amg-text-muted); font-size: 14px; }

.amg-form-errors {
	color: #E28787;
	font-size: 14px;
	margin-bottom: 14px;
}
.amg-form-errors:empty { display: none; }
.amg-form-errors ul { margin: 0; padding-inline-start: 18px; }

.amg-submit-btn {
	width: 100%;
	background: linear-gradient(135deg, var(--amg-gold-lighter), var(--amg-gold-secondary));
	color: #14100A;
	border: none;
	border-radius: 999px;
	padding: 16px 24px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
	min-height: 50px;
}
.amg-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(201,147,53,0.35); }
.amg-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.amg-booking-success {
	text-align: center;
	padding: 30px 10px;
	animation: amgFadeIn .4s ease;
}
.amg-success-icon {
	width: 62px; height: 62px;
	border-radius: 50%;
	background: rgba(201,147,53,0.15);
	border: 1px solid var(--amg-border);
	color: var(--amg-gold-light);
	font-size: 28px;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 16px;
}
.amg-booking-success h3 { color: var(--amg-gold-light); font-size: 22px; margin: 0 0 10px; }
.amg-success-code { color: var(--amg-text); font-size: 16px; }
.amg-success-actions {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px;
}
.amg-btn-outline {
	border: 1px solid var(--amg-border);
	color: var(--amg-gold-light);
	padding: 10px 18px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 14px;
	transition: all .2s ease;
}
.amg-btn-outline:hover { background: rgba(201,147,53,0.10); color: var(--amg-gold-lighter); }

.amg-why-choose { text-align: center; margin-bottom: 48px; }
.amg-why-choose h3 { color: var(--amg-gold-light); font-size: 26px; margin-bottom: 24px; }
.amg-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px) { .amg-why-grid { grid-template-columns: 1fr; } }
.amg-why-card {
	background: var(--amg-bg-alt);
	border: 1px solid var(--amg-border);
	border-radius: var(--amg-radius);
	padding: 26px 20px;
	transition: transform .2s ease, border-color .2s ease;
}
.amg-why-card:hover { transform: translateY(-3px); border-color: var(--amg-gold); }
.amg-why-card h4 { color: var(--amg-gold-light); margin: 0 0 10px; font-size: 17px; }
.amg-why-card p { color: var(--amg-text-muted); font-size: 14px; line-height: 1.7; margin: 0; }

.amg-restaurant-info {
	background: var(--amg-bg-alt);
	border: 1px solid var(--amg-border);
	border-radius: var(--amg-radius);
	padding: 30px;
	margin-bottom: 48px;
}
.amg-restaurant-info__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
@media (max-width: 720px) { .amg-restaurant-info__grid { grid-template-columns: 1fr; } }
.amg-restaurant-info__details h3 { color: var(--amg-gold-light); font-size: 22px; margin: 0 0 14px; }
.amg-info-row { color: var(--amg-text-muted); font-size: 14px; margin: 6px 0; }
.amg-info-row a { color: var(--amg-text); text-decoration: none; }
.amg-info-label { color: var(--amg-gold); font-weight: 600; }
.amg-hours-list ul { list-style: none; margin: 10px 0 0; padding: 0; }
.amg-hours-list li {
	display: flex; justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px dashed rgba(201,147,53,0.15);
	font-size: 13px;
	color: var(--amg-text-muted);
}
.amg-map-btn { display: inline-block; margin-top: 16px; }

.amg-final-cta {
	text-align: center;
	padding: 40px 20px;
	background: radial-gradient(circle at center, rgba(201,147,53,0.10), transparent 70%);
	border-radius: var(--amg-radius);
}
.amg-final-cta h3 { color: var(--amg-gold-light); font-size: 26px; margin: 0 0 8px; }
.amg-final-cta p { color: var(--amg-text-muted); margin: 0 0 18px; }

.amg-cta {
	display: inline-block;
	background: linear-gradient(135deg, var(--amg-gold-lighter), var(--amg-gold-secondary));
	color: #14100A;
	padding: 13px 28px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	transition: transform .15s ease, box-shadow .15s ease;
}
.amg-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(201,147,53,0.35); color: #14100A; }

/* Quick booking (compact) */
.amg-quick-booking {
	display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
	background: var(--amg-bg-alt, #0D0D0D);
	border: 1px solid var(--amg-border, rgba(201,147,53,0.3));
	border-radius: 999px;
	padding: 14px 18px;
	direction: rtl;
	font-family: "Tajawal", Tahoma, Arial, sans-serif;
}
.amg-quick-field { display: flex; flex-direction: column; gap: 4px; }
.amg-quick-field label { font-size: 11px; color: var(--amg-gold-light, #D8A84E); }
.amg-quick-field input, .amg-quick-field select {
	background: transparent; border: none; color: var(--amg-text, #F5F1E8);
	font-size: 14px; padding: 4px 2px; min-width: 90px;
}
.amg-quick-submit { white-space: nowrap; }
@media (max-width: 640px) {
	.amg-quick-booking { border-radius: 16px; flex-direction: column; align-items: stretch; }
}

/* Focus visibility for accessibility */
.amg-booking a:focus-visible,
.amg-booking button:focus-visible,
.amg-booking input:focus-visible,
.amg-booking select:focus-visible {
	outline: 2px solid var(--amg-gold-lighter);
	outline-offset: 2px;
}

@keyframes amgFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Sticky mobile submit affordance */
@media (max-width: 480px) {
	.amg-booking-form .amg-submit-btn {
		position: sticky;
		bottom: 10px;
		z-index: 2;
	}
}
