@charset "UTF-8";

* {
  box-sizing: border-box;
}

a:focus-visible,
button:focus-visible {
  outline-offset: 2px;
}

.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.pc {
  display: block;
}

.mo {
  display: none;
}

.dimmed {
  display: none;
}

/* header */
#header {
  height: 90px;
  display: flex;
  align-items: center;
  background: #fff;

}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

#header .logo_area {
  display: flex;
  align-items: center;
}

#header .logo_area .logo a {
  display: block;
  width: 142px;
  height: 34px;
  background: url(/event/img/common/city_county_logo.png) 50% 50% no-repeat;
}

#header .logo_area h2 {
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  padding: 8px;
  color: #29292C;
}

#header .gnb {
  display: flex;
  gap: 19px;
}

#header .gnb a {
  font-weight: 500;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: -0.7px;
  color: #333;
}

#header a {
  background: none;
}

#header .mobile_open,
#header .mobile_menu {
  display: none;
}


/**  가을쪽지 **/

/* 공통 */
.hidden {
  display: none !important;
}

main {
  letter-spacing: 0;
}


/* CSS 변수 선언: 테마 색상을 한 곳에서 관리 */
:root {
  --bg-main: #f4e8d3;
  --bg-box: #fff8eb;
  --point-color: #a83226;
  --border-color: #8b4513;
  --text-main: #4a3b32;
  --text-muted: #666;
}

.event-container {
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  text-align: center;
}

.event-container .inr {
  max-width: 1400px;
  margin: 0 auto;
}

/* 낙엽 애니메이션 */
.leaf_wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.leaf_wrap .leaf {
  position: absolute;
  top: 0;
  opacity: 0;
  will-change: transform, opacity;
  animation: leaf_fall var(--dur, 16s) linear var(--delay, 0s) infinite;
}

.leaf_wrap .leaf img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  animation: leaf_sway var(--sway_dur, 3s) ease-in-out var(--delay, 0s) infinite alternate;
}

/* 크기 3종 */
.leaf_wrap .leaf_s {
  width: 30px;
}

.leaf_wrap .leaf_m {
  width: 46px;
}

.leaf_wrap .leaf_l {
  width: 64px;
}

/* 아래로 떨어지기 */
@keyframes leaf_fall {
  0% {
    transform: translate3d(0, -80px, 0);
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  100% {
    transform: translate3d(0, var(--fall, 100vh), 0);
    opacity: 0;
  }
}

/* 좌우로 흔들리며 회전 */
@keyframes leaf_sway {
  0% {
    transform: translateX(calc(var(--sway, 60px) * -1)) rotate(-25deg);
  }

  100% {
    transform: translateX(var(--sway, 60px)) rotate(35deg);
  }
}

.event-container .top_wrap {
  padding: 130px 0 100px;
  background: url(/event/img/tgevent/bg_top.png) center 0 / 100% 100% no-repeat;

}

.top_wrap:has(.completion-notice:not(:empty)) {
  padding-bottom: 0;
}

/* 히어로 영역 */

.hero-section p {
  font-size: 24px;
  line-height: 1.3;
  margin-top: 15px;
}

.hero-section p em {
  font-weight: 700;
}

/* 쪽지 오브젝트 */
.note-section {
  text-align: center;
  padding: 32px 0 0;
}

.note-interactive {
  position: relative;
}

.note-object {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  line-height: 0;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s;
}

.note-object:active {
  transform: scale(0.98);
}

/* 4장을 같은 칸에 겹쳐서 높이 변동 없이 교체 */
.note-object img {
  grid-area: 1 / 1;
  width: auto;
  max-width: 100%;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.note-object img.is_active {
  opacity: 1;
}

.tooltip {
  position: absolute;
  top: 79%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 395px;
  height: 86px;
  margin: 0 auto;
  padding-top: 10px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
  background: url(/event/img/tgevent/bg_tooltip.png) center / 100% 100% no-repeat;
}

/* 결과 영역 */
.result-section {
  display: none;
  text-align: center;
  padding: 80px 0 40px;
}

.unfolded-note {
  padding: 16px 40px 56px;
  margin: 0 auto 20px;
  max-width: 748px;
  min-height: 432px;
  background: #F0E5CD;
  border: 8px solid #532E16;
  color: #532E16;
  position: relative;
}

.unfolded-note::before,
.unfolded-note::after {
  content: '';
  position: absolute;
  top: -32px;
  left: -8px;
  display: block;
  width: calc(100% + 16px);
  height: 32px;
  background: url(/event/img/tgevent/bg_note_top.png) 0 0 / 100% 100% no-repeat;
}

.unfolded-note::after {
  background-image: url(/event/img/tgevent/bg_note_bottom.png);
  top: auto;
  bottom: -32px;
}

.unfolded-note h3 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.unfolded-note p {
  margin-top: 16px;
  font-size: 22px;
  line-height: 1.5;
  word-break: auto-phrase;
}

.unfolded-note p+p {
  margin-top: 40px;
  color: #8E481D;
  font-size: 28px;
  font-weight: 700;

}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 16px;
}

.action-buttons button {
  background: none;
  height: 62px;
}

.action-buttons button img {
  height: 100%;
}

.action-buttons button:disabled {
  background: #999;
  border-color: #666;
  cursor: not-allowed;
}

.unfolded-note #applyBtn.is_done,
.unfolded-note #applyBtn.is_done:disabled {
  width: 288px;
  height: 84px;
  padding: 0;
  border: 0;
  background: url(/event/img/tgevent/btn_apply_done.png) center / contain no-repeat;
  white-space: nowrap;
  text-indent: -9999px;
  overflow: hidden;
  cursor: default;
  pointer-events: none;
}

.unfolded-note #applyBtn {
  position: absolute;
  z-index: 10;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
}



/* 쪽지 보관함 */
.storage-section {
  padding-top: 80px;
}

.storage-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.slot {
  background: url(/event/img/tgevent/slot.png) center / 100% 100% no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 97px;
  height: 110px;
  text-indent: -9999px;
}

.slot.filled {
  background-image: url(/event/img/tgevent/slot_fill.png);
}

.slot.filled.todaymemo {
  background-image: url(/event/img/tgevent/slot_new.png);
}

.todaymemo {
  cursor:default !important;
}

.completion-notice {
  display: none;
  margin-top: 35px;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.01em;
}

.formflex label {
  display: inline-flex !important;
  width: 49%;
  line-height: 3.5;
  cursor: pointer;
  justify-content: center;
}

.formflex input {
  width: unset !important;
}

/* 모달 팝업 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 600px;
  padding: 20px;
  border: 4px solid var(--border-color);
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
}

.modal-body {
  text-align: left;
}

.close-btn {
  cursor: pointer;
  font-size: 20px;
  color: var(--point-color);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 8px;
  border: 2px solid #ccc;
  box-sizing: border-box;
  font-family: inherit;
}

.form-group input:focus {
  border-color: var(--point-color);
  outline: none;
}

.form-group input.error {
  border-color: red;
}

.agree-box {
  height: 80px;
  overflow-y: scroll;
  border: 1px solid #ccc;
  padding: 5px;
  font-size: 12px;
  margin-bottom: 10px;
  background: #f9f9f9;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--point-color);
  color: white;
  border: none;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  font-size: 16px;
}

#historyModal {
  line-height: 1.5;
}

#historyModal .modal-content {
  position: relative;
  max-width: 648px;
  padding: 12px 48px;
  border: 8px solid #000;
  overflow: visible;
}

#historyModal .modal-content::before,
#historyModal .modal-content::after {
  content: '';
  position: absolute;
  top: -32px;
  left: -8px;
  display: block;
  width: calc(100% + 16px);
  height: 32px;
  background: url(/event/img/tgevent/bg_pop_top.png) 0 0 / 100% 100% no-repeat;
}

#historyModal .modal-content::after {
  background-image: url(/event/img/tgevent/bg_pop_bottom.png);
  top: auto;
  bottom: -32px;
}

#historyModal .modal-header {
  border: none;
  margin: 0;
  padding: 0;
}

#historyModal .close-btn {
  position: absolute;
  top: -50px;
  right: -25px;
  width: 60px;
  height: 60px;
  background: url(/event/img/tgevent/btn_close.png) center / 100% 100% no-repeat;
  text-indent: -9999px;
}

#historyModal h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

#historyModal p {
  margin-top: 16px;
  font-size: 18px;
}

#historyModal p+p {
  color: #8E481D;
  font-size: 25px;
  font-weight: 700;
}

#historyModal .submit-btn {
  margin-top: 16px;
  background: none;
  width: 198px;
  padding: 0;
}

#historyModal .submit-btn img {
  width: 100%;
}


.info-section {
  background: url(/event/img/tgevent/bg_info.png) center / cover no-repeat;
}

.top_wrap:has(.completion-notice:not(:empty))+.info-section {
  padding-top: 100px;
}

.notice-section {
  background: #8E481D;
  color: #fff;
  letter-spacing: -0.05em;
  padding: 60px 0;
  text-align: left;
}

.notice-section strong {
  font-size: 20px;
  display: block;
  margin-bottom: 16px;
  font-weight: 700;
}

.notice-section li {
  font-size: 18px;
  position: relative;
  padding-left: 12px;
  margin-bottom: 10px;
}

.notice-section li:last-child {
  margin-bottom: 0;
}

.notice-section li::before {
  content: '';
  display: block;
  position: absolute;
  top: 13px;
  left: 0;
  width: 3px;
  height: 3px;
  background: #fff;
}

.winner {
  text-align: center;
  line-height: 1.5;
  background: url(/event/img/tgevent/bg_winner.png) 0 0 / 100% 100% no-repeat;
}

.winner .inr {
  max-width: 1400px;
}

.winner .title {
  padding: 120px 0 235px;
}

.winner .title p {
  font-size: 22px;
  font-weight: 700;
  margin-top: 38px;
}

.winner .title p+p {
  font-size: 20px;
  font-weight: 400;
  margin-top: 25px;
}


.winner .gift p {
  font-size: 26px;
  font-weight: 700;
  margin: 60px 0;
}

.winner .gift img {
  height: 210px;
}

.winner .gift ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 40px;
  max-width: 740px;
  margin: 0 auto;
}

.winner .gift ul li {
  font-size: 24px;
}

.winner .gift+.gift {
  margin-top: 136px;
}

.winner a {
  display: inline-block;
  margin: 160px 0;
}

/* 기타 유틸 */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  display: none;
  z-index: 1000;
}

body.scroll-lock {
  overflow: hidden;
}


/* footer */
#footer {
  background: #333;
}

#footer .row_top {
  padding: 60px 0 25px 0;
  border-bottom: 1px solid #666;
  display: flex;
  justify-content: space-between;
}

#footer .row_top .footer_logo {
  display: flex;
  gap: 20px;
  text-indent: -9999px;
}

#footer .row_top .footer_logo a:first-child {
  width: 121px;
  height: 36px;
  background: url(/event/img/common/footer_logo.png) 50% 50% / contain no-repeat;
}

#footer .row_top .footer_logo a:last-child {
  width: 170px;
  height: 36px;
  background: url(/event/img/common/footer_logo_2.png) 50% 50% / contain no-repeat;
}

#footer .row_top .sns {
  display: flex;
  align-items: center;
  gap: 8px;
}

#footer .row_top .sns a {
  text-indent: -9999px;
  width: 40px;
  height: 40px;
}

#footer .row_top .sns a:first-child {
  background: url(/event/img/common/icon-footer-instagram.png) 50% 50% / contain no-repeat;
}

#footer .row_top .sns a:nth-child(2) {
  background: url(/event/img/common/icon-footer-facebook.png) 50% 50% / contain no-repeat;
}

#footer .row_top .sns a:nth-child(3) {
  background: url(/event/img/common/icon-footer-blog.png) 50% 50% / contain no-repeat;
}

#footer .row_top .sns a:nth-child(4) {
  background: url(/event/img/common/icon-footer-youtube.png) 50% 50% / contain no-repeat;
}

#footer .row_bottom {
  padding: 15px 0 76px 0;
}

#footer .row_bottom .fnb {
  font-weight: 400;
  font-size: 15px;
  line-height: 18px;
  letter-spacing: -0.7px;
  color: #999;
  margin: 0 0 10px 0;
}

#footer .row_bottom .fnb a+a {
  margin: 0 0 0 30px;
}

#footer .row_bottom .copy {
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: -0.7px;
  color: #666;
}


@media (max-width: 1399px) {

  /* base */
  .container {
    max-width: none;
    padding: 0 16px;
  }

  .pc {
    display: none;
  }

  .mo {
    display: block;
  }

  .dimmed {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 19;
    width: 100%;
    height: 100%;
  }

  /* header */
  #header {
    height: 60px;
  }

  #header .logo_area .logo a {
    display: block;
    width: 136px;
    height: 32px;
    background: url(/event/img/common/city_county_logo_m.png) 50% 50% / contain no-repeat;
  }

  #header .logo_area .logo a img {
    width: 100%;
    object-fit: cover;
  }

  #header .logo_area h2 {
    display: none;
  }

  #header .gnb {
    display: none;
  }

  #header .mobile_open {
    display: block;
    background: url(/event/img/common/menu_open.png) 50% 50% / contain no-repeat;
    width: 25px;
    height: 19px;
    text-indent: -9999px;
  }

  #header .mobile_close {
    background: url(/event/img/common/menu_close.png) 50% 50% / contain no-repeat;
    width: 19px;
    height: 19px;
    text-indent: -9999px;
  }

  #header .mobile_menu {
    position: fixed;
    right: 0;
    top: 0;
    background: #fff;
    width: 86%;
    padding: 24px 24px 32px 24px;
    z-index: 20;
    overflow: auto;
    height: calc(100% - 91px);
    max-height: 468px;
  }

  #header .mobile_menu .mobile_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 30px 0;
  }

  #header .mobile_menu .mobile_header strong {
    font-size: 24px;
    line-height: 35px;
    color: #000;
  }

  #header .mobile_menu .mobile_body {
    padding: 32px 0 0 0;
    border-top: 2px solid #ddd;
  }

  #header .mobile_menu .mobile_body a {
    display: block;
    font-weight: 700;
    font-size: 18px;
    line-height: 18px;
    letter-spacing: -0.7px;
    color: #000;
  }

  #header .mobile_menu .mobile_body a+a {
    margin: 24px 0 0 0;
  }

  /* test */
  .event-container .mo {
    display: block;
  }

  .event-container img {
    width: 100%;
  }

  .event-container .inr {
    padding: 0;
  }

  .leaf_wrap .leaf_s {
    width: 5.56vw;
  }

  .leaf_wrap .leaf_m {
    width: 8.89vw;
  }

  .leaf_wrap .leaf_l {
    width: 12.22vw;
  }


  .event-container .top_wrap {
    padding: 26.39vw 0 0;
    background: #8EE7FF url(/event/img/tgevent/bg_top_mo.png) center top / 100% auto no-repeat;
  }

  .hero-section p {
    font-size: 4.17vw;
    letter-spacing: 0.02em;
    padding: 0 8.89vw;
  }

  .tooltip {
    font-size: 3.89vw;
    width: 55.00vw;
    height: 11.94vw;
    padding-top: 0;
  }

  .note-section {
    padding: 6.67vw 0 0;
  }

  .note-object {
    width: 90%;
  }

  .result-section {
    padding: 5.56vw 0 8.89vw;
    margin: 8.33vw 6.11vw 0;
  }

  .unfolded-note {
    padding: 0 5.56vw 6.67vw;
    border-width: 1.67vw;
    min-height: 0;
  }

  .unfolded-note::before,
  .unfolded-note::after {
    top: -6.67vw;
    height: 6.67vw;
    left: -1.67vw;
    width: calc(100% + 3.33vw);
    background: url(/event/img/tgevent/bg_note_top_mo.png) 0 0 / 100% 100% no-repeat;
  }

  .unfolded-note::after {
    background-image: url(/event/img/tgevent/bg_note_bottom_mo.png);
    top: auto;
    bottom: -6.67vw;
  }

  .unfolded-note h3 {
    font-size: 3.89vw;
  }

  .unfolded-note p {
    font-size: 2.78vw;
    margin-top: 2.22vw;
  }

  .unfolded-note p+p {
    font-size: 3.33vw;
    margin-top: 2.22vw;
  }

  .unfolded-note #applyBtn {
    bottom: -10.89vw;
  }


  .action-buttons {
    gap: 4.44vw;
  }

  .action-buttons button {
    height: 9.44vw;
  }

  .unfolded-note #applyBtn.is_done,
  .unfolded-note #applyBtn.is_done:disabled {
    width: 43.06vw;
    height: 11.67vw;
  }

  .storage-section {
    padding-top: 0;
    margin-top: 8.89vw;
    background: #FDDB46 url(/event/img/tgevent/bg_storage_mo.png) center top / 100% auto no-repeat;
  }

  .storage-grid {
    gap: 3.89vw;
  }

  .slot {
    width: 13.61vw;
    height: 16.11vw;

  }

  .completion-notice {
    font-size: 4.44vw;
    margin-top: 4.44vw;
    padding: 0 13.89vw;
  }

  #historyModal h3 {
    font-size: 4.17vw;
  }

  #historyModal p {
    font-size: 3.33vw;
    margin-top: 2.22vw;
  }

  #historyModal p+p {
    font-size: 3.89vw;
    margin-top: 2.22vw;
  }

  #historyModal .submit-btn {
    width: 43.06vw;
  }

  #historyModal .close-btn {
    width: 11.11vw;
    height: 11.11vw;
    top: -11.11vw;
    right: -4.44vw;
  }

  #historyModal .modal-content {
    border-width: 1.67vw;
    width: 83%;
    padding: 0 5.56vw;
  }

  #historyModal .modal-content::before,
  #historyModal .modal-content::after {
    background: url(/event/img/tgevent/bg_pop_top_mo.png) 0 0 / 100% 100% no-repeat;
    height: 6.67vw;
    top: -6.67vw;
    left: -1.67vw;
    width: calc(100% + 3.33vw);
  }

  #historyModal .modal-content::after {
    background-image: url(/event/img/tgevent/bg_pop_bottom_mo.png);
    bottom: -6.67vw;
    top: auto;
  }


  .info-section {
    background: #FDDB46;
    padding-top: 13.89vw;
  }

  .top_wrap:has(.completion-notice:not(:empty))+.info-section {
    padding-top: 13.89vw;
  }

  .info-section .inr {
    padding: 0;
  }

  .notice-section {
    padding: 5.56vw 6.67vw;
  }

  .notice-section strong {
    font-size: 4.44vw;
    margin-bottom: 2.22vw;
  }

  .notice-section li {
    font-size: 3.89vw;
    padding-left: 3.33vw;
    margin-bottom: 2.22vw;
  }

  .notice-section li::before {
    width: 0.83vw;
    height: 0.83vw;
    top: 2.78vw;
  }

  .winner {
    background: #FDDB46 url(/event/img/tgevent/bg_winner_mo.png) 0 0 / 100% auto no-repeat;
  }

  .winner .inr {
    max-width: 100%;
  }

  .winner .title {
    padding: 22.22vw 0;
  }

  .winner .title p {
    font-size: 4.17vw;
    margin-top: 6.11vw;
  }

  .winner .title p+p {
    font-size: 3.89vw;
    margin-top: 5.56vw;
  }

  .winner .gift img {
    width: 65%;
    height: auto;
  }

  .winner .gift p {
    font-size: 4.72vw;
    font-weight: 700;
    margin: 6.11vw 0 6.67vw;
  }

  .winner .gift ul {
    gap: 4.44vw 6.67vw;
    justify-content: flex-start;
    width: 77.67vw;
    margin: 0 auto;
  }

  .winner .gift ul li {
    font-size: 4.44vw;
  }

  .winner .gift+.gift {
    margin-top: 8.89vw;
  }

  .winner a {
    display: inline-block;
    margin: 11.11vw 0;
    width: 56.94vw;
  }


  /* footer */
  #footer .container {
    position: relative;
  }

  #footer .row_top .footer_logo {
    justify-content: center;
    gap: 14px;
  }

  #footer .row_top .footer_logo a:first-child {
    width: 88px;
    height: 34px;
    background: url(/event/img/common/footer_logo_m.png) 50% 50% / contain no-repeat;
  }

  #footer .row_top .footer_logo a:last-child {
    width: 157px;
    height: 34px;
    background: url(/event/img/common/footer_logo_2_m.png) 50% 50% / contain no-repeat;
  }

  #footer .row_top {
    flex-direction: column;
    border-bottom: none;
    padding: 28px 0 19px 0;
  }

  #footer .row_top .sns {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    width: 100%;
  }

  #footer .row_top .sns a {
    width: 30px;
    height: 30px;
  }

  #footer .row_bottom {
    padding: 0 0 27px 0;
  }

  #footer .row_bottom .fnb {
    font-size: 11px;
    line-height: 13px;
    letter-spacing: -0.64px;
    text-align: center;
    padding: 0 0 80px 0;
    border-bottom: 1px solid #999;
    word-break: keep-all;
  }

  #footer .row_bottom .fnb a+a {
    margin: 0 0 0 10px;
  }

  #footer .row_bottom .copy {
    font-size: 11px;
    line-height: 13px;
    letter-spacing: -0.64px;
    text-align: center;
  }

}

/* 모달 소스 스타일 */

/* 모달 공통 스타일 */
.modal-content {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    color: #333;
}
.modal-header {
    background: #5c4331; /* 가을 느낌의 진한 브라운 */
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.modal-body {
    padding: 25px;
	text-align:left;
}

.modal-body {
    padding: 25px;
	text-align:left;
}

.modal-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* 폼 그룹 및 인풋 스타일 */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}
.form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

/* 전화번호 3칸 분리 스타일 */
.phone-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.phone-sel {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}
.phone-inp {
    flex: 1.2;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center; /* 가운데 정렬 */
}
.dash {
    color: #666;
    font-weight: bold;
}

/* 동의 박스 및 라디오 버튼 */
.agree-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    font-size: 12px;
    color: #555;
    height: 120px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.agree-box pre {
    white-space: pre-line;
    font-size: 14px;
    font-family: 'Noto Sans KR';
}

.formflex {
    display: flex;
    gap: 15px;
    font-size: 14px;
}
.formflex label {
    font-weight: normal;
    cursor: pointer;
}

.formflex input {
	margin-right: 2%;
}

/* 에러 시 강조 (JS에서 .error 클래스 추가 시) */
.error {
    border-color: #d9534f !important;
    background-color: #fdf2f2;
}

/* 제출 버튼 */
.submit-btn {
    width: 100%;
    background: #d86821; /* 가을 느낌의 오렌지 포인트 */
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s;
}
.submit-btn:hover {
    background: #c25b1b;
}


@media (max-width:416px) {
  #footer .row_top .sns {
    bottom: 110px;
  }
}