/* Owner-requested design layer. guest.css remains the current-source baseline.
 * Reference: stayentry_guest_current_mock.html. Presentation only; no services.
 */
:root {
  --navy: #082554;
  --blue: #0879eb;
  --blue-dark: #0866d1;
  --muted: #586f91;
  --line: #d8e5f5;
  --soft: #f2f8ff;
  --danger: #b8303c;
  color: var(--navy);
  background: #eef6ff;
}
body { background: linear-gradient(180deg, #eef6ff, #fff 48%, #f6faff); }
.page {
  max-width: 640px;
  min-height: 75svh;
  padding: 0 16px 28px;
  color: var(--navy);
  font-family: "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
}
.header {
  margin: 0 -16px 20px;
  padding: 16px;
  min-height: 78px;
  background: #fff;
  border-bottom: 1px solid #e9f0f8;
  box-shadow: 0 3px 12px #19416f0b;
}
/* Preserve the supplied PNG byte-for-byte. Clip its outer white canvas in CSS
 * only; keep the entire logo and Japanese tagline, without stretching. */
.brand { position: relative; width: clamp(140px, 43vw, 190px); aspect-ratio: 1184 / 440; overflow: hidden; flex: 0 0 auto; }
.brandLogo { position: absolute; top: 0; left: 0; width: 172.973%; max-width: none; height: auto; display: block; transform: translate(-21.3%, -30.4%); }
.brand--no-tagline { aspect-ratio: 192 / 52; }
.brand--no-tagline .brandLogo { position: static; width: 100%; max-width: 100%; height: auto; transform: none; }
.header label { display: flex; align-items: center; gap: 4px; margin: 0; }
.header .help { display: none; }
.translationIcon { display: block; width: 26px; height: 26px; flex-shrink: 0; }
.header select { width: auto; max-width: 138px; min-height: 44px; border: 0; padding: 6px 2px; background: transparent; color: var(--navy); font-weight: 650; }
.page h1 { font-size: 1.45rem; line-height: 1.45; color: var(--navy); overflow-wrap: anywhere; }
.page h2 { color: var(--navy); font-size: 1.08rem; line-height: 1.5; margin-bottom: 14px; }
.card { border: 1px solid #e1ebf6; border-radius: 12px; padding: 18px; margin: 14px 0; background: #fff; box-shadow: 0 5px 18px #1745790d; }
.propertyCard { padding: 19px 18px; }
.propertyCard h1 { margin: 0; font-size: 1.3rem; }
.stayCard { padding: 16px; }
.summary { grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: start; }
.summary > div { min-width: 0; }
.summary dt { color: var(--muted); font-size: .75rem; }
.summary dd { color: var(--navy); font-size: .9rem; font-weight: 700; }
.stayTime { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; margin-top: 3px; }
.summary .guestCount { padding-left: 12px; border-left: 1px solid #cfdeef; }
.summary .guestCount dd { font-size: 1.25rem; }
.guestUnit { display: inline-block; font-size: .7em; font-weight: 500; }
.registrationHeading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.registrationHeading h2 { margin: 0; }
.progress { flex-shrink: 0; font-size: .85rem; margin: 0; color: var(--muted); }
.progress b { color: var(--blue-dark); font-size: 1.45rem; }
.progress .help { font-size: .75rem; }
.progressTrack { height: 9px; border-radius: 20px; background: #dce7f3; overflow: hidden; margin: 14px 0 10px; }
.progressFill { height: 100%; background: linear-gradient(90deg, #0879eb, #218de9); border-radius: inherit; }
.member { display: grid; grid-template-columns: clamp(84px, 22vw, 110px) minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; min-height: 72px; padding: 14px 0; border-color: #dfe9f4; }
.memberRole { font-weight: 700; font-size: .85rem; white-space: nowrap; min-width: 0; }
.memberName { font-size: .9rem; }
.member .badge { grid-column: 2; justify-self: start; }
.memberName + .badge { grid-column: 1 / 3; }
.badge { margin: 0; color: #31577a; background: #edf4fb; font-size: .73rem; padding: 4px 8px; }
.badge.missing { color: var(--danger); background: #ffe7e9; font-weight: 700; }
.member .secondary, .member .button { grid-column: 3; grid-row: 1 / 3; width: auto; min-height: 44px; padding: 8px 12px; margin: 0; }
.registrationCard .member [data-action="edit-member"] { grid-row: 1; min-height: 36px; padding: 5px 10px; font-size: .8rem; }
.memberActions { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 6px; }
.memberActions .danger { width: auto; min-height: 36px; padding: 5px 10px; font-size: .8rem; margin: 0; }
[data-screen="C02"] > [data-action="guide"] { width: calc(100% - 38px); margin-inline: 19px; }
.button, .secondary, .danger { border-radius: 8px; min-height: 48px; font-weight: 700; margin: 12px 0; }
.button { background: linear-gradient(100deg, #0872dc, #0866d1); box-shadow: 0 5px 13px #0879eb28; }
.secondary { color: var(--blue-dark); background: #fff; border: 1.5px solid var(--blue); }
.danger { color: var(--danger); background: #fff4f4; border: 1px solid #efc6c8; }
.page :is(input,select,button,a):focus-visible { outline: 3px solid #6cacf4; outline-offset: 3px; }
.page :is(.button,.secondary,.danger):hover { filter: brightness(.96); }
.formTitle { text-align: center; margin: 26px 0 18px !important; }
.form .card { padding: 18px; }
.form .card h2 { display: flex; gap: 9px; align-items: center; }
.form .card h2::before { content: ""; width: 4px; height: 18px; border-radius: 3px; background: var(--blue); flex-shrink: 0; }
.formGrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.field { margin: 0; min-width: 0; }
.field.full { grid-column: 1 / -1; }
:is(.page,.form) label { font-size: .86rem; color: var(--navy); line-height: 1.6; margin-bottom: 6px; }
:is(.page,.form) input, :is(.page,.form) select { border-color: #c7d6e8; border-radius: 7px; min-height: 48px; padding: 10px; font-size: 1rem; }
/* Safari's native date editor can impose an intrinsic width. Keep the outer
 * control the same border-box size as other fields, without replacing its picker. */
.form input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  height: 48px;
}
.form input[type="date"]::-webkit-datetime-edit { min-width: 0; padding: 0; }
.form input[type="date"]::-webkit-date-and-time-value { min-height: 1.5em; text-align: left; }
.requiredTag { display: inline-block; font-size: .64rem; color: var(--danger); background: #ffe4e8; border-radius: 4px; padding: 1px 5px; margin-left: 5px; vertical-align: middle; font-weight: 700; }
.help { color: var(--muted); font-size: .8rem; line-height: 1.65; }
.check { font-size: .77rem !important; gap: 7px; }
.check input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--blue-dark); }
:is(.page,.form) input:disabled { background: #eff4fa; color: #586f91; }
input[type="file"] { border: 1.5px dashed #8fb5e7; color: var(--blue-dark); background: #f7fbff; font-size: .85rem; padding: 14px 10px; }
.preview { max-height: 240px; }
.error { color: var(--danger); }
.notice { background: #fff5df; border-left-color: #ce9333; }
.success { color: #285d39; background: #edf8ee; border-color: #c5e4c6; }
.pin { color: var(--blue-dark); text-align: center; }
.languageHero { text-align: center; padding: 36px 0 12px; }
.languageHero .brand { width: min(100%, 340px); margin: 0 auto 28px; }
.multilingualTitle { line-height: 1.9; color: #345477; font-size: .85rem; padding: 20px 12px; }
.multilingualTitle strong { display: block; color: #0648b2; font-size: 1.35rem; }
.languageCard { border-top: 5px solid var(--blue); padding: 24px 18px; }
.languageCard h1 { font-size: 1.15rem; margin-bottom: 20px; }
.languages { gap: 12px; }
.languageChoice { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; column-gap: clamp(20px, 5vw, 36px); text-align: left; color: var(--navy); border: 1px solid #cad9eb; min-height: 58px; margin: 0; padding: 12px 10%; }
.flag { font-size: 1.55rem; text-align: center; }
.modalBackdrop { background: #06172a88; align-items: center; padding: 16px; }
.modal { border-radius: 16px; max-width: 460px; padding: 24px 18px; }
.modal h2 { text-align: center; font-size: 1.3rem; }
.modal .member { display: block; border: 1px solid #d7e4f2; border-radius: 9px; margin: 12px 0; padding: 14px; }
.modal .member .secondary { width: 100%; margin-top: 12px; }
.url { margin-top: 10px; background: #eff6fd; padding: 10px; border-radius: 7px; }
.screenMessage { text-align: center; padding: 40px 20px 28px; }
.completionMark { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 26px; background: #edf8ee; display: grid; place-items: center; }
.completionMark::after { content: "✓"; width: 58px; height: 58px; border-radius: 50%; background: #52a835; color: #fff; display: grid; place-items: center; font-size: 2.2rem; }
.screenMessage p { color: var(--muted); }
.registrationNotices { display: grid; gap: 14px; margin: 20px 0 0; }
.infoPanel { display: flex; align-items: flex-start; gap: 12px; background: #eef7ff; border-radius: 12px; padding: 18px 16px; color: #31577a; font-size: .9rem; line-height: 1.75; }
.infoPanel > div, .infoPanel > p { min-width: 0; }
.infoPanel strong { display: block; color: var(--navy); font-size: .93rem; font-weight: 700; margin-bottom: 5px; }
.infoPanel p { margin: 0; line-height: inherit; overflow-wrap: anywhere; }
.infoIcon { display: block; flex: 0 0 24px; color: var(--blue); margin-top: 2px; }
.infoIcon svg { display: block; width: 24px; height: 24px; }
.legalPanel { background: #f5f8fc; }
@media (min-width: 680px) {
  .page { margin-top: 24px; padding: 0 24px 32px; border: 1px solid #dce8f5; border-radius: 18px; background: linear-gradient(180deg, #f5faff, #fff 42%); box-shadow: 0 18px 55px #153c7214; }
  .header { margin: 0 -24px 20px; padding: 18px 24px; border-radius: 18px 18px 0 0; }
}
@media (max-width: 370px) {
  .page { padding-right: 12px; padding-left: 12px; }
  .header { margin-right: -12px; margin-left: -12px; padding: 14px 12px; gap: 8px; }
  .header select { max-width: 115px; }
  .card, .form .card { padding: 15px; }
  [data-screen="C02"] > [data-action="guide"] { width: calc(100% - 32px); margin-inline: 16px; }
  .summary { grid-template-columns: 1fr 1fr; }
  .summary .guestCount { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #cfdeef; padding: 10px 0 0; }
  .formGrid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .registrationHeading { align-items: start; flex-direction: column; gap: 4px; }
  .member { gap: 6px; }
}
