:root {
  --entry-primary: #0d6efd;
  --entry-primary-dark: #084298;
  --entry-bg: #f5f7fb;
  --entry-card: #ffffff;
  --entry-text: #1f2937;
  --entry-muted: #667085;
  --entry-border: #d7dde7;
  --entry-soft: #eef2f7;
  --entry-warn: #d92d20;
  --entry-accent: #fff6db;
}

.entry-v2-page {
  background: var(--entry-bg);
  color: var(--entry-text);
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

.entry-v2-page img {
  max-width: 100%;
  height: auto;
}

.entry-v2-page .container {
  max-width: 1160px;
}

.entry-hero {
  margin: 24px 0;
  text-align: center;
}

.entry-hero h2,
.entry-hero h3 {
  font-weight: 700;
}

.entry-info-box {
  margin-bottom: 22px;
  padding: 20px 22px;
  border: 1px solid #f1dca4;
  border-radius: 16px;
  background: var(--entry-accent);
  box-shadow: 0 8px 22px rgba(16, 24, 40, .06);
}

.entry-info-box strong,
.entry-info-box b {
  color: #8a4b00;
}

.entry-form-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.entry-nav {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--entry-soft);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
}

.entry-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--entry-text);
  font-weight: 700;
  text-decoration: none;
}

.entry-nav a:hover,
.entry-nav a:focus {
  background: #eff6ff;
  color: var(--entry-primary-dark);
  text-decoration: none;
}

.entry-section {
  margin-bottom: 22px;
  padding: 26px;
  border: 1px solid var(--entry-soft);
  border-radius: 20px;
  background: var(--entry-card);
  box-shadow: 0 12px 32px rgba(16, 24, 40, .08);
  scroll-margin-top: 18px;
}

.entry-section-head {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--entry-soft);
}

.entry-section-head h2 {
  margin: 8px 0 6px;
  font-size: 28px;
  font-weight: 800;
}

.entry-section-head p {
  margin: 0;
  color: var(--entry-muted);
}

.entry-step {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e7f0ff;
  color: var(--entry-primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.entry-grid {
  display: grid;
  gap: 18px 20px;
}

.entry-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-full {
  grid-column: 1 / -1;
}

.entry-form-v2 .form-group {
  margin-bottom: 0;
}

.entry-form-v2 label {
  margin-bottom: 7px;
  font-weight: 700;
}

.entry-form-v2 .form-control {
  min-height: 46px;
  border: 1px solid var(--entry-border);
  border-radius: 10px;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.5;
  padding: 10px 12px;
}

.entry-form-v2 textarea.form-control {
  min-height: 118px;
  resize: vertical;
}

.entry-form-v2 .form-control:focus {
  border-color: var(--entry-primary);
  box-shadow: 0 0 0 .22rem rgba(13, 110, 253, .16);
}

.required,
.entry-note {
  display: inline-block;
  margin-left: 4px;
  color: var(--entry-warn);
  font-size: 13px;
  font-weight: 800;
}

.entry-help,
.entry-char-counter {
  margin: 7px 0 0;
  color: var(--entry-muted);
  font-size: 13px;
}

.entry-char-counter.is-warning {
  color: var(--entry-warn);
  font-weight: 800;
}

.entry-subcard,
.entry-schedule-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--entry-soft);
  border-radius: 16px;
  background: #fbfcfe;
}

.entry-subcard h3,
.entry-schedule-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
}

.entry-current {
  display: inline-block;
  margin: 0 0 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef7ee;
  color: #1f5f2d;
  font-size: 13px;
  font-weight: 700;
}

.entry-inline-label {
  display: block;
  margin-top: 12px;
}

.entry-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.entry-choice-grid-small .entry-choice {
  min-width: 120px;
}

.entry-choice-grid-days .entry-choice {
  min-width: 76px;
}

.entry-choice,
.entry-check-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--entry-border);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}

.entry-choice:hover,
.entry-check-card:hover {
  border-color: var(--entry-primary);
  background: #f8fbff;
}

.entry-choice input,
.entry-check-card input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.entry-choice input:checked + span,
.entry-check-card input:checked + span {
  color: var(--entry-primary-dark);
}

.entry-check-card {
  width: 100%;
  align-items: flex-start;
  padding: 16px;
}

.entry-check-card span {
  display: grid;
  gap: 2px;
}

.entry-check-card small {
  color: var(--entry-warn);
  font-weight: 800;
}

.entry-time-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.entry-time-row label {
  margin: 0 2px 0 0;
}

.entry-select-mini {
  width: 92px;
  min-width: 92px;
}

.entry-schedule-list {
  display: grid;
  gap: 14px;
}

.entry-schedule-card.is-hidden {
  display: none;
}

.entry-schedule-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(82px, 1fr));
  gap: 12px;
}

.entry-add-schedule {
  margin-top: 14px;
}

.entry-mt {
  margin-top: 20px;
}

.entry-submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 26px -26px -26px;
  padding: 16px 26px;
  border-top: 1px solid var(--entry-soft);
  border-radius: 0 0 20px 20px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  text-align: center;
}

.entry-submit-bar .btn {
  min-width: 280px;
  min-height: 50px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
}

.entry-form-v2 .btn-primary,
.entry-form-v2 .btn-default {
  border-color: var(--entry-primary);
  background: var(--entry-primary);
  color: #fff;
}

.entry-form-v2 .btn-primary:hover,
.entry-form-v2 .btn-default:hover,
.entry-form-v2 .btn-primary:focus,
.entry-form-v2 .btn-default:focus {
  border-color: var(--entry-primary-dark);
  background: var(--entry-primary-dark);
  color: #fff;
}

.entry-conditional.is-dimmed {
  opacity: .55;
}

@media (max-width: 991px) {
  .entry-form-layout {
    grid-template-columns: 1fr;
  }

  .entry-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .entry-nav a {
    text-align: center;
  }

  .entry-schedule-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .entry-v2-page .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .entry-hero h2 {
    font-size: 24px;
  }

  .entry-info-box,
  .entry-section {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .entry-section-head h2 {
    font-size: 23px;
  }

  .entry-grid-2,
  .entry-schedule-grid {
    grid-template-columns: 1fr;
  }

  .entry-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
  }

  .entry-choice-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .entry-choice-grid-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-choice,
  .entry-choice-grid-small .entry-choice,
  .entry-choice-grid-days .entry-choice {
    width: 100%;
    min-width: 0;
  }

  .entry-time-row {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
  }

  .entry-time-row label:nth-of-type(2) {
    grid-column: 1;
  }

  .entry-select-mini {
    width: 100%;
    min-width: 0;
  }

  .entry-submit-bar {
    margin: 24px -14px -18px;
    padding: 12px 14px;
  }

  .entry-submit-bar .btn,
  .entry-form-v2 .btn {
    width: 100%;
    min-width: 0;
  }
}

.entry-confirm-grid {
  display: grid;
  gap: 18px;
}

.entry-confirm-section {
  margin-bottom: 0;
}

.entry-confirm-list {
  margin: 0;
}

.entry-confirm-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f5;
}

.entry-confirm-row:last-child {
  border-bottom: 0;
}

.entry-confirm-row dt {
  color: #5d6878;
  font-weight: 700;
}

.entry-confirm-row dd {
  margin: 0;
  color: #253044;
  overflow-wrap: anywhere;
  white-space: normal;
}

.entry-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}

.entry-confirm-actions-top {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 10px 24px rgba(33, 48, 74, 0.08);
}

.entry-success-box {
  border-color: #c7ead6;
  background: #f4fff8;
}

.entry-upload-section {
  border-color: #dbe7ff;
}

.entry-upload-form .form-control[type="file"] {
  min-height: 48px;
  padding: 11px;
}

@media (max-width: 767px) {
  .entry-confirm-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .entry-confirm-actions,
  .entry-confirm-actions-top {
    display: grid;
    grid-template-columns: 1fr;
  }

  .entry-confirm-actions .btn {
    width: 100%;
  }
}

.entry-confirm-card {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid #e4e9f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(33, 48, 74, 0.06);
}

.entry-confirm-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #253044;
}

.entry-confirm-list {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0 18px;
  margin: 0;
}

.entry-confirm-list dt,
.entry-confirm-list dd {
  padding: 11px 0;
  border-top: 1px solid #edf0f5;
}

.entry-confirm-list dt {
  color: #5d6878;
  font-weight: 700;
}

.entry-confirm-list dd {
  margin: 0;
  color: #253044;
  overflow-wrap: anywhere;
}

.entry-empty {
  color: #a0a8b5;
}

.entry-complete-title {
  color: #d33;
  font-size: 18px;
}

.entry-complete-box {
  border-color: #c7ead6;
  background: #f4fff8;
}

.entry-alert ul {
  margin-top: 10px;
}

.entry-submit-bar-confirm {
  gap: 12px;
}

@media (max-width: 767px) {
  .entry-confirm-card {
    padding: 16px;
  }

  .entry-confirm-list {
    grid-template-columns: 1fr;
  }

  .entry-confirm-list dt {
    padding-bottom: 2px;
  }

  .entry-confirm-list dd {
    padding-top: 0;
    border-top: 0;
  }
}

/* entry.php start page */
.entry-start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  margin-bottom: 34px;
}

.entry-start-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--entry-soft);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .08);
}

.entry-start-card-primary {
  border-color: #cfe0ff;
}

.entry-start-card-head h2 {
  margin: 10px 0 8px;
  font-size: 25px;
  font-weight: 800;
}

.entry-start-card-head p {
  margin: 0;
  color: var(--entry-muted);
}

.entry-start-form {
  display: grid;
  gap: 16px;
  margin-top: auto;
}

.entry-start-button {
  min-height: 52px;
  border-radius: 12px;
  font-weight: 800;
  white-space: normal;
}

.entry-start-note {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fbfcfe;
  color: var(--entry-muted);
  font-size: 14px;
}

.entry-start-note p {
  margin: 0;
}

.entry-start-page .entry-info-box {
  margin-bottom: 24px;
}

@media (max-width: 767px) {
  .entry-start-grid {
    grid-template-columns: 1fr;
  }

  .entry-start-card {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .entry-start-card-head h2 {
    font-size: 22px;
  }

  .entry-start-button {
    width: 100%;
  }
}
