/* Contact popup — resources/views/partials/contact-modal.blade.php */
.scm { position: fixed; inset: 0; z-index: 1000000; display: grid; place-items: center; padding: 16px;
	font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.scm[hidden] { display: none; }
.scm *, .scm *::before, .scm *::after { box-sizing: border-box; }
.scm-backdrop { position: absolute; inset: 0; background: rgba(5, 10, 36, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	opacity: 0; transition: opacity .25s ease; }
.scm-dialog { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 20px 20px 16px;
	border-radius: 20px; background: #fff; color: #0f1430; box-shadow: 0 40px 80px -24px rgba(5, 10, 36, .55), 0 0 0 1px rgba(15, 20, 48, .06);
	opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.scm.is-open .scm-backdrop { opacity: 1; }
.scm.is-open .scm-dialog { opacity: 1; transform: none; }
.scm-dialog::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, #3b5bfd, #6a4cf5, #38bdf8); }

.scm .scm-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0 !important; margin: 0;
	border: 0 !important; border-radius: 50% !important; background: #f1f3f9 !important; color: #3c4462 !important; cursor: pointer; transition: background .2s; box-shadow: none !important; }
.scm .scm-x:hover { background: #e4e7f2 !important; }

.scm-head { display: flex; gap: 10px; align-items: flex-start; margin: 0 40px 12px 0; }
.scm-dot { flex: none; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.scm h2, .scm h3 { margin: 0 !important; padding: 0; font-family: Inter, system-ui, sans-serif !important; font-weight: 800 !important; letter-spacing: -.02em !important;
	color: #0f1430 !important; text-transform: none !important; line-height: 1.2 !important; }
.scm h2 { font-size: 19px !important; }
.scm-head p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: #6b7290; }

.scm-form { margin: 0; }
.scm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.scm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scm-fld { display: block; min-width: 0; margin: 0 0 8px; }
.scm-fld > span { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 600; color: #3c4462; }
.scm-fld input, .scm-fld select, .scm-fld textarea {
	display: block; width: 100%; margin: 0; padding: 8px 10px; height: auto; border: 1px solid #e0e4ef !important; border-radius: 9px !important; background: #fff !important;
	font: 400 14px/1.35 Inter, system-ui, sans-serif !important; color: #0f1430 !important; box-shadow: none; outline: none; transition: border-color .2s, box-shadow .2s; }
.scm-fld textarea { resize: vertical; min-height: 58px; }
.scm-fld input:focus, .scm-fld select:focus, .scm-fld textarea:focus { border-color: #3b5bfd !important; box-shadow: 0 0 0 3px rgba(59, 91, 253, .15); }
.scm-fld.has-err input, .scm-fld.has-err select, .scm-fld.has-err textarea { border-color: #c0262d !important; }
.scm-fld em { display: none; margin-top: 3px; font-size: 11.5px; font-style: normal; color: #c0262d; }
.scm-fld.has-err em { display: block; }

.scm-error { margin: 0 0 8px; padding: 7px 10px; border-radius: 10px; background: #fdecec; color: #a11d24; font-size: 13.5px; }
.scm .scm-submit { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; height: 44px; margin: 2px 0 0; padding: 0 20px;
	border: 0 !important; border-radius: 12px !important; background: linear-gradient(135deg, #3b5bfd, #6a4cf5) !important; color: #fff !important;
	font: 600 15.5px/1 Inter, system-ui, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; box-shadow: 0 12px 26px -12px rgba(59, 91, 253, .8); transition: transform .2s, opacity .2s; }
.scm .scm-submit:hover { transform: translateY(-1px); }
.scm .scm-submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.scm-alt { margin: 9px 0 0; text-align: center; font-size: 12.5px; color: #6b7290; }
.scm-alt a { color: #3b5bfd !important; font-weight: 600; text-decoration: none !important; }

.scm-done { padding: 10px 0 2px; text-align: center; }
.scm-check { display: grid; place-items: center; width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%; background: #e6f6ef; color: #12805c;
	animation: scm-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes scm-pop { from { transform: scale(.4); opacity: 0; } }
.scm-done h3 { font-size: 21px !important; margin-bottom: 6px !important; }
.scm-done p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: #6b7290; }

html.scm-lock, html.scm-lock body { overflow: hidden !important; }

@media (max-width: 520px) {
	.scm { place-items: end center; padding: 0; }
	.scm-dialog { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; padding: 16px 14px 14px; transform: translateY(40px); }
	.scm-fld input, .scm-fld select, .scm-fld textarea { font-size: 16px !important; padding: 7px 9px; } /* 16px stops iOS zoom */
}
@media (prefers-reduced-motion: reduce) {
	.scm-backdrop, .scm-dialog { transition: none; }
	.scm-check { animation: none; }
}

/* same height for inputs and the select (the theme sets its own input heights) */
.scm .scm-fld input, .scm .scm-fld select { height: 38px !important; min-height: 0 !important; line-height: 1.2 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
@media (max-width: 520px) { .scm .scm-fld input, .scm .scm-fld select { height: 40px !important; } }

/* burst opening (public/assets/booking-burst): dialog stays hidden until the card splits */
.scm.scm-burst .scm-dialog { opacity: 0 !important; transform: none !important; transition: none !important; }
.scm.scm-burst .scm-backdrop { transition: opacity .4s ease; }
.scm.scm-pop .scm-dialog { transition: none; animation: scm-reveal .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes scm-reveal { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
