/* STELLA STORIA checkout — standalone (no dependency on other sites) */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body.checkout-survey-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Shippori Mincho", serif;
  background: #fcfaf5;
  color: #333;
}

.site-header {
  padding: 18px 20px;
  border-bottom: 1px solid #e3dfd5;
  background: #fcfaf5;
}

.site-header .logo {
  font-family: "Shippori Mincho", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #222;
  text-decoration: none;
}

.site-header .logo-en {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #666;
}

.checkout-survey-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.co-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.co-intro h1 {
  font-size: 1.6rem;
  margin: 0 0 12px;
  font-family: "Shippori Mincho", serif;
  text-align: left;
}

.co-intro p {
  margin: 0 0 8px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  text-align: left;
}

.co-intro .intro-ja {
  font-size: 1.05rem;
  color: #333;
}

.co-intro .intro-en {
  font-size: 0.98rem;
  color: #444;
}

.co-form {
  margin-top: 28px;
}

.co-field {
  margin-bottom: 32px;
}

.co-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  line-height: 1.7;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.co-label-sub {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: #666;
  margin-top: 4px;
}

.co-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.co-score-btn {
  width: 52px;
  height: 44px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-family: "Shippori Mincho", serif;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.co-score-btn:hover {
  border-color: #947b5e;
}

.co-score-btn.selected {
  background: #111;
  border-color: #111;
  color: #fff;
}

.co-textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: "Shippori Mincho", serif;
  font-size: 1rem;
  line-height: 1.7;
  resize: vertical;
  background: #fff;
}

.co-textarea:focus {
  outline: none;
  border-color: #947b5e;
}

.co-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8em 2.15em;
  background: #9a3838;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: "Shippori Mincho", serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(154, 56, 56, 0.28);
  transition: background 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.co-submit:hover:not(:disabled) {
  background: #832f2f;
  box-shadow: 0 3px 10px rgba(131, 47, 47, 0.35);
}

.co-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.co-submit-bar {
  margin-top: 8px;
}

.co-error {
  display: none;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #c0392b;
}

.co-thanks {
  display: none;
  padding: 40px 0 60px;
}

.co-thanks .thank-you-ja {
  font-family: "Shippori Mincho", serif;
  font-size: 1.4rem;
  color: #333;
  line-height: 1.9;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.co-thanks .thank-you-en {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.site-footer {
  padding: 20px 16px 28px;
  border-top: 1px solid #e3dfd5;
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.site-footer .footer-logo {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #333;
}

@media (max-width: 700px) {
  .checkout-survey-page #co-main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .co-wrap {
    padding: 20px 12px 24px;
  }

  .co-intro h1 {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  .co-intro p {
    margin-bottom: 6px;
    font-size: 0.95rem;
  }

  .co-form {
    margin-top: 16px;
  }

  .co-field {
    margin-bottom: 20px;
  }

  .co-label {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .co-textarea {
    min-height: 72px;
  }

  .co-score-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .co-score-btn {
    width: 100%;
    min-width: 0;
    height: 44px;
    font-size: 0.95rem;
  }

  .co-submit-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    margin-top: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(252, 250, 245, 0.98);
    border-top: 1px solid #e3dfd5;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }

  .co-submit-bar .co-submit {
    width: 100%;
    justify-content: center;
  }

  .co-submit-bar .co-error {
    margin-top: 8px;
    margin-bottom: 0;
  }

  .co-thanks .thank-you-ja {
    font-size: 1.2rem;
  }
}
