﻿/* Booking modal — extracted from index.php, adapted for landing theme */
:root {
  --color-navy: #0F172A;
  --color-cyan: #3B82F6;
  --color-gray: #64748B;
  --border-color: #E2E8F0;
  --card-bg: #F8FAFC;
  --text-color: #334155;
}
.modal {
  display: none;
  position: fixed;
  z-index: 11000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(5px);
  -webkit-overflow-scrolling: touch;
}
.modal-content { background: #fff; position: relative; }
.close { position: absolute; right: 1rem; top: 1rem; font-size: 2rem; font-weight: bold; cursor: pointer; color: #64748b; z-index: 2; line-height: 1; }
.close:hover { color: #0F172A; }
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
		/* Modern Booking Modal Styles */
		.booking-modal {
			max-width: 700px;
			padding: 0;
			border-radius: 20px;
			overflow: hidden;
			box-shadow: 0 20px 60px rgba(0, 31, 63, 0.3);
			max-height: calc(100vh - 40px);
			height: min(92vh, 880px);
			display: flex;
			flex-direction: column;
			margin: 0;
			position: fixed;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
			width: 90%;
			z-index: 11001;
		}
		/* ~20% header / ~80% form (scrollable body) */
		.booking-modal .modal-header {
			flex: 0 0 20%;
			max-height: 20%;
			min-height: 0;
			overflow-y: auto;
			overflow-x: hidden;
			padding: 0.75rem 1.25rem 0.65rem;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
		}
		.booking-modal .booking-form {
			flex: 1 1 80%;
			min-height: 0;
			overflow-y: auto;
			overflow-x: hidden;
		}
		.modal-header {
			background: linear-gradient(135deg, #0F172A 0%, #003366 100%);
			color: #fff;
			padding: 2.5rem 2rem 2rem;
			position: relative;
			text-align: center;
		}
		.booking-modal .modal-icon {
			width: 40px;
			height: 40px;
			margin: 0 auto 0.4rem;
			font-size: 1.15rem;
		}
		.booking-modal .modal-header h2 {
			font-size: 1.15rem;
			margin: 0 0 0.2rem 0;
			line-height: 1.25;
		}
		.booking-modal .modal-subtitle {
			font-size: 0.78rem;
			line-height: 1.35;
			max-width: 28rem;
		}
		.modal-icon {
			width: 70px;
			height: 70px;
			background: rgba(255, 255, 255, 0.2);
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			margin: 0 auto 1.5rem;
			font-size: 2rem;
			backdrop-filter: blur(10px);
		}
		.modal-header h2 {
			color: #fff;
			margin: 0 0 0.5rem 0;
			font-size: 1.75rem;
			font-weight: 700;
		}
		.modal-subtitle {
			color: rgba(255, 255, 255, 0.9);
			margin: 0;
			font-size: 0.95rem;
		}
		.modal-header .close {
			top: 1.5rem;
			right: 1.5rem;
			color: #fff;
			font-size: 1.75rem;
		}
		.modal-header .close:hover {
			color: #3B82F6;
		}
		.booking-form {
			padding: 2rem;
			padding-bottom: 2.5rem;
			min-height: 0;
		}
		.form-row {
			display: grid;
			grid-template-columns: 1fr 1fr;
			gap: 1.5rem;
			margin-bottom: 1.5rem;
		}
		.booking-form .form-group {
			margin-bottom: 0;
		}
		.booking-form .form-group label {
			display: flex;
			align-items: center;
			gap: 0.5rem;
			color: #0F172A;
			font-weight: 600;
			font-size: 0.9rem;
			margin-bottom: 0.5rem;
		}
		.booking-form .form-group label i {
			color: #3B82F6;
			font-size: 0.9rem;
		}
		.booking-form .form-group label .optional {
			color: #64748B;
			font-weight: 400;
			font-size: 0.85rem;
		}
		.booking-form input,
		.booking-form select,
		.booking-form textarea {
			width: 100%;
			padding: 0.875rem 1rem;
			border: 2px solid #E2E8F0;
			border-radius: 10px;
			font-size: 1rem;
			font-family: 'Inter', sans-serif;
			transition: all 0.3s ease;
			background: #fff;
		}
		.booking-form input:focus,
		.booking-form select:focus,
		.booking-form textarea:focus {
			outline: none;
			border-color: #3B82F6;
			box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
		}
		.booking-form select {
			cursor: pointer;
			appearance: none;
			background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23001F3F' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
			background-repeat: no-repeat;
			background-position: right 1rem center;
			padding-right: 2.5rem;
		}
		.booking-form textarea {
			resize: vertical;
			min-height: 80px;
		}
		/* Form control: responsive, legible, intact on all devices */
		.booking-modal .form-control {
			box-sizing: border-box;
			width: 100%;
			min-height: 2.75rem;
			padding: 0.75rem 1rem;
			border: 2px solid #E2E8F0;
			border-radius: 10px;
			font-size: 1rem;
			line-height: 1.5;
			font-family: 'Inter', sans-serif;
			transition: border-color 0.2s ease, box-shadow 0.2s ease;
			background: #fff;
			color: #0F172A;
			max-width: 100%;
			-webkit-appearance: none;
			appearance: none;
		}
		.booking-modal .form-control::placeholder {
			color: #94a3b8;
		}
		.booking-modal .form-control:focus {
			outline: none;
			border-color: #3B82F6;
			box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.15);
		}
		.booking-modal .form-control[type="date"],
		.booking-modal .form-control[type="email"],
		.booking-modal .form-control[type="tel"],
		.booking-modal .form-control[type="text"] {
			font-size: 16px; /* Prevents zoom on iOS when focused */
		}
		.booking-modal textarea.form-control {
			min-height: 5rem;
			resize: vertical;
			padding: 0.75rem 1rem;
		}
		.booking-modal select.form-control {
			cursor: pointer;
			background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23001F3F' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
			background-repeat: no-repeat;
			background-position: right 1rem center;
			padding-right: 2.5rem;
		}
		.booking-modal .form-group {
			min-width: 0; /* Prevents grid blowout on small screens */
		}
		.booking-modal .form-row {
			grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
		}
		.booking-summary {
			background: #F8FAFC;
			border: 1px solid #E2E8F0;
			border-radius: 12px;
			padding: 1.5rem;
			margin: 1.5rem 0;
		}
		.booking-summary-title {
			font-size: 1.25rem;
			font-weight: 700;
			color: #0F172A;
			margin-bottom: 1rem;
		}
		.booking-summary-content {
			display: flex;
			flex-direction: column;
			gap: 0.75rem;
		}
		.booking-summary-row {
			display: flex;
			justify-content: space-between;
			align-items: center;
		}
		.booking-summary-label {
			color: #334155;
			opacity: 0.7;
			font-size: 0.95rem;
		}
		.booking-summary-value {
			font-weight: 600;
			color: #0F172A;
			font-size: 0.95rem;
		}
		.booking-summary-total {
			margin-top: 0.5rem;
		}
		.booking-summary-total .booking-summary-label {
			font-weight: 700;
			color: #0F172A;
			opacity: 1;
			font-size: 1.1rem;
		}
		.booking-summary-total-value {
			font-size: 1.35rem;
			font-weight: 800;
			color: #3B82F6;
		}
		.booking-summary-divider {
			height: 1px;
			background: #E2E8F0;
			margin: 0.5rem 0;
		}
		.booking-summary-note {
			margin-top: 0.75rem;
			color: #f97316;
			font-size: 0.9rem;
		}
		.booking-form .consent-block {
			width: 100%;
			max-width: 100%;
			margin: 1rem 0 0 0;
			padding: 0;
			box-sizing: border-box;
			overflow: hidden;
		}
		.booking-form .consent-block .consent-label {
			display: flex !important;
			flex-direction: row !important;
			align-items: flex-start !important;
			gap: 0.75rem;
			cursor: pointer;
			font-size: 0.9rem;
			line-height: 1.6;
			font-weight: 500;
			color: #334155;
			margin: 0;
			width: 100%;
			box-sizing: border-box;
		}
		.booking-form .consent-block .consent-label input[type="checkbox"] {
			margin-top: 0.2rem;
			flex-shrink: 0;
			width: 18px;
			height: 18px;
		}
		/* 3-step booking flow */
		.booking-step-indicator {
			display: flex;
			align-items: center;
			justify-content: center;
			gap: 0.5rem;
			margin-bottom: 0.75rem;
		}
		.booking-step-dot {
			width: 32px;
			height: 32px;
			border-radius: 50%;
			background: #E2E8F0;
			color: #64748B;
			display: flex;
			align-items: center;
			justify-content: center;
			font-weight: 700;
			font-size: 0.9rem;
			transition: all 0.3s ease;
		}
		.booking-step-dot.active {
			background: #3B82F6;
			color: #fff;
		}
		.booking-step-dot.done {
			background: #0F172A;
			color: #fff;
		}
		.booking-step-line {
			width: 40px;
			height: 3px;
			background: #E2E8F0;
			border-radius: 2px;
		}
		.booking-step-label {
			text-align: center;
			color: #64748B;
			font-size: 0.9rem;
			margin: 0 0 1.25rem 0;
		}
		.booking-step {
			display: none;
		}
		.booking-step.active {
			display: block;
		}
		.optional-hint {
			color: #64748B;
			font-weight: 400;
			font-size: 0.85rem;
		}
		.field-hint {
			display: block;
			margin-top: 0.35rem;
			color: #64748B;
			font-size: 0.8rem;
		}
		.booking-step-actions {
			display: flex;
			justify-content: space-between;
			align-items: center;
			gap: 1rem;
			margin-top: 1.5rem;
			padding-top: 1rem;
			border-top: 1px solid #E2E8F0;
		}
		.btn-next-step, .btn-back-step {
			padding: 0.75rem 1.25rem;
			border-radius: 10px;
			font-weight: 600;
			font-size: 0.95rem;
			cursor: pointer;
			transition: all 0.3s ease;
			border: none;
			display: inline-flex;
			align-items: center;
			gap: 0.5rem;
		}
		.btn-next-step {
			background: #3B82F6;
			color: #fff;
			margin-left: auto;
		}
		.btn-next-step:hover {
			background: #0F172A;
		}
		.btn-back-step {
			background: transparent;
			color: #0F172A;
			border: 2px solid #E2E8F0;
		}
		.btn-back-step:hover {
			border-color: #3B82F6;
			color: #3B82F6;
		}
		/* Shine & Share ad modal */
		.shine-share-ad-modal .shine-share-ad-content {
			position: relative;
			background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
			color: #fff;
			max-width: 440px;
			margin: auto;
			padding: 2.5rem 2rem;
			border-radius: 20px;
			box-shadow: 0 25px 60px rgba(0,0,0,0.4);
			text-align: center;
			border: 1px solid rgba(251, 191, 36, 0.2);
		}
		.shine-share-ad-close {
			position: absolute;
			top: 1rem;
			right: 1rem;
			background: none;
			border: none;
			color: rgba(255,255,255,0.7);
			font-size: 1.75rem;
			cursor: pointer;
			line-height: 1;
			padding: 0.25rem;
		}
		.shine-share-ad-close:hover { color: #fff; }
		.shine-share-ad-icon {
			width: 64px;
			height: 64px;
			margin: 0 auto 1.25rem;
			background: linear-gradient(135deg, #fbbf24, #f59e0b);
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 1.75rem;
			color: #0f172a;
		}
		.shine-share-ad-title {
			font-size: 1.75rem;
			font-weight: 800;
			margin: 0 0 0.5rem;
			background: linear-gradient(90deg, #fbbf24, #fcd34d);
			-webkit-background-clip: text;
			-webkit-text-fill-color: transparent;
			background-clip: text;
		}
		.shine-share-ad-lead {
			font-size: 1.05rem;
			opacity: 0.95;
			margin: 0 0 1rem;
			line-height: 1.5;
		}
		.shine-share-ad-copy {
			font-size: 0.95rem;
			line-height: 1.6;
			opacity: 0.9;
			margin: 0 0 1.5rem;
		}
		.shine-share-ad-copy strong { color: #fbbf24; }
		.shine-share-ad-cta {
			display: inline-block;
			background: linear-gradient(135deg, #fbbf24, #f59e0b);
			color: #0f172a;
			padding: 0.9rem 2rem;
			border-radius: 12px;
			font-weight: 700;
			text-decoration: none;
			transition: transform 0.2s ease, box-shadow 0.2s ease;
		}
		.shine-share-ad-cta:hover {
			transform: translateY(-2px);
			box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
		}
		.booking-form .consent-block .consent-text {
			flex: 1 1 auto;
			min-width: 0;
			width: 100%;
			word-wrap: break-word;
			overflow-wrap: break-word;
			hyphens: auto;
		}
		.booking-form .consent-block .consent-text a {
			color: #3B82F6;
			text-decoration: underline;
		}
		.booking-form .btn-submit {
			width: 100%;
			padding: 1.125rem 2rem;
			background: linear-gradient(135deg, #0F172A 0%, #003366 100%);
			color: #fff;
			border: none;
			border-radius: 12px;
			font-size: 1.1rem;
			font-weight: 700;
			cursor: pointer;
			display: flex;
			align-items: center;
			justify-content: center;
			gap: 0.75rem;
			margin-top: 1.5rem;
			transition: all 0.3s ease;
			box-shadow: 0 4px 15px rgba(0, 31, 63, 0.2);
		}
		.booking-form .btn-submit:hover {
			transform: translateY(-2px);
			box-shadow: 0 6px 20px rgba(0, 31, 63, 0.3);
			background: linear-gradient(135deg, #003366 0%, #0F172A 100%);
		}
		.booking-form .btn-submit:active {
			transform: translateY(0);
		}
		.booking-form .btn-submit i {
			font-size: 1.1rem;
		}
		.multi-book-section {
			margin-bottom: 2rem;
		}
		.multi-book-section-title {
			font-size: 1.1rem;
			font-weight: 700;
			color: #0F172A;
			margin-bottom: 1rem;
			padding-bottom: 0.5rem;
			border-bottom: 2px solid #E2E8F0;
		}
		.order-row {
			margin-bottom: 1rem;
		}
		.order-row-inner {
			background: #F8FAFC;
			border: 1px solid #E2E8F0;
			border-radius: 10px;
			padding: 1rem;
		}
		/* Step 3: grid like col-12 / col-6 — full width on mobile, two columns on sm+ */
		.order-row-fields {
			display: grid;
			grid-template-columns: 1fr;
			gap: 0.75rem;
			align-items: end;
		}
		.booking-col {
			min-width: 0;
			width: 100%;
			box-sizing: border-box;
		}
		.booking-col-md-6 {
			width: 100%;
		}
		@media (min-width: 640px) {
			.order-row-fields {
				grid-template-columns: 1fr 1fr auto;
			}
			.booking-col-md-6 {
				grid-column: span 1;
			}
			.order-row-fields .order-notes-col {
				grid-column: 1 / -1;
			}
			.order-row-fields .order-remove-col {
				align-self: end;
				justify-self: end;
			}
		}
		.order-field-label {
			display: block;
			font-size: 0.8rem;
			font-weight: 600;
			color: #0F172A;
			margin-bottom: 0.35rem;
		}
		.order-row-fields .btn-remove-order {
			padding: 0.5rem 0.65rem;
			color: #ef4444;
			background: transparent;
			border: none;
			cursor: pointer;
			border-radius: 8px;
			line-height: 1;
		}
		.order-row-fields .btn-remove-order:hover {
			background: rgba(239, 68, 68, 0.08);
		}
		.btn-add-order {
			display: inline-flex;
			align-items: center;
			gap: 0.5rem;
			padding: 0.75rem 1.25rem;
			background: transparent;
			border: 2px dashed #E2E8F0;
			border-radius: 10px;
			color: #3B82F6;
			font-weight: 600;
			cursor: pointer;
			width: 100%;
			justify-content: center;
		}
		.btn-add-order:hover {
			border-color: #3B82F6;
			background: rgba(0, 191, 255, 0.05);
		}
		.booking-form .consent-block { width: 100%; margin: 1rem 0 0 0; box-sizing: border-box; }
		.booking-form .consent-block .consent-label { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 0.75rem; cursor: pointer; font-size: 0.9rem; line-height: 1.6; margin: 0; width: 100%; }
		.booking-form .consent-block .consent-text { flex: 1 1 auto; min-width: 0; word-wrap: break-word; overflow-wrap: break-word; }
		.booking-form .consent-block .consent-text a { color: #3B82F6; text-decoration: underline; }
		@media (max-width: 639px) {
			.order-row-fields .order-remove-col {
				justify-self: end;
			}
			.booking-modal {
				width: 95% !important;
				max-width: 100% !important;
				max-height: calc(100vh - 20px) !important;
				height: min(92vh, calc(100vh - 20px)) !important;
				margin: 10px auto !important;
			}
			.booking-modal .modal-header {
				flex: 0 0 20% !important;
				max-height: 20% !important;
				padding: 0.6rem 0.85rem 0.5rem !important;
			}
			.booking-modal .modal-icon {
				width: 36px !important;
				height: 36px !important;
				font-size: 1rem !important;
				margin-bottom: 0.25rem !important;
			}
			.booking-modal .modal-header h2 {
				font-size: 1.05rem !important;
				margin-bottom: 0.15rem !important;
			}
			.booking-modal .modal-subtitle {
				font-size: 0.72rem !important;
				line-height: 1.3 !important;
			}
			.booking-modal .booking-form {
				padding: 1rem !important;
				padding-bottom: 1.5rem !important;
				flex: 1 1 80% !important;
				min-height: 0 !important;
				max-height: none !important;
				overflow-y: auto !important;
			}
			.form-row {
				grid-template-columns: 1fr !important;
				gap: 1rem !important;
				margin-bottom: 1rem !important;
			}
			.booking-form input,
			.booking-form select,
			.booking-form textarea,
			.booking-modal .form-control {
				font-size: 16px !important; /* Prevents zoom on iOS */
				padding: 0.75rem 1rem !important;
				min-height: 2.75rem !important;
			}
			.booking-modal textarea.form-control {
				min-height: 5rem !important;
			}
			.booking-form .btn-submit {
				padding: 1rem 1.5rem;
				font-size: 1rem;
			}
			.booking-form .consent-block .consent-label {
				font-size: 0.85rem;
			}
		}
		@media (max-width: 480px) {
			.booking-modal {
				width: 98%;
				max-height: calc(100vh - 10px);
				height: min(92vh, calc(100vh - 10px));
			}
			.booking-modal .modal-header {
				padding: 0.5rem 0.75rem 0.45rem !important;
			}
			.booking-modal .modal-header .close {
				top: 0.45rem !important;
				right: 0.45rem !important;
				font-size: 1.35rem !important;
			}
			.booking-modal .booking-form {
				padding: 0.85rem !important;
				padding-bottom: 1.25rem !important;
			}
		}

body.booking-modal-open .scroll-to-top,
body.booking-modal-open #autoshiner-push-banner {
	visibility: hidden !important;
	pointer-events: none !important;
}
