body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 16px;
  background-image: url("background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  max-width: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(2px);
}

.hidden {
  display: none !important;
}

.appHeader {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 4px;
  margin-top: 6px;
}

.logoArea img {
  height: 40px;
}

.languageCard {
  padding: 10px 12px;
}

.langGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.langBtn,
.languageSummaryBtn {
  border: none;
  border-radius: 12px;
  min-height: 40px;
  padding: 8px 6px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
}

.langBtn.blue,
.languageSummaryBtn.blue {
  background: #A5DBF0;
}

.langBtn.green,
.languageSummaryBtn.green {
  background: #A5F0E0;
}

.languageSummaryBtn {
  font-weight: 600;
}

.introLine {
  font-size: 20px;
  line-height: 1.35;
  margin: 2px 0 12px 0;
  text-align: center;
}

.fieldGroup {
  margin-bottom: 10px;
}

label {
  display: block;
  font-weight: 400;
  margin-bottom: 4px;
}

input,
select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95);
}

.surveyToggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cfd8dc;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
}

.surveyToggleIcon {
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
}

.surveyWrap {
  margin-top: 0;
  margin-bottom: 10px;
  padding-top: 4px;
  border-top: none;
}

.betaToggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 12px;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid #cfd8dc;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  text-align: left;
}

.betaCheckbox {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 6px;
  border: 2px solid #8aa9b8;
  background: white;
  box-sizing: border-box;
}

.betaToggle.active .betaCheckbox {
  background: #A5F0E0;
  border-color: #74cbb8;
}

.betaToggle.active .betaCheckbox::after {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: #285c50;
}

#betaToggleLabel {
  font-size: 16px;
  font-weight: 400;
}

.submitRow {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.submitBtn {
  min-width: 180px;
  padding: 11px 22px;
  border-radius: 12px;
  border: none;
  background: #A5DBF0;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.formError {
  margin-top: 10px;
  color: #b00020;
  font-weight: 600;
}

.thankYouMessage {
  margin: 4px 0 10px 0;
  text-align: center;
}

.thankYouTitle {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #1e7db3;
  margin-bottom: 6px;
}

.thankYouLine {
  display: block;
  font-size: 18px;
  margin-top: 4px;
  margin-bottom: 6px;
}

.thankYouDetail {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  margin-top: 4px;
}

.shareLine {
  margin: 0 0 12px 0;
  font-size: 14px;
  text-align: center;
}

.emailHelpLine {
  margin: 12px 0 0 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.emailLink {
  color: #1e7db3;
  text-decoration: none;
}

.emailLink:hover {
  text-decoration: underline;
}

.qrContainer {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

#qrImage {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .langGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .langBtn,
  .languageSummaryBtn {
    min-height: 38px;
    font-size: 12px;
    padding: 7px 5px;
  }

  .introLine,
  .thankYouMessage {
    font-size: 16px;
  }

  #betaToggleLabel {
    font-size: 15px;
  }

  .submitBtn {
    min-width: 150px;
  }
}