/* =========================================================
   Nationality field (inserted between name and email)
========================================================= */
.mgara-nationality{
  margin: 18px 0 10px;
}

.mgara-nationality label{
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.mgara-nationality select{
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid #d6dbe3;
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
}

.mgara-field-error{
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #d63638;
}

/* =========================================================
   MGARA - Agreements block
========================================================= */
.mgara-agree{
  margin: 16px 0 12px;
  padding: 14px 14px 10px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(6px);
}

.mgara-agree__title{
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 10px;
  text-align: center;
}

.mgara-agree__desc{
  font-size: 13px;
  opacity: .85;
  margin: 0 0 14px;
  text-align: center;
}

.mgara-error{
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-left: 4px solid #f57c00;
  background: rgba(245,124,0,0.12);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.mgara-row{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.mgara-row--all{
  border-top: 0;
  padding-top: 2px;
  padding-bottom: 14px;
}

.mgara-check{ margin-top: 6px; }
.mgara-content{ flex: 1; min-width: 0; }

.mgara-label{
  font-size: 14px;
  line-height: 1.55;
  display: inline-block;
}

.mgara-meta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* CTA統一：内容を確認ボタン */
.mgara-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;

  background: #f57c00;
  color: #fff;

  border-radius: 6px;
  padding: 8px 14px;

  font-size: 13px;
  font-weight: 700;
  line-height: 1;

  box-shadow: 0 10px 24px rgba(245,124,0,0.25);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}

.mgara-btn:hover{
  background: #fb8c00;
  box-shadow: 0 14px 30px rgba(245,124,0,0.30);
  transform: translateY(-1px);
}

.mgara-btn:active{
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(245,124,0,0.22);
}

.mgara-btn:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(245,124,0,0.22), 0 10px 24px rgba(245,124,0,0.25);
}

/* copy-btn（モーダル閉じる用） */
.copy-btn{
  background:#f57c00;
  color:#fff;
  border:none;
  border-radius:6px;
  padding:8px 14px;
  cursor:pointer;
  font-weight:700;
}
.copy-btn:hover{ background:#fb8c00; }

/* Checkbox visuals */
.mgara-check input[type="checkbox"]{
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

/* =========================================================
   Modal
========================================================= */
.mgara-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}
.mgara-modal.is-open{ display: block; }
.mgara-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.mgara-modal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(980px, calc(100% - 24px));
  height: min(78vh, 760px);
  transform: translate(-50%, -50%);
  background: #111;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0,0,0,0.45);
}
.mgara-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mgara-modal__title{
  color:#fff;
  font-weight:800;
  font-size: 14px;
}
.mgara-modal__frame{
  width:100%;
  height: calc(100% - 48px);
  border: 0;
  background: #fff;
}

@media (max-width: 576px){
  .mgara-btn{ width: 100%; justify-content: center; }
}