.ma-page {
  background: #f4f6f9;
}
.ma-main {
  max-width: 1080px;
  padding-top: clamp(7rem, 12vw, 10rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
  color: var(--hl-ink);
  letter-spacing: -0.025em;
  word-break: keep-all;
}
.ma-main *,
.ma-main *::before,
.ma-main *::after {
  box-sizing: border-box;
}
.ma-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 6vw, 4rem);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(10, 22, 40, 0.98), rgba(29, 58, 107, 0.94)),
    url("../img/main/Main_1.jpg") center / cover;
}
.ma-hero::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -9rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.ma-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #d8bc83;
}
.ma-hero h1 {
  margin: 0 0 0.8rem;
  font-family: "Nanum Myeongjo", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.25;
  letter-spacing: -0.055em;
}
.ma-hero > p:not(.ma-kicker) {
  margin: 0;
  font-size: clamp(0.92rem, 2vw, 1.08rem);
  color: rgba(255, 255, 255, 0.75);
}
.ma-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}
.ma-hero-meta span {
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.ma-form {
  display: grid;
  gap: 1.3rem;
  margin-top: 1.3rem;
}
.ma-card {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: #fff;
  border: 1px solid #dde3eb;
  box-shadow: 0 12px 32px rgba(11, 28, 51, 0.04);
}
.ma-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #e5e9ef;
}
.ma-card-head > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: var(--hl-navy);
  border-radius: 50%;
}
.ma-card-head h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--hl-ink);
}
.ma-card-head p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--hl-muted);
}
.ma-card-head p b,
.ma-field > span b,
.ma-sign-head b,
.ma-consents b {
  color: #cf2731;
}
.ma-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.5rem;
}
.ma-field {
  display: block;
  min-width: 0;
}
.ma-field.is-wide {
  grid-column: 1 / -1;
}
.ma-field > label,
.ma-field > span,
.ma-label,
.ma-sign-head > span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--hl-ink);
}

.ma-optional {
  margin-left: 0.3rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 600;
  color: var(--hl-muted);
  background: #eef1f5;
  border-radius: 999px;
  vertical-align: 1px;
}

/* 공통 style.css 의 input[name^="phone"|"email"|"zip"], select[name^="birth"] 폭 고정 규칙을 덮는다 */
.ma-main input:not([type="checkbox"]):not([type="radio"]):not(.ma-honeypot),
.ma-main select {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}
.ma-field input,
.ma-field select {
  height: 52px;
  padding: 0 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--hl-ink);
  background: #fff;
  border: 1px solid #d3dae4;
  border-radius: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.ma-field input::placeholder {
  color: #a6b0bd;
}
.ma-field input:hover,
.ma-field select:hover {
  border-color: #b5c0ce;
}
.ma-field input:focus,
.ma-field select:focus {
  outline: none;
  border-color: var(--hl-navy);
  box-shadow: 0 0 0 4px rgba(29, 58, 107, 0.1);
}
.ma-field small {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.76rem;
  color: var(--hl-muted);
}

/* 아이콘이 들어간 입력칸 */
.ma-input {
  position: relative;
}
.ma-input > svg {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  fill: none;
  stroke: #9aa6b5;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke 0.18s ease;
}
.ma-input > svg + input {
  padding-left: 2.75rem;
}
.ma-input:focus-within > svg {
  stroke: var(--hl-navy);
}
.ma-input.is-readonly input {
  color: var(--hl-ink);
  background: #f6f8fb;
  cursor: default;
}
.ma-input.is-readonly input:hover {
  border-color: #d3dae4;
}
.ma-input.is-clickable input {
  cursor: pointer;
}

/* 생년월일 년 · 월 · 일 */
.ma-birth {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.5rem;
}
.ma-birth select {
  padding-right: 2.2rem;
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237b8796' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") right 0.85rem center / 14px no-repeat;
  cursor: pointer;
}
.ma-birth select:invalid,
.ma-birth select.is-empty {
  color: #a6b0bd;
}

/* 주소 */
.ma-address {
  display: grid;
  gap: 0.55rem;
}
.ma-zip {
  display: grid;
  grid-template-columns: minmax(0, 220px) auto;
  gap: 0.55rem;
}
.ma-addr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 52px;
  padding: 0 1.3rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--hl-navy);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.ma-addr-btn:hover {
  background: var(--hl-deep);
}
.ma-addr-btn:active {
  transform: translateY(1px);
}
.ma-addr-btn:focus-visible {
  outline: 2px solid var(--hl-gold);
  outline-offset: 2px;
}
.ma-addr-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* 가입일 · 담당자 안내 */
.ma-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.6rem 0 0;
  padding: 0;
}
.ma-meta > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  font-size: 0.84rem;
  background: #f5f7fb;
  border: 1px solid #e3e8ef;
  border-radius: 999px;
}
.ma-meta dt {
  font-weight: 700;
  color: var(--hl-gold);
}
.ma-meta dd {
  margin: 0;
  color: var(--hl-ink);
}

/* 주소 검색 창 (카카오 우편번호 서비스) */
.ma-postcode {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 22, 40, 0.55);
}
.ma-postcode[hidden] {
  display: none;
}
.ma-postcode-panel {
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  height: min(640px, calc(100vh - 2rem));
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(11, 28, 51, 0.28);
}
.ma-postcode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  color: #fff;
  background: var(--hl-navy);
}
.ma-postcode-head strong {
  font-size: 1rem;
}
.ma-postcode-head button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.ma-postcode-head svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.ma-postcode-tip {
  margin: 0;
  padding: 0.65rem 1.2rem;
  font-size: 0.78rem;
  color: var(--hl-muted);
  background: #f5f7fb;
  border-bottom: 1px solid #e3e8ef;
}
.ma-postcode-body {
  flex: 1;
  min-height: 0;
}
.ma-choice-block + .ma-choice-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed #ccd4df;
}
.ma-choice-block h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}
.ma-choice-block h3 .ma-pick {
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-style: normal;
  color: var(--hl-gold);
}
.ma-price {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: var(--hl-muted);
}
.ma-price strong {
  font-size: 1.1rem;
  color: var(--hl-navy);
}
.ma-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.ma-options.is-3 {
  grid-template-columns: repeat(3, 1fr);
}
.ma-options label {
  position: relative;
  cursor: pointer;
}
.ma-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ma-options span {
  display: flex;
  flex-direction: column;
  min-height: 94px;
  padding: 1.2rem 1.3rem;
  background: #fbfcfd;
  border: 1px solid #d5dce5;
  transition: 0.18s ease;
}
.ma-options span::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 18px;
  height: 18px;
  border: 1px solid #aeb8c6;
  border-radius: 50%;
}
.ma-options input:checked + span {
  background: #f0f4fa;
  border-color: var(--hl-navy);
  box-shadow: inset 0 0 0 1px var(--hl-navy);
}
.ma-options input:checked + span::before {
  background: var(--hl-gold);
  border: 5px solid var(--hl-navy);
}
.ma-options input:focus-visible + span {
  outline: 2px solid var(--hl-gold);
  outline-offset: 2px;
}
.ma-options b {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  color: var(--hl-ink);
}
.ma-options small {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--hl-muted);
}
.ma-options small strong {
  color: var(--hl-gold);
}
.ma-help {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--hl-muted);
}
.ma-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
@media (max-width: 960px) {
  .ma-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}
.ma-benefits article {
  min-height: 170px;
  padding: 1.35rem;
  background: #f7f9fc;
  border-top: 3px solid var(--hl-gold);
}
.ma-benefits article > b {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--hl-gold);
}
.ma-benefits h3 {
  margin: 0.8rem 0 0.5rem;
  font-size: 1rem;
}
.ma-benefits .ma-benefit-sub {
  margin: -0.25rem 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hl-navy);
}
.ma-benefits p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--hl-muted);
}
.ma-terms {
  border: 1px solid #d6dde6;
}
.ma-terms summary {
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hl-navy);
  background: #f7f9fc;
  cursor: pointer;
}
.ma-terms > div {
  max-height: 420px;
  overflow-y: auto;
  padding: 1.3rem 1.4rem;
  border-top: 1px solid #e2e7ed;
}
.ma-terms h3 {
  margin: 1.1rem 0 0.25rem;
  font-size: 0.88rem;
}
.ma-terms h3:first-of-type {
  margin-top: 0;
}
.ma-terms p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.75;
  color: #536071;
}
.ma-confirm-copy {
  margin: 1.3rem 0 0.8rem;
  font-size: 0.86rem;
  line-height: 1.65;
}
.ma-consents {
  display: grid;
  gap: 0.6rem;
}
.ma-consents label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  color: var(--hl-ink);
  background: #f7f9fc;
  cursor: pointer;
}
.ma-consents input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0.05rem 0 0;
  accent-color: var(--hl-navy);
}
.ma-sign-name {
  max-width: 440px;
  margin-bottom: 1.2rem;
}
.ma-sign-box {
  border: 1px solid #ccd4df;
}
.ma-sign-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f5f7fa;
  border-bottom: 1px solid #dce2e9;
}
.ma-sign-head > span {
  margin: 0;
}
.ma-sign-head button {
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.76rem;
  color: var(--hl-navy);
  background: #fff;
  border: 1px solid #bfc8d4;
  cursor: pointer;
}
#maSignature {
  display: block;
  width: 100%;
  height: 190px;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}
.ma-sign-box > p {
  margin: 0;
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  color: var(--hl-muted);
  border-top: 1px dashed #dce2e9;
}
.ma-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
.ma-error {
  min-height: 1.4em;
  margin: 1rem 0 0;
  font-size: 0.86rem;
  color: #cf2731;
}
.ma-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.8rem;
}
.ma-submit-row p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--hl-muted);
}
.ma-submit-row strong {
  color: var(--hl-ink);
}
.ma-submit-row button {
  min-width: 220px;
  min-height: 54px;
  padding: 0.8rem 1.6rem;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  background: var(--hl-navy);
  border: 0;
  cursor: pointer;
}
.ma-submit-row button:hover {
  background: var(--hl-deep);
}
.ma-submit-row button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.ma-success {
  margin-top: 1.3rem;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  text-align: center;
  background: #fff;
  border-top: 4px solid var(--hl-gold);
}
.ma-success > span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--hl-gold);
}
.ma-success h2 {
  margin: 0.8rem 0;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
}
.ma-success p {
  margin: 0;
  color: var(--hl-muted);
}
.ma-success .ma-receipt {
  margin: 1.5rem auto;
  font-size: 0.86rem;
}
.ma-receipt b {
  margin-left: 0.4rem;
  color: var(--hl-navy);
}
.ma-success a {
  display: inline-flex;
  padding: 0.8rem 1.3rem;
  font-weight: 700;
  color: #fff !important;
  background: var(--hl-navy);
}

@media (max-width: 760px) {
  .ma-main {
    width: 100%;
    padding-top: 5.5rem;
  }
  .ma-card-head p,
  .ma-field small,
  .ma-help,
  .ma-benefits p,
  .ma-benefits .ma-benefit-sub,
  .ma-terms p,
  .ma-sign-box > p,
  .ma-submit-row p {
    font-size: 14px;
  }
  .ma-field > label,
  .ma-field > span,
  .ma-label,
  .ma-sign-head > span,
  .ma-consents label {
    font-size: 15px;
  }
  .ma-field input,
  .ma-field select {
    font-size: 16px;
  }
  .ma-options b {
    font-size: 1rem;
  }
  .ma-options small {
    padding-right: 1.75rem;
    font-size: 14px;
  }
  .ma-terms summary {
    min-height: 48px;
    font-size: 15px;
  }
  .ma-sign-head button {
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    font-size: 14px;
  }
  .ma-hero,
  .ma-card {
    border-left: 0;
    border-right: 0;
  }
  .ma-form {
    gap: 0.8rem;
    margin-top: 0.8rem;
  }
  .ma-fields,
  .ma-options,
  .ma-options.is-3,
  .ma-benefits {
    grid-template-columns: 1fr;
  }
  .ma-field.is-wide {
    grid-column: auto;
  }
  .ma-zip {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ma-addr-btn {
    padding: 0 1rem;
  }
  .ma-postcode {
    padding: 0;
    place-items: end stretch;
  }
  .ma-postcode-panel {
    width: 100%;
    height: 88vh;
    border-radius: 16px 16px 0 0;
  }
  .ma-benefits article {
    min-height: 0;
  }
  #maSignature {
    height: 160px;
  }
  .ma-submit-row {
    align-items: stretch;
    flex-direction: column;
  }
  .ma-submit-row button {
    width: 100%;
  }
}
