/* Nepal Dining Reservation – form, confirmation, lookup.
   Keeps the original form design (red #d93832 header, green #769a00 labels),
   scoped under .nd-res so it never restyles the theme's tables or buttons. */

.nd-res {
	--nd-red: #d93832;
	--nd-green: #769a00;
	--nd-wa: #25d366;
	--nd-text: #222;
	--nd-muted: #666;
	font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Noto Sans JP', Meiryo, sans-serif;
	color: var(--nd-text);
	box-sizing: border-box;
}
.nd-res *, .nd-res *::before, .nd-res *::after { box-sizing: inherit; }

.nd-res .nd-hero-box {
	max-width: 1024px;
	width: 95%;
	margin: 20px auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0,0,0,.15);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.nd-res .nd-header {
	background: var(--nd-red);
	color: #fff;
	text-align: center;
	padding: 12px;
	font-weight: bold;
	font-size: 18px;
}
.nd-res .nd-header span { display: block; font-size: 13px; font-weight: normal; opacity: .92; }

.nd-res .nd-form-area { padding: 10px; }

.nd-res .nd-table { width: 100%; border-collapse: collapse; margin: 0; border: 0; }
.nd-res .nd-table td { border: 0; padding: 0; vertical-align: middle; }
.nd-res .nd-table td.nd-label {
	width: 35%;
	background: var(--nd-green);
	color: #fff;
	padding: 10px;
	border-bottom: 1px solid #fff;
	font-weight: 600;
	font-size: 14px;
}
.nd-res .nd-table td.nd-label label,
.nd-res .nd-table td.nd-label .nd-label-text { color: #fff; display: block; cursor: pointer; font-weight: 600; font-size: 14px; }
.nd-res .nd-table td.nd-label span span,
.nd-res .nd-table td.nd-label label span,
.nd-res .nd-table td.nd-label > span { display: block; font-size: 12px; font-weight: normal; opacity: .92; }
.nd-res .nd-table td:last-child { border-bottom: 1px solid var(--nd-green); padding: 2px 4px; }

.nd-res input[type=text], .nd-res input[type=email], .nd-res input[type=tel],
.nd-res input[type=date], .nd-res select, .nd-res textarea {
	width: 100%;
	padding: 8px;
	border: none;
	outline: none;
	font-size: 15px;
	background: transparent;
	color: var(--nd-text);
	font-family: inherit;
	min-height: 40px;
	margin: 0;
	box-shadow: none;
	border-radius: 4px;
}
.nd-res textarea { min-height: 70px; resize: vertical; }
.nd-res input:focus, .nd-res select:focus, .nd-res textarea:focus { background: #f6f9ee; box-shadow: inset 0 0 0 2px var(--nd-green); }
.nd-res .nd-invalid { background: #fff2f1 !important; box-shadow: inset 0 0 0 2px var(--nd-red) !important; }

.nd-res .nd-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px; }
.nd-res .nd-check { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; cursor: pointer; }
.nd-res .nd-check input { width: 18px; height: 18px; accent-color: var(--nd-green); }

.nd-res .nd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.nd-res .nd-field-error { color: var(--nd-red); font-size: 13px; padding: 2px 8px 6px; line-height: 1.45; }

.nd-res .nd-date-status { margin: 2px 8px 8px; padding: 8px 10px; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.nd-res .nd-status-closed  { background: #fdecea; color: #a1261f; border-left: 4px solid var(--nd-red); }
.nd-res .nd-status-full    { background: #fff4e5; color: #8a4b00; border-left: 4px solid #f08c00; }
.nd-res .nd-status-past,
.nd-res .nd-status-unavailable { background: #f1f1f1; color: #555; border-left: 4px solid #999; }

.nd-res .nd-notice { margin: 4px 0 12px; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.55; }
.nd-res .nd-notice-error { background: #fdecea; color: #8f1f19; border: 1px solid #f5c2bf; }
.nd-res .nd-notice-success { background: #edf7e1; color: #3b5200; border: 1px solid #cfe3a6; }

/* Buttons */
.nd-res .nd-btns {
	position: sticky;
	bottom: 0;
	background: #fff;
	padding: 10px;
	display: flex;
	gap: 10px;
	border-top: 1px solid #ddd;
	flex-wrap: wrap;
}
.nd-res .nd-btn {
	flex: 1 1 140px;
	padding: 12px;
	border: none;
	color: #fff !important;
	font-weight: bold;
	border-radius: 8px;
	cursor: pointer;
	transition: transform .2s, opacity .2s;
	font-size: 16px;
	text-align: center;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1.3;
	min-height: 46px;
	font-family: inherit;
}
.nd-res .nd-btn:hover { transform: scale(1.03); opacity: .92; }
.nd-res .nd-btn:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.nd-res .nd-btn[disabled]:not(.nd-submit) { background: #b8b8b8 !important; cursor: not-allowed; transform: none; opacity: 1; }
.nd-res .nd-whatsapp { background: var(--nd-wa); }
.nd-res .nd-submit { background: var(--nd-red); }
.nd-res .nd-print { background: #555; }
.nd-res .nd-secondary { background: var(--nd-green); }

.nd-res .nd-footer { background: var(--nd-red); color: #fff; text-align: center; padding: 10px; font-size: 13px; }

/* Confirmation */
.nd-res .nd-confirm { padding: 8px 4px 0; outline: none; }
.nd-res .nd-confirm-head { text-align: center; padding: 10px 0 4px; }
.nd-res .nd-confirm-icon {
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--nd-green); color: #fff; font-size: 30px; line-height: 56px;
	margin: 0 auto 8px;
}
.nd-res .nd-confirm-head h2 { margin: 0; font-size: 26px; color: var(--nd-text); }
.nd-res .nd-confirm-ja { margin: 2px 0 0; font-size: 17px; color: #444; }
.nd-res .nd-confirm-sub { margin: 6px 0 0; color: var(--nd-muted); font-size: 14px; }

.nd-res .nd-number {
	margin: 18px auto;
	max-width: 440px;
	border: 3px solid var(--nd-red);
	border-radius: 12px;
	padding: 14px 12px 12px;
	text-align: center;
	background: #fffafa;
}
.nd-res .nd-number-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--nd-muted); }
.nd-res .nd-number-value {
	font-family: Menlo, Consolas, 'Courier New', monospace;
	font-size: clamp(24px, 6vw, 34px);
	font-weight: bold;
	color: var(--nd-red);
	letter-spacing: 1px;
	margin: 4px 0 8px;
	user-select: all;
	word-break: break-all;
}
.nd-res .nd-copy {
	background: #fff; border: 1px solid var(--nd-red); color: var(--nd-red);
	border-radius: 20px; padding: 5px 16px; font-size: 13px; cursor: pointer; font-weight: 600;
}
.nd-res .nd-keep { text-align: center; font-size: 14px; line-height: 1.6; margin: 0 8px 16px; color: #333; }
.nd-res .nd-thanks { text-align: center; margin: 16px 8px; line-height: 1.7; }
.nd-res .nd-thanks small { color: var(--nd-muted); }
.nd-res .nd-confirm-table td:last-child { padding: 9px 10px; font-size: 15px; }
.nd-res .nd-confirm-btns { position: static; }

/* Lookup */
.nd-res .nd-hint { font-size: 13px; color: var(--nd-muted); margin: 10px 6px; line-height: 1.55; }
.nd-res .nd-lookup-result:empty { display: none; }
.nd-res .nd-lookup-result { margin-top: 12px; }
.nd-res .nd-lookup-card { border: 2px solid var(--nd-green); border-radius: 10px; overflow: hidden; }
.nd-res .nd-lookup-card.nd-st-cancelled, .nd-res .nd-lookup-card.nd-st-no_show { border-color: #999; }
.nd-res .nd-lookup-card .nd-table td:last-child { padding: 9px 10px; }
.nd-res .nd-lookup-card .nd-btns { position: static; border-top: 0; }

/* Mobile: stack label above field */
@media (max-width: 560px) {
	.nd-res .nd-hero-box { width: 100%; margin: 12px 0; border-radius: 10px; }
	.nd-res .nd-table tr { display: block; }
	.nd-res .nd-table td { display: block; width: 100% !important; }
	.nd-res .nd-table td.nd-label { padding: 7px 10px; border-bottom: 0; }
	.nd-res .nd-table td.nd-label label span,
	.nd-res .nd-table td.nd-label > span,
	.nd-res .nd-table td.nd-label span span { display: inline; margin-left: 6px; }
	.nd-res .nd-table td:last-child { margin-bottom: 6px; }
	.nd-res .nd-btn { flex-basis: 100%; }
}

/* Print only the confirmation */
@media print {
	body.nd-printing * { visibility: hidden; }
	body.nd-printing .nd-print-target, body.nd-printing .nd-print-target * { visibility: visible; }
	body.nd-printing .nd-print-target { position: absolute; left: 0; top: 0; width: 100%; }
	body.nd-printing .nd-print-target .nd-btns, body.nd-printing .nd-print-target .nd-copy { display: none !important; }
	.nd-res .nd-hero-box { box-shadow: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Reservation submit button – red theme (#D93832, same as the form header).
   Doubled class + !important on every visual property so theme / page-builder
   button styles (background, gradients, borders, text colour) cannot override it.
   Scoped to the reservation form so other submit buttons on the site are untouched.
   ══════════════════════════════════════════════════════════════════════════ */
.nd-res.nd-res .submit,
.nd-res.nd-res #submitBtn,
.nd-res.nd-res button[type="submit"] {
	background-color: #D93832 !important;
	background-image: none !important;
	color: #FFFFFF !important;
	-webkit-text-fill-color: #FFFFFF !important;
	border: none !important;
	border-radius: 8px !important;
	font-weight: bold !important;
	text-shadow: none !important;
	box-shadow: none;
	opacity: 1;
	cursor: pointer;
}

.nd-res.nd-res .submit:hover,
.nd-res.nd-res #submitBtn:hover,
.nd-res.nd-res button[type="submit"]:hover,
.nd-res.nd-res .submit:focus,
.nd-res.nd-res #submitBtn:focus,
.nd-res.nd-res button[type="submit"]:focus,
.nd-res.nd-res .submit:active,
.nd-res.nd-res #submitBtn:active,
.nd-res.nd-res button[type="submit"]:active {
	background-color: #C52F2A !important;
	background-image: none !important;
	color: #FFFFFF !important;
	-webkit-text-fill-color: #FFFFFF !important;
	opacity: 1;
}

.nd-res.nd-res .submit:disabled,
.nd-res.nd-res #submitBtn:disabled,
.nd-res.nd-res button[type="submit"]:disabled,
.nd-res.nd-res .submit:disabled:hover,
.nd-res.nd-res #submitBtn:disabled:hover,
.nd-res.nd-res button[type="submit"]:disabled:hover {
	background-color: #D93832 !important;
	background-image: none !important;
	color: #FFFFFF !important;
	-webkit-text-fill-color: #FFFFFF !important;
	opacity: 0.7 !important;
	cursor: not-allowed !important;
	transform: none !important;
}

/* Other plugin buttons: same theme-proofing, own colours. */
.nd-res.nd-res .nd-btn.nd-whatsapp   { background-color: #25D366 !important; }
.nd-res.nd-res .nd-btn.nd-print      { background-color: #555555 !important; }
.nd-res.nd-res .nd-btn.nd-secondary  { background-color: #769A00 !important; }
.nd-res.nd-res .nd-btn.nd-whatsapp,
.nd-res.nd-res .nd-btn.nd-print,
.nd-res.nd-res .nd-btn.nd-secondary {
	background-image: none !important;
	color: #FFFFFF !important;
	-webkit-text-fill-color: #FFFFFF !important;
	border: none !important;
	border-radius: 8px !important;
	font-weight: bold !important;
	text-shadow: none !important;
}
.nd-res.nd-res .nd-copy {
	background: #FFFFFF !important;
	color: #D93832 !important;
	-webkit-text-fill-color: #D93832 !important;
	border: 1px solid #D93832 !important;
}
