/* 2027년 똑똑! 수학탐험대 탁상달력 나눔 이벤트 (/event/calendar) */
.cg-wrap * { box-sizing: border-box; }
#contents .cg-wrap {
    max-width: none;
    margin: 0 auto 60px;
    background: #f1f2fb;
    padding: 18px;
    border-radius: 18px;
}

/* 상단 띠 배너: 달력 나눔 팝업의 하늘색/핑크/옐로우 콘셉트 — 가로로 길게, 좌측 달력 아이콘 + 좌측 정렬 제목 */
#calendarGiftHero2027 {
    position: relative !important;
    isolation: isolate;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 auto !important;
    overflow: hidden !important;
    text-align: left !important;
    padding: 34px 40px 36px;
    min-height: 170px;
    border-radius: 16px;
    border: 3px solid #fff;
    background:
        radial-gradient(ellipse at 0% 25%, #ffffffc9 0 10%, transparent 11%),
        radial-gradient(ellipse at 100% 72%, #ffffffa8 0 13%, transparent 14%),
        repeating-linear-gradient(150deg, transparent 0 70px, #ffffff30 71px 100px, transparent 101px 155px),
        linear-gradient(145deg, #a8e8fc 0%, #58c8f0 52%, #a8e8fc 100%) !important;
    box-shadow: 0 5px 16px rgba(49, 133, 192, .22);
}
#calendarGiftHero2027 #calendarGiftHeroTitle2027 {
    position: relative !important;
    z-index: 1;
    display: grid !important;
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: center;
    gap: 10px 16px;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    text-align: left !important;
    font-family: inherit;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -1px;
    word-break: keep-all;
}
#calendarGiftHero2027 .cg-badge {
    display: inline-block;
    padding: 3px 20px 5px;
    border: 3px solid #fff;
    border-radius: 28px;
    background: linear-gradient(180deg, #ff75ad, #ee176a) !important;
    box-shadow: inset 0 -3px 0 #bf1450, 0 3px 0 #b62a60;
    color: #fff !important;
    font-size: 24px;
    text-shadow: 0 2px 0 #be185d;
}
#calendarGiftHero2027 .cg-brand {
    display: block;
    font-size: 44px;
    line-height: 1.3;
    paint-order: stroke fill;
    -webkit-text-stroke: 2px #10243b;
    text-shadow: none;
}
#calendarGiftHero2027 .cg-brand-first { color: #fff; }
#calendarGiftHero2027 .cg-brand-last { color: #ffe332; }
#calendarGiftHero2027 .cg-title-pill {
    grid-column: 1 / -1;
    justify-self: center;
    display: inline-block;
    background: #fff;
    color: #35115e;
    border: 2px dashed #8299ff;
    outline: 3px solid #fff;
    border-radius: 14px;
    box-shadow: 0 5px 0 #5579d9;
    padding: 8px 28px 10px;
    font-size: 40px;
}
#calendarGiftHero2027 .cg-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 44px;
}
#calendarGiftHero2027 .cg-deco { pointer-events: none; flex: none; }
#calendarGiftHero2027 .cg-deco-calendar {
    position: relative;
    display: block;
    width: 112px; height: 120px;
    margin-left: 22px;
}
#calendarGiftHero2027 .cg-deco-calendar img {
    display: block;
    width: 100%; height: 100%;
    transform: rotate(-10deg);
    filter: drop-shadow(0 4px 0 rgba(86, 54, 162, .30));
}
#calendarGiftHero2027 .cg-rays {
    position: absolute;
    left: -34px; top: -26px;
    width: 62px; height: 62px;
    filter: drop-shadow(0 2px 0 rgba(214, 150, 0, .55));
}
#calendarGiftHero2027 .cg-symbols {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: -36px 0;
}
#calendarGiftHero2027 .cg-deco-plus, #calendarGiftHero2027 .cg-deco-minus {
    display: block;
    font-weight: 900;
    line-height: 1;
    font-size: 84px;
    paint-order: stroke fill;
    -webkit-text-stroke: 4px #fff;
    text-shadow: 0 3px 0 #bb407e;
    color: #f65c99;
    transform: rotate(15deg);
}
#calendarGiftHero2027 .cg-deco-minus { color: #ffcb39; text-shadow: 0 3px 0 #d99918; transform: rotate(-18deg); }
@media (max-width: 600px) {
    #calendarGiftHero2027 { padding: 20px 16px 22px; min-height: 0; }
    #calendarGiftHero2027 .cg-hero-inner { gap: 16px; }
    #calendarGiftHero2027 #calendarGiftHeroTitle2027 { gap: 7px 10px; }
    #calendarGiftHero2027 .cg-badge { font-size: 15px; padding: 2px 12px 4px; }
    #calendarGiftHero2027 .cg-brand {
        font-size: clamp(20px, 6vw, 30px);
        -webkit-text-stroke: 1.5px #10243b;
    }
    #calendarGiftHero2027 .cg-title-pill { font-size: clamp(18px, 4.9vw, 25px); padding: 5px 12px 7px; }
    #calendarGiftHero2027 .cg-deco-calendar { width: 66px; height: 71px; margin-left: 14px; }
    #calendarGiftHero2027 .cg-rays { width: 30px; height: 30px; left: -17px; top: -12px; }
    #calendarGiftHero2027 .cg-symbols { display: none; }
}

.cg-section {
    background: #fff;
    padding: 20px;
    margin: 16px 0 0;
    border: 1px solid #e3e3f0;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(40, 30, 90, 0.05);
}
.cg-section h2 { font-size: 22px; margin: 0 0 12px; }

/* 이벤트 안내문 */
#contents .cg-wrap .cg-intro { padding: 26px 28px; word-break: keep-all; color: #222; }
#contents .cg-wrap .cg-intro p { margin: 0; font-size: 18px; line-height: 1.7; list-style: none; }
#contents .cg-wrap .cg-intro .cg-intro-lead { margin-bottom: 18px; }
#contents .cg-wrap .cg-intro .cg-intro-list { margin: 0 0 12px; }
#contents .cg-wrap .cg-intro .cg-intro-list p { margin-bottom: 8px; }
#contents .cg-wrap .cg-intro .cg-intro-list strong { font-weight: bold; color: #35115e; }
#contents .cg-wrap .cg-intro .cg-intro-note { font-size: 18px; color: #6b6b80; margin-bottom: 18px; }
#contents .cg-wrap .cg-intro .cg-intro-closing { margin: 0; }
@media (max-width: 600px) {
    #contents .cg-wrap .cg-intro { padding: 20px 16px; }
    #contents .cg-wrap .cg-intro p { font-size: 16px; }
    #contents .cg-wrap .cg-intro .cg-intro-note { font-size: 16px; }
}

/* 개인정보 수집 동의서 */
.cg-privacy-table { width: 100%; border-collapse: collapse; font-size: 17px; margin-bottom: 14px; }
.cg-privacy-table th, .cg-privacy-table td {
    border: 1px solid #ddd; padding: 14px 16px; text-align: left; vertical-align: top;
}
.cg-privacy-table th { background: #f3f1fd; width: 150px; white-space: nowrap; }
.cg-privacy-agree-text { font-size: 17px; line-height: 1.6; margin-bottom: 10px; }
.cg-privacy-agree-label { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: bold; }
.cg-privacy-agree-label input[type="checkbox"] { width: 22px; height: 22px; }

/* 입력 폼 */
.cg-form .cg-row { margin-bottom: 16px; }
.cg-form label.cg-field-label { display: block; font-size: 18px; font-weight: bold; margin-bottom: 6px; }
.cg-form input[type="text"], .cg-form input[type="tel"] {
    width: 100%; height: 54px; line-height: 54px; padding: 0 12px;
    border: 1px solid #ccc; border-radius: 4px; font-size: 18px;
}
.cg-addr-row { display: flex; gap: 8px; }
.cg-addr-row input { flex: 1; }
.cg-btn-zonecode {
    flex: 0 0 auto; height: 54px; padding: 0 18px; border: 1px solid #5b3fd6;
    background: #fff; color: #5b3fd6; border-radius: 4px; font-size: 17px; cursor: pointer;
}
.cg-submit-btn {
    width: 100%; height: 64px; border: none; border-radius: 6px;
    background: #5b3fd6; color: #fff; font-size: 21px; font-weight: bold; cursor: pointer;
}
.cg-submit-btn:disabled { background: #ccc; cursor: default; }
/* 상태 안내 카드 (마감 / 비로그인) — "신청하기" 제목 없이 안내만 보여 준다 */
#contents .cg-wrap .cg-state { text-align: center; padding: 44px 20px 48px; }
#contents .cg-wrap .cg-state-text { margin: 0 0 20px; font-size: 21px; font-weight: bold; line-height: 1.6; color: #35115e; word-break: keep-all; }
#contents .cg-wrap .cg-state-text:last-child { margin-bottom: 0; }
#contents .cg-wrap .cg-state .cg-submit-btn { max-width: 420px; }
@media (max-width: 600px) {
    #contents .cg-wrap .cg-state { padding: 32px 16px 36px; }
    #contents .cg-wrap .cg-state-text { font-size: 18px; }
}
/* 신청 완료 카드 */
#contents .cg-wrap .cg-complete { text-align: center; padding: 56px 20px 60px; }
#contents .cg-wrap .cg-complete-icon {
    width: 72px; height: 72px; margin: 0 auto 22px;
    border-radius: 50%; background: #5b3fd6; color: #fff;
    font-size: 40px; line-height: 72px; font-weight: bold;
}
#contents .cg-wrap .cg-complete-title { margin: 0 0 12px; font-size: 30px; font-weight: bold; color: #35115e; }
#contents .cg-wrap .cg-complete-desc { margin: 0; font-size: 19px; line-height: 1.6; color: #555; word-break: keep-all; }
@media (max-width: 600px) {
    #contents .cg-wrap .cg-complete { padding: 40px 16px 44px; }
    #contents .cg-wrap .cg-complete-icon { width: 60px; height: 60px; font-size: 32px; line-height: 60px; }
    #contents .cg-wrap .cg-complete-title { font-size: 24px; }
    #contents .cg-wrap .cg-complete-desc { font-size: 16px; }
}
.cg-login-notice a { color: #5b3fd6; text-decoration: underline; }

.cg-auth { background: #f7f6ff; border: 1px solid #e3e3f0; border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.cg-auth-title { margin: 0 0 6px; font-size: 20px; font-weight: bold; color: #35115e; }
.cg-auth-desc { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: #555; }
.cg-auth-btn { height: 56px; padding: 0 28px; border: none; border-radius: 6px; background: #5b3fd6; color: #fff; font-size: 20px; font-weight: bold; cursor: pointer; }
.cg-auth-btn:disabled { background: #ccc; cursor: default; }
.cg-auth-status { margin: 10px 0 0; font-size: 18px; color: #555; }
.cg-auth-status.is-ok { color: #0a7d3b; font-weight: bold; }
.cg-auth-status.is-error { color: #d93025; }

