/* Spa at The Samaya Ubud 予約フォーム専用。システムフォントのみ・外部 CSS/JS なし。 */
:root {
  --text: #444;
  --line: #d1d1d1;
  --red: #ff0000;
  --error: #cc0000;
  --btn-gray: #dbdbdb;
  --accent: #6b4c8a; /* SUBMIT ボタン（旧 btn-purple）。色はここで変更 */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #6f6f6f;
}

/* 見出し */
.page-head {
  width: 66.666%;
  margin: 0 auto;
  padding-top: 20px;
  text-align: center;
}

.page-title {
  margin: 10px 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #232323;
}

.page-sub {
  margin: 10px 0;
  font-size: 20px;
  line-height: 30px;
}

a.more {
  color: var(--red);
  text-decoration: underline;
}

/* フォーム */
.sheet {
  width: 66.666%;
  max-width: 1250px;
  margin: 8px auto 48px;
}

.sheet-narrow {
  width: 50%;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 15px;
}

.when {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 3fr;
  column-gap: 12px;
}

.field {
  margin-top: 8px;
  text-align: left;
}

.field-menu {
  max-width: 83.333%;
}

.field > label,
.label-line {
  display: block;
  margin: 0;
  font-size: 16px;
  line-height: 30px;
}

.label-line label {
  margin-right: 1em;
}

a.more {
  font-size: 13px;
}

.label-spacer {
  display: block;
  height: 30px;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 30px;
}

.field select {
  height: 50px;
  margin-bottom: 15px;
  padding: 0 10px;
  line-height: normal;
}

.field textarea {
  height: 108px;
  margin-bottom: 0;
  resize: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #585858;
  outline: none;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--error);
}

.field-error {
  margin: -12px 0 14px;
  color: var(--error);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.field textarea + .field-error {
  margin-top: 6px;
}

.form-error {
  margin: 8px 0;
  color: var(--error);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.note {
  max-width: 66.666%;
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 30px;
  text-align: left;
}

/* ボタン */
.actions {
  margin: 24px 0;
  text-align: center;
}

.btn {
  display: inline-block;
  min-width: 100px;
  margin: 0 3px;
  padding: 6px 12px;
  border: 2px solid var(--btn-gray);
  border-radius: 0;
  background: var(--btn-gray);
  color: #232323;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.btn:hover {
  border-color: #333;
  background: transparent;
  color: #333;
}

.btn-lead {
  padding: 10px 26px;
  font-size: 16px;
}

.btn-send {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn-send:hover {
  border-color: var(--accent);
  background: #fff;
  color: var(--accent);
}

/* 確認・完了 */
.alert {
  margin: 5px 0 20px;
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.alert-note {
  margin: 20px 0 0;
  color: var(--red);
  text-align: center;
}

.confirm {
  text-align: left;
}

.confirm p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.confirm span {
  color: #000;
}

.confirm hr {
  margin: 10px 0;
  border: 0;
  border-top: 1px solid #ededed;
}

.thanks {
  margin: 20px 0;
  font-size: 16px;
  line-height: 30px;
  text-align: center;
}

.thanks a {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .page-head,
  .sheet,
  .sheet-narrow {
    width: calc(100% - 24px);
  }

  .field-menu,
  .note {
    max-width: none;
  }
}

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

  .when {
    grid-template-columns: 1.4fr 0.8fr;
  }

  .page-title {
    line-height: 30px;
  }
}
