/* =========================================
   쪼아 심리테스터 - 커플 궁합테스트
   file: couple.css
========================================= */

:root{
  --cp-bg: #f8f2f8;
  --cp-panel: #ffffff;
  --cp-card: #ffffff;
  --cp-line: #f0d8e7;
  --cp-line-strong: #ebb7d5;
  --cp-text: #222;
  --cp-text-sub: #666;
  --cp-pink: #ec5fa7;
  --cp-pink-deep: #e04496;
  --cp-pink-soft: #fff1f8;
  --cp-purple: #845ef7;
  --cp-mint: #17c3b2;
  --cp-blue: #339af0;
  --cp-green: #2f9e44;
  --cp-yellow: #ffd43b;
  --cp-red: #fa5252;
  --cp-shadow: 0 8px 24px rgba(209, 93, 146, 0.08);
  --cp-shadow-soft: 0 6px 18px rgba(0,0,0,0.05);
  --cp-radius: 20px;
  --cp-radius-sm: 14px;
  --cp-max: 980px;
}

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

#zzoa-couple-app.cp-app{
  background: linear-gradient(180deg, #f9f1f8 0%, #fbf7fb 40%, #f7f2f8 100%);
  color: var(--cp-text);
  padding: 22px 14px 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;
  line-height: 1.5;
}

.cp-container{
  width: 100%;
  max-width: var(--cp-max);
  margin: 0 auto;
}

/* Hero */
.cp-hero{
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0499d 0%, #ef6aa8 48%, #ef88bf 100%);
  border-radius: 26px;
  box-shadow: var(--cp-shadow);
  color: #fff;
  margin-bottom: 20px;
}
.cp-hero__inner{
  padding: 26px 22px 24px;
  position: relative;
  z-index: 2;
}
.cp-hero__badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.12);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 10px;
}
.cp-hero__title{
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cp-hero__desc{
  margin: 8px 0 14px;
  color: rgba(255,255,255,0.95);
  font-size: 15px;
}
.cp-hero__features{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.cp-hero__features li{
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
}
.cp-hero__bg-icon{
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 84px;
  opacity: 0.12;
  transform: rotate(-12deg);
  pointer-events: none;
}

/* Panels / Cards */
.cp-panel{
  margin-bottom: 18px;
}
.cp-card{
  background: var(--cp-card);
  border: 1px solid #f4e5ee;
  border-radius: var(--cp-radius);
  box-shadow: var(--cp-shadow-soft);
}
.cp-step{ display: none; }
.cp-step.active{ display: block; }

.cp-section-title{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.cp-section-title__icon{
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--cp-pink-soft);
  border: 1px solid #f6d8e9;
  font-size: 22px;
  flex-shrink: 0;
}
.cp-section-title h2{
  margin: 2px 0 4px;
  font-size: 26px;
  color: var(--cp-pink-deep);
  letter-spacing: -0.02em;
}
.cp-section-title p{
  margin: 0;
  color: var(--cp-text-sub);
  font-size: 14px;
}

/* Form */
.cp-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.cp-person-card{
  padding: 20px 18px;
  background: linear-gradient(180deg, #fffafd 0%, #fff7fb 100%);
}
.cp-person-card__avatar{
  width: 60px;
  height: 60px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 36px;
  background: #fff;
  border: 2px solid #f6dbe8;
}
.cp-person-card__title{
  text-align: center;
  margin: 0 0 12px;
  color: var(--cp-pink-deep);
  font-size: 20px;
  font-weight: 800;
}
.cp-label{
  display: block;
  margin: 10px 0 6px;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}
.cp-input, .cp-select{
  width: 100%;
  border: 1.5px solid #f0dde9;
  background: #fff;
  border-radius: 12px;
  min-height: 46px;
  padding: 0 14px;
  font-size: 15px;
  color: #222;
  outline: none;
  transition: .2s ease;
}
.cp-input:focus, .cp-select:focus{
  border-color: #ec8ec0;
  box-shadow: 0 0 0 4px rgba(236,95,167,.12);
}
.cp-input.invalid, .cp-select.invalid{
  border-color: #ff7b9e;
  box-shadow: 0 0 0 4px rgba(250,82,82,.1);
}

.cp-inline-note{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fffaf0;
  border: 1px solid #ffe8b5;
  border-radius: 12px;
  padding: 10px 12px;
  color: #705c25;
  font-size: 13px;
}
.cp-inline-note span{ font-size: 16px; }

/* Buttons */
.cp-actions{
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.cp-actions.center{ justify-content: center; }
.cp-actions.between{ justify-content: space-between; }

.cp-btn{
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  transition: .2s ease;
  white-space: nowrap;
}
.cp-btn:disabled{
  opacity: .5;
  cursor: not-allowed;
}
.cp-btn--lg{
  min-width: 220px;
  min-height: 52px;
  font-size: 17px;
}
.cp-btn--primary{
  color: #fff;
  background: linear-gradient(135deg, #ef4d9f 0%, #ea63ad 100%);
  box-shadow: 0 8px 18px rgba(239,77,159,.28);
}
.cp-btn--primary:hover{ transform: translateY(-1px); }
.cp-btn--ghost{
  color: #555;
  background: #fff;
  border: 1px solid #ead8e4;
}
.cp-btn--danger{
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #fa5252);
}
.cp-btn--kakao{
  background: #fee500;
  color: #231f20;
}
.cp-btn--facebook{
  background: #1877f2;
  color: #fff;
}
.cp-btn--twitter{
  background: #1d9bf0;
  color: #fff;
}
.cp-btn--green{
  background: #2f9e44;
  color: #fff;
}

/* Quiz progress */
.cp-progress-card{
  padding: 14px 14px 12px;
  margin-bottom: 14px;
}
.cp-progress-head{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.cp-progress-label{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.cp-progress-icon{
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0f7;
  border: 1px solid #f7d6e9;
}
.cp-progress-person{
  color: var(--cp-pink-deep);
  font-weight: 700;
  font-size: 14px;
}
.cp-progress{
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #f6e3ee;
  overflow: hidden;
  border: 1px solid #f0dce8;
}
.cp-progress__bar{
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4d9f, #ee76b4);
  transition: width .25s ease;
}
.cp-mini-status{
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cp-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #f7edf5;
  color: #84516e;
  border: 1px solid #f0dbe7;
}
.cp-pill--soft{
  background: #fff;
  color: #6b6b6b;
}

/* Question */
.cp-question-card{
  padding: 18px 16px 14px;
}
.cp-question-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cp-question-category{
  color: var(--cp-pink-deep);
  font-weight: 800;
  font-size: 15px;
}
.cp-question-no{
  color: #777;
  font-size: 13px;
  border: 1px solid #eee;
  background: #fafafa;
  padding: 4px 8px;
  border-radius: 999px;
}
.cp-question-title{
  margin: 12px 0 6px;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.cp-question-sub{
  margin: 0 0 14px;
  color: #666;
  font-size: 14px;
}
.cp-choices{
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.cp-choice{
  width: 100%;
  text-align: left;
  border: 1.5px solid #f2dfe9;
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: .16s ease;
}
.cp-choice:hover{
  border-color: #ebb5d4;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(230,105,168,.08);
}
.cp-choice.is-selected{
  border-color: var(--cp-pink);
  background: #fff4fa;
  box-shadow: 0 0 0 4px rgba(236,95,167,.10);
}
.cp-choice__badge{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid #f0d6e4;
  background: #fff;
  color: #555;
}
.cp-choice.is-selected .cp-choice__badge{
  background: linear-gradient(135deg, #ef4d9f, #ef7ab8);
  color: #fff;
  border-color: transparent;
}
.cp-choice__text{
  flex: 1;
}
.cp-choice__title{
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}
.cp-choice__desc{
  color: #666;
  font-size: 13px;
}

/* Loading */
.cp-loading-card{
  padding: 24px 20px;
  text-align: center;
}
.cp-loading-icon{
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: linear-gradient(135deg, #fff0f7, #f7f4ff);
  border: 1px solid #f1deea;
}
.cp-loading-card h2{
  margin: 4px 0 8px;
  font-size: 24px;
}
.cp-loading-card p{
  margin: 0 auto 14px;
  color: #666;
  max-width: 680px;
  font-size: 14px;
}
.cp-loading-progress{
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #f4e3ed;
  overflow: hidden;
  border: 1px solid #edd8e6;
}
.cp-loading-progress__bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ef4d9f, #845ef7, #17c3b2);
  transition: width .25s ease;
}
.cp-loading-text{
  margin-top: 10px;
  color: #555;
  font-weight: 600;
  font-size: 14px;
}

/* Result area */
.cp-result-wrap{
  margin-top: 18px;
  display: grid;
  gap: 16px;
}
.cp-result-hero{
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f04499 0%, #f067aa 45%, #f08bc2 100%);
  color: #fff;
  padding: 20px 18px 18px;
}
.cp-result-hero__bg{
  position: absolute;
  right: 18px;
  top: 8px;
  font-size: 100px;
  opacity: .10;
  transform: rotate(-10deg);
}
.cp-result-hero__header{
  text-align: center;
  position: relative;
  z-index: 1;
}
.cp-result-hero__label{
  font-weight: 700;
  opacity: .95;
}
.cp-result-hero__names{
  margin-top: 6px;
  font-weight: 700;
  font-size: 16px;
  color: #fff7fb;
}

.cp-score-ring-wrap{
  display: flex;
  justify-content: center;
  margin: 12px 0 10px;
  position: relative;
  z-index: 1;
}
.cp-score-ring{
  width: 164px;
  height: 164px;
  position: relative;
}
.cp-score-ring__svg{
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.cp-score-ring__track{
  fill: none;
  stroke: rgba(255,255,255,0.22);
  stroke-width: 10;
}
.cp-score-ring__value{
  fill: none;
  stroke: rgba(255,255,255,0.95);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 301.59;
  stroke-dashoffset: 301.59;
  transition: stroke-dashoffset .7s ease;
}
.cp-score-ring__text{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 42px;
}
.cp-score-ring__text em{
  font-style: normal;
  font-size: 22px;
  margin-left: 2px;
}

.cp-result-type{
  position: relative;
  z-index: 1;
  text-align: center;
}
.cp-result-type__badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.22);
  font-weight: 800;
}
.cp-result-type h3{
  margin: 10px 0 6px;
  font-size: 24px;
  line-height: 1.25;
}
.cp-result-type p{
  margin: 0 auto;
  max-width: 720px;
  color: rgba(255,255,255,.96);
  font-size: 14px;
}

.cp-highlight-chips{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.cp-chip{
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.20);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* Metric cards */
.cp-grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.cp-metric-card{
  padding: 14px;
}
.cp-metric-card__head{
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.cp-metric-card__title{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #333;
}
.cp-metric-card__score{
  color: #fff;
  background: linear-gradient(135deg, #ef4d9f, #ef74b6);
  border-radius: 999px;
  padding: 6px 10px;
  min-width: 54px;
  text-align: center;
  font-weight: 800;
}
.cp-metric-card__desc{
  margin: 8px 0 10px;
  color: #666;
  font-size: 13px;
}
.cp-meter{
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #f4e2ec;
  border: 1px solid #eed9e6;
  overflow: hidden;
}
.cp-meter__bar{
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4d9f, #ef88bf);
  transition: width .65s ease;
}
.cp-meter__hint{
  margin-top: 8px;
  color: #666;
  font-size: 12px;
}

/* Analysis */
.cp-analysis-card{
  padding: 16px;
}
.cp-analysis-card h4{
  margin: 0 0 10px;
  font-size: 18px;
}
.cp-analysis-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cp-analysis-split h5{
  margin: 0 0 8px;
  color: #444;
  font-size: 14px;
}
.cp-list{
  margin: 0;
  padding-left: 18px;
}
.cp-list li{
  margin: 6px 0;
  color: #333;
  font-size: 14px;
}
.cp-list--muted li{
  color: #555;
}
.cp-text-pink{ color: var(--cp-pink-deep); }

/* Guide */
.cp-guide-card{
  padding: 16px;
  background: linear-gradient(135deg, #15c0b0 0%, #1fc8b9 55%, #3cd2c6 100%);
  color: #fff;
  border: none;
}
.cp-guide-card__title{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.cp-guide-card__title h3{
  margin: 0;
  font-size: 24px;
}
.cp-guide-grid{
  display: grid;
  gap: 10px;
}
.cp-guide-item{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
}
.cp-guide-item__icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.16);
  font-size: 20px;
}
.cp-guide-item h4{
  margin: 1px 0 4px;
  font-size: 16px;
  color: #fff;
}
.cp-guide-item p{
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.96);
}

/* Type detail */
.cp-type-detail-card{
  padding: 16px;
}
.cp-type-detail-card__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cp-type-detail-card__head h3{
  margin: 0;
  font-size: 20px;
}
.cp-type-box{
  border: 1px solid #f2e1eb;
  background: #fffafe;
  border-radius: 14px;
  padding: 12px;
}
.cp-type-box h4{
  margin: 0 0 6px;
  color: var(--cp-pink-deep);
  font-size: 15px;
}
.cp-type-box p{
  margin: 0;
  color: #444;
  font-size: 14px;
  line-height: 1.55;
}

/* Footer guide */
.cp-footer-guide{
  padding: 16px;
}
.cp-footer-guide h3{
  margin: 0 0 10px;
  font-size: 20px;
}
.cp-quote-box{
  margin-top: 12px;
  background: linear-gradient(180deg, #fff5fb, #fff);
  border: 1px solid #f3ddeb;
  border-radius: 14px;
  padding: 14px;
}
.cp-quote-box p{
  margin: 0;
  color: #444;
  text-align: center;
  font-weight: 600;
}
.cp-quote-box span{
  color: var(--cp-pink-deep);
  font-weight: 800;
}

/* Share */
.cp-share-wrap{
  padding: 16px;
  text-align: center;
}
.cp-share-wrap h3{
  margin: 0 0 4px;
  font-size: 22px;
}
.cp-share-wrap p{
  margin: 0 0 12px;
  color: #666;
  font-size: 14px;
}
.cp-share-buttons{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
}
.cp-share-buttons .cp-btn{
  padding: 12px 8px;
  border-radius: 12px;
  font-size: 14px;
}
.cp-bottom-actions{
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Toast */
.cp-toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(18px);
  width: min(92vw, 520px);
  background: #fff;
  border: 1px solid #f1dce8;
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 36px 1fr 30px;
  gap: 10px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
  z-index: 99999;
}
.cp-toast.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.cp-toast__icon{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eefaf6;
  border: 1px solid #d6f1e6;
  font-size: 18px;
}
.cp-toast__content strong{
  display: block;
  color: #222;
  margin-bottom: 2px;
}
.cp-toast__content p{
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.35;
}
.cp-toast__close{
  border: 0;
  background: transparent;
  color: #777;
  cursor: pointer;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.cp-toast__close:hover{ background: #f7f7f7; }

/* Utilities */
[hidden]{ display: none !important; }

/* Responsive */
@media (max-width: 900px){
  .cp-grid-2{ grid-template-columns: 1fr; }
  .cp-analysis-split{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  #zzoa-couple-app.cp-app{
    padding: 16px 10px 28px;
  }
  .cp-hero__features{
    grid-template-columns: 1fr;
  }
  .cp-form-grid{
    grid-template-columns: 1fr;
  }
  .cp-section-title h2{
    font-size: 22px;
  }
  .cp-question-title{
    font-size: 20px;
  }
  .cp-actions.between{
    flex-direction: row;
  }
  .cp-btn{
    font-size: 14px;
    padding: 11px 14px;
  }
  .cp-share-buttons{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .cp-result-type h3{
    font-size: 20px;
  }
  .cp-score-ring{
    width: 148px;
    height: 148px;
  }
}

@media (max-width: 420px){
  .cp-progress-head{
    align-items: flex-start;
  }
  .cp-question-card{
    padding: 15px 12px 12px;
  }
  .cp-choice{
    padding: 12px 12px;
  }
  .cp-bottom-actions{
    flex-direction: column;
  }
  .cp-bottom-actions .cp-btn{
    width: 100%;
  }
}
.result-copyright{
  text-align:center;
  color:#8b8b99;
  font-size:11.5px;
  margin-top:8px;
}