@charset "utf-8";
/* =========================================================
   2027 제15회 MBC웨딩페어 참가신청 폼 (iframe: reservation_fair15th)
   - 퍼블리싱 /pages/fair15th/css/main.css 의 "24. 참가신청폼" 카드 디자인 이식
   - iframe 안에서는 100vw / 미디어쿼리가 iframe 폭 기준이라,
     부모 페이지가 보내주는 모드(html.m-pc / m-mo / m-mos)로 레이아웃 전환
     · m-pc  : 부모 폭 1025px 이상 (시안 680px 카드를 iframe 폭에 맞춰 비율 축소)
     · m-mo  : 부모 폭 641~1024px
     · m-mos : 부모 폭 640px 이하
   ========================================================= */
html, body { margin: 0; padding: 0; background: transparent; overflow: hidden; }
body { -webkit-text-size-adjust: 100%; }

.ap_card {
    --u: 1px;
    --navy: #051538;
    --pink: #ff57e3;
    --line: #c7c7c7;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 36px 32px 44px;
    background: #fff;
    color: #000;
    font-family: 'Pretendard', sans-serif;
    text-align: left;
}
.ap_card *, .ap_card *::before, .ap_card *::after { box-sizing: border-box; }
.ap_card input, .ap_card button { margin: 0; font-family: inherit; }
.ap_card p, .ap_card h3 { margin: 0; }
.ap_form { margin: 0; }

/* ---------- PC: 시안 680 x 654 카드 ---------- */
.m-pc .ap_card {
    --u: calc(100vw / 680);
    height: calc(654 * var(--u));
    padding: calc(50 * var(--u)) calc(54 * var(--u)) 0 calc(55 * var(--u));
}

.ap_row {
    display: flex;
    align-items: center;
    min-height: calc(46 * var(--u));
}
.ap_row + .ap_row { margin-top: calc(31 * var(--u)); }
.ap_row.pair + .ap_row.pair { margin-top: calc(27 * var(--u)); }
.ap_row.r4,
.ap_row.r5 { margin-top: calc(35 * var(--u)); }
.ap_field { display: flex; align-items: center; }
.ap_field + .ap_field { margin-left: calc(45 * var(--u)); }

.ap_lb {
    flex-shrink: 0;
    width: calc(129 * var(--u));
    font-size: calc(20 * var(--u));
    font-weight: 600;
    letter-spacing: -.05em;
    line-height: 1.2;
    white-space: nowrap;
}
.ap_lb.tel { width: calc(67 * var(--u)); }

.ap_card .ap_ip {
    display: block;
    width: calc(142 * var(--u));
    height: calc(46 * var(--u));
    padding: 0 calc(14 * var(--u));
    border: 1px solid var(--line);
    border-radius: calc(8 * var(--u));
    background: #fff;
    font-size: calc(16 * var(--u));
    font-weight: 600;
    letter-spacing: -.05em;
    color: #000;
    line-height: normal;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s;
}
.ap_ip::placeholder { color: #b3b3b3; opacity: 1; }
.ap_ip::-webkit-input-placeholder { color: #b3b3b3; }
.ap_ip:focus { border-color: var(--pink); }
.ap_card .ap_ip.tel { width: calc(188 * var(--u)); }
.ap_card .ap_ip.date {
    position: relative;
    width: calc(342 * var(--u));
    padding-left: calc(52 * var(--u));
    background: #fff url(/pages/fair15th/images/main/ap_cal.svg) calc(16 * var(--u)) 50% / calc(23 * var(--u)) auto no-repeat;
}
/* 달력 아이콘 대신 입력칸 전체를 눌러 달력 열기 */
.ap_ip.date::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: auto;
    height: auto;
    opacity: 0;
    cursor: pointer;
}
.ap_ip.date::-webkit-date-and-time-value { text-align: left; }
.ap_card .ap_ip.date:disabled,
.ap_card .ap_ip.date[readonly] { background-color: #f5f5f5; color: #b3b3b3; }

/* 라디오 · 체크 */
.ap_opts { display: flex; align-items: center; gap: calc(28 * var(--u)); }
.ap_chk {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: calc(5 * var(--u));
    font-size: calc(16 * var(--u));
    font-weight: 600;
    letter-spacing: -.05em;
    white-space: nowrap;
    cursor: pointer;
}
.ap_chk input {
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.ap_chk i {
    flex-shrink: 0;
    width: calc(26 * var(--u));
    height: calc(26 * var(--u));
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff center / calc(14.48 * var(--u)) auto no-repeat;
    font-style: normal;
    transition: background-color .2s, border-color .2s;
}
.ap_chk input:checked + i {
    border-color: var(--pink);
    background-color: var(--pink);
    background-image: url(/pages/fair15th/images/main/ap_check.svg);
}
.ap_chk input:focus-visible + i { outline: 2px solid var(--pink); outline-offset: 2px; }
.ap_chk.day b { font-size: calc(20 * var(--u)); font-weight: 600; }
.ap_chk.undecided { margin-left: calc(40 * var(--u)); }
.ap_chk.sq i {
    width: calc(22 * var(--u));
    height: calc(22 * var(--u));
    border-radius: calc(5 * var(--u));
    background-size: calc(12 * var(--u)) auto;
}
.ap_agree {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(10 * var(--u));
    margin-top: calc(54 * var(--u));
}
.ap_agree .ap_chk { gap: calc(7 * var(--u)); }
.ap_detail {
    font-size: calc(14 * var(--u));
    font-weight: 500;
    letter-spacing: -.03em;
    color: #8a8a8a;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

/* 신청 버튼 + 배지 */
.ap_submit {
    position: relative;
    width: calc(335 * var(--u));
    margin: calc(57 * var(--u)) auto 0;
}
.ap_btn {
    display: block;
    width: 100%;
    height: calc(65 * var(--u));
    border: 0;
    border-radius: calc(13 * var(--u));
    background: #000;
    font-size: calc(24 * var(--u));
    font-weight: 600;
    letter-spacing: -.05em;
    color: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .25s;
}
@media (hover: hover) {
    .ap_btn:hover { background: var(--navy); }
}
.ap_btn:disabled { opacity: .6; cursor: default; }
.ap_badge {
    position: absolute;
    left: calc(304.5 * var(--u));
    top: calc(-67 * var(--u));
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(129.42 * var(--u));
    height: calc(129.42 * var(--u));
    pointer-events: none;
}
.ap_badge::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(105.672 * var(--u));
    height: calc(105.672 * var(--u));
    margin: calc(-52.836 * var(--u)) 0 0 calc(-52.836 * var(--u));
    background: url(/pages/fair15th/images/main/ap_badge.svg) center / 100% 100% no-repeat;
    filter: drop-shadow(calc(6 * var(--u)) calc(8 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, .25));
    transform: rotate(15deg);
}
.ap_badge > span {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: calc(12.328 * var(--u));
    font-weight: 800;
    line-height: 1.26;
    letter-spacing: -.057em;
    color: var(--navy);
    white-space: nowrap;
    transform: rotate(15deg);
}
.ap_badge b { font-size: calc(19.373 * var(--u)); font-weight: 800; }

/* ---------- 태블릿·모바일 (부모 폭 1024px 이하) ---------- */
html:not(.m-pc) .ap_row,
html:not(.m-pc) .ap_row.pair { flex-wrap: wrap; min-height: 46px; gap: 14px 0; }
html:not(.m-pc) .ap_row + .ap_row,
html:not(.m-pc) .ap_row.pair + .ap_row.pair,
html:not(.m-pc) .ap_row.r4,
html:not(.m-pc) .ap_row.r5 { margin-top: 20px; }
html:not(.m-pc) .ap_field { flex: 1 1 0; min-width: 0; }
html:not(.m-pc) .ap_field + .ap_field { margin-left: 24px; }
html:not(.m-pc) .ap_lb { width: 104px; font-size: 17px; }
html:not(.m-pc) .ap_lb.tel { width: 60px; }
html:not(.m-pc) .ap_card .ap_ip { flex: 1; min-width: 0; width: auto; height: 46px; padding: 0 12px; border-radius: 8px; font-size: 15px; }
html:not(.m-pc) .ap_card .ap_ip.date { padding-left: 44px; background-position: 13px 50%; background-size: 20px auto; }
html:not(.m-pc) .ap_opts { gap: 24px; }
html:not(.m-pc) .ap_chk { gap: 6px; font-size: 15px; }
html:not(.m-pc) .ap_chk i { width: 24px; height: 24px; background-size: 13px auto; }
html:not(.m-pc) .ap_chk.day b { font-size: 17px; }
html:not(.m-pc) .ap_chk.undecided { margin-left: 20px; }
html:not(.m-pc) .ap_chk.sq i { width: 20px; height: 20px; border-radius: 5px; background-size: 11px auto; }
html:not(.m-pc) .ap_agree { flex-wrap: wrap; gap: 6px 10px; margin-top: 32px; }
html:not(.m-pc) .ap_agree .ap_chk { gap: 8px; white-space: normal; word-break: keep-all; }
html:not(.m-pc) .ap_detail { font-size: 13px; }
html:not(.m-pc) .ap_submit { width: min(100%, 335px); margin-top: 40px; }
html:not(.m-pc) .ap_btn { height: 58px; border-radius: 12px; font-size: 20px; }
html:not(.m-pc) .ap_badge { left: auto; right: -40px; top: -58px; width: 100px; height: 100px; }
html:not(.m-pc) .ap_badge::before { width: 82px; height: 82px; margin: -41px 0 0 -41px; }
html:not(.m-pc) .ap_badge > span { font-size: 10px; }
html:not(.m-pc) .ap_badge b { font-size: 15px; }

/* ---------- 모바일 (부모 폭 640px 이하) ---------- */
html.m-mos .ap_card { padding: 28px 20px 36px; }
html.m-mos .ap_row.pair { flex-direction: column; align-items: stretch; }
html.m-mos .ap_field + .ap_field { margin-left: 0; }
html.m-mos .ap_lb, html.m-mos .ap_lb.tel { width: 84px; font-size: 16px; }
html.m-mos .ap_row.pair + .ap_row.pair { margin-top: 14px; }
html.m-mos .ap_chk.undecided { margin-left: 12px; }
html.m-mos .ap_badge { right: -14px; top: -56px; width: 84px; height: 84px; }
html.m-mos .ap_badge::before { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
html.m-mos .ap_badge > span { font-size: 8.5px; }
html.m-mos .ap_badge b { font-size: 13px; }
html.m-mos .ap_agree .ap_chk { font-size: 14px; }
html.m-mos .ap_submit { margin-top: 56px; }

/* ---------- 개인정보 동의 상세 ---------- */
.privacy {
    display: none;
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 10;
    padding: 44px 24px 28px;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
}
.privacy.on { display: block; }
.privacy h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--navy); letter-spacing: -.03em; }
.privacy table { width: 100%; margin-bottom: 24px; border-collapse: collapse; border-top: 2px solid var(--pink); font-size: 13px; }
.privacy th, .privacy td { padding: 8px 6px; border: 1px solid #e3e3e3; text-align: center; word-break: keep-all; vertical-align: middle; }
.privacy th { background: #fafafa; font-weight: 600; }
.pv_agree { display: flex; justify-content: center; padding-top: 4px; }
.privacy .ap_chk { font-size: 15px; gap: 8px; }
.privacy .ap_chk.sq i { width: 20px; height: 20px; border-radius: 5px; background-size: 11px auto; }
.pv_close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: #555;
    cursor: pointer;
}

/* ---------- 접수 완료 ---------- */
.reservation-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    text-align: center;
}
.m-pc .reservation-result {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    padding: 0 calc(40 * var(--u));
}
.reservation-result .rr_tit {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.05em;
    color: var(--navy);
}
.reservation-result .rr_txt {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -.03em;
    color: #555;
}
.m-pc .reservation-result .rr_tit { font-size: calc(34 * var(--u)); }
.m-pc .reservation-result .rr_txt { margin-top: calc(18 * var(--u)); font-size: calc(20 * var(--u)); }

/* 모바일: '내용보기' 링크는 동의 문구 아래 줄로 */
html:not(.m-pc) .ap_detail { flex-basis: 100%; text-align: center; }

/* =========================================================
   2026-11-13 입력폼 패치
   원인: 모바일(m-mos)에서 .ap_row.pair 가 flex-direction:column + flex-wrap:wrap 조합
         → iOS Safari 는 줄 폭을 input 고유폭(size=20) 기준으로 잡아 입력칸이 카드 밖으로 넘침.
         또 input font-size 15px(<16px)이라 iOS 에서 포커스 시 화면 자동 확대.
   ========================================================= */

/* 태블릿·모바일: input 고유폭 무시 + iOS 확대 방지 */
html:not(.m-pc) .ap_card .ap_ip { flex: 1 1 0; min-width: 0; width: 0; font-size: 16px; }

/* 모바일: 세로 배치 줄은 줄바꿈 끄고 필드 폭 100% 고정 */
html.m-mos .ap_row.pair { flex-wrap: nowrap; }
html.m-mos .ap_row.pair .ap_field { flex: none; width: 100%; }
