:root {
  --primary: #0056b3;
  --accent: #ff9900;
  --bg: #f0f2f5;
  --text: #333;
  --border: #ddd;
}
* {
  box-sizing: border-box;
}
body {
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

footer {
  padding: 8px 0;
  text-align: center;
  background: #FFFFFF;
}

.step-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  z-index: 1000;
}

.footer-inner {
  font-weight: 300;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0px;
  color: #454444;

}
.footer-logo {
  color: #33927e;
  font-weight: 700;
  font-size: 13px;
  line-height: 15px;
}

.footer-copy {
  color: var(--Main-black, #454444);
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 20px; /* 15px */
}
footer a {
  color: var(--s1-accent);
  text-decoration: none;
}

.tag-req.badge-req {
  font-weight: 600;
  font-size: 12px;
  line-height: 150%;
  letter-spacing: 0px;
  width: 28px;
  height: 18px;
  border-radius: 4px;
  border-width: 1px;
  opacity: 1;
  padding-right: 2px;
  padding-left: 2px;
  /* border: 1px solid var(--Main-red, #DC5959); */
  background: var(--Main-red, #DC5959);
  margin-left: 4px;
}

/* ====================== SITE NAVBAR ====================== */
.site-navbar {
  background: #fff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow:
    0px 1px 3px 0px #0000001f,
    0px 1px 1px 0px #00000024,
    0px 2px 1px -1px #00000033;
}
.site-navbar .logo-wrap {
  width: 34px;
  height: 34px;
  background: #1976d2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}
.site-navbar .nav-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.site-navbar .nav-title {
  font-size: 15px;
  font-weight: bold;
  color: #1976d2;
}
.site-navbar .nav-sub {
  font-size: 11px;
  color: #757575;
}
.progress-bar-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}
.progress-line {
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}
.progress-line-fill {
  position: absolute;
  top: 12px;
  left: 0;
  height: 2px;
  background: var(--primary);
  z-index: 0;
  transition: width 0.3s ease;
  width: 0%;
}

.form-block-header {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  align-self: stretch;
}
.form-block-title {
  color: var(--Main-green, #09947b);
  text-align: center;
  /* H2 */
  font-family: "Hiragino Kaku Gothic Pro";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 27px */
  margin: 0;
}

.form-block-desc {
  color: #333333;

  /* P-16 */
  font-family: "Hiragino Kaku Gothic Pro";
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 150%; /* 24px */
}

.step-indicator {
  width: 25px;
  height: 25px;
  background: #e0e0e0;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
  font-weight: bold;
}
.step-indicator.active {
  background: var(--primary);
  transform: scale(1.1);
}
.step-indicator.completed {
  background: var(--primary);
}
.page-title {
  font-size: 16px;
  margin: 10px 0 0;
  color: var(--primary);
}

.step-content {
  padding: 20px 20px 40px;
  flex-grow: 1;
}

.service-card {
  /* border: 2px solid var(--border); */
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  cursor: pointer;
  position: relative;
  background: #fff;
  transition: 0.2s;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}
.service-card:hover {
  background: #f9f9f9;
}
.service-card.selected {
  border-color: var(--primary);
  background-color: #f0f7ff;
}
.service-card.selected .service-checkbox-wrap {
  border-color: var(--primary);
  background: #f0f7ff;
}

.service-card.selected .service-checkbox-wrap::after {
  content: "✔";
  color: var(--primary);
  font-weight: bold;
  font-size: 14px;
}
.service-card .service-icon-wrap {
  width: 100%;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.service-card .service-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card .service-icon-wrap .icon-placeholder {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}
.service-card .service-body {
  flex: 1;
  min-width: 0;
}
.service-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.service-name {
  font-weight: bold;
  font-size: 16px;
  margin: 0;
}
.recommend-label {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
}
.service-desc {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}
.service-card .terms-link {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
}
.service-card .terms-link:hover {
  text-decoration: underline;
}
.service-card input[type="checkbox"] {
  display: none;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
}
.tag-req {
  background: #ff4d4d;
  color: white;
}
.tag-opt {
  background: #999;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: middle;
}
input:not([type="checkbox"]):not([type="radio"]),
select {
  width: 100%;
  padding: 11px 15px;
  font-size: 16px;
  height: 48px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fcfcfc;
  appearance: none;
  -webkit-appearance: none;
  font-weight: 300;
  line-height: 1.5;
}
input:focus {
  border-color: var(--primary);
  outline: none;
  background: #fff;
}

/* Validation error: red border for inputs/selects */
input.error,
select.error {
  border-color: #dc5959 !important;
}
input.error:focus,
select.error:focus {
  border-color: #dc5959 !important;
}
.row-input {
  display: flex;
  gap: 10px;
}
.row-input input {
  width: 50%;
}

.field-error {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
  color: #dc5959;
  padding-left: 16px;
}

.field-error:empty {
  display: none;
}

.field-error:not(:empty) {
  display: block;
}

.confirm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.confirm-table th {
  text-align: left;
  padding: 12px 5px;
  color: #666;
  width: 30%;
  vertical-align: top;
  border-bottom: 1px solid #eee;
}
.confirm-table td {
  padding: 12px 5px;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  word-break: break-all;
}
.confirm-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.confirm-services-list li {
  margin-bottom: 5px;
  color: var(--primary);
  font-weight: bold;
}

.success-screen {
  text-align: center;
  padding-top: 20px;
}
.success-icon {
  font-size: 60px;
  color: #28a745;
  margin-bottom: 10px;
  display: block;
}
.event-card {
  margin-top: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: none;
}
.event-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background-color: #eee;
  display: none;
}
.event-body {
  padding: 20px;
}
.event-badge {
  background: #ff4d4d;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 10px;
  display: inline-block;
}
.event-title {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #333;
  line-height: 1.4;
}
.event-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}
.btn-event {
  background-color: #00c853;
  color: white;
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 12px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 200, 83, 0.3);
  transition: 0.2s;
}
.btn-event:active {
  transform: scale(0.98);
}

.btn-group {
  margin-top: 30px;
  display: flex;
  gap: 10px;
}
.action-btn {
  padding: 15px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  flex: 1;
  transition: 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-next,
.btn-submit {
  background: var(--accent);
  color: white;
  /* box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3); */
}
.btn-next {
  height: 48px;
  opacity: 1;
  gap: 4px;
  border-radius: 8px;
  padding-top: 12px;
  padding-right: 8px;
  padding-bottom: 12px;
  padding-left: 16px;
  line-height: 1.5;
  letter-spacing: 1px;
}
.btn-back {
  background: #e0e0e0;
  color: #09947B;
  height: 48px;
  opacity: 1;
  gap: 4px;
  border-radius: 8px;
  border-width: 1px;
  padding-top: 12px;
  padding-right: 8px;
  padding-bottom: 12px;
  padding-left: 8px;
  line-height: 1.5;
  letter-spacing: 1px;
}
.action-btn:active {
  transform: scale(0.98);
}
.action-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #eee;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
