/* ¸ð¹ÙÀÏ ¹ÝÀÀÇü ½ºÅ¸ÀÏ */
@media screen and (max-width: 768px) {
   /* 1. ±âº» ÃÊ±âÈ­ ¹× ÄÁÅ×ÀÌ³Ê ¼³Á¤ */
#pwPopup {
    width: 100%;
    max-width: 480px; /* ¸ð¹ÙÀÏ¿¡¼­ °¡Àå º¸±â ÁÁÀº ³Êºñ */
    margin: 0 auto;
    background: #fff;
    font-family: 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: #444;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 2. »ó´Ü Å¸ÀÌÆ² ¿µ¿ª (ÀÌ¹ÌÁö ¹è°æ ´ë½Å ±×¶óµ¥ÀÌ¼Ç »ç¿ë) */
#pwPopup .topArea {
    padding: 25px 20px;
    background: linear-gradient(90deg, #005a9c 0%, #479b32 100%); /* ±âÁ¸ ÆÄ¶û~ÃÊ·Ï ±×¶óµ¥ÀÌ¼Ç ÀçÇö */
    text-align: center;
}

#pwPopup .topArea img {
    max-width: 180px;
    height: auto;
}
.box2 {width:100%;}
.box2 .boxWrap {width:100%; padding:0; background:none;}
/* 3. º»¹® ¿µ¿ª */
#pwPopup .contentArea {
    width: 100%;;
    padding: 0px;
    background:none;
}
#pwPopup .certify{width:100%;}

/* 4. ÀÎÁõ ¹Ú½º (Áß¾Ó Èò»ö ¿µ¿ª) */
#pwPopup .box2 {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    /* padding: 30px 15px; */
    margin-bottom: 25px;
    text-align: center;
}

#pwPopup .certify div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin:0;
    width:100%;
    background:none;
}

#pwPopup .certify img[alt="ÀÌ¸ÞÀÏ ÀÎÁõ"] {
    margin-bottom: 15px;
}

#pwPopup .certify p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    word-break: keep-all; /* ´Ü¾î ´ÜÀ§ ÁÙ¹Ù²ÞÀ¸·Î ±ò²ûÇÏ°Ô */
}

/* 5. Àç¹ß±Þ ¹Þ±â ¹öÆ° ½ºÅ¸ÀÏ */
#pwPopup .certify a img {
    max-width: 150px;
    height: auto;
    transition: transform 0.1s;
}

#pwPopup .certify a:active img {
    transform: scale(0.95); /* ÅÍÄ¡ ½Ã ´­¸®´Â È¿°ú */
}

/* 6. ÇÏ´Ü ¾È³» ¹®±¸ ¿µ¿ª */
#pwPopup .contentArea > ul {
    list-style: none;
    padding: 0 20px;
}

#pwPopup .contentArea > ul li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

#pwPopup .contentArea > ul li::before {
    content: '?';
    position: absolute;
    left: 0;
    color: #479b32;
    font-weight: bold;
}

/* 7. »ö»ó °­Á¶ */
.black { color: #222; font-weight: bold; }
.red { color: #e83232; font-weight: bold; }

/* 8. ÀÛÀº ¸ð¹ÙÀÏ È­¸é ´ëÀÀ (¾ÆÀÌÆù SE µî) */
@media (max-width: 360px) {
    #pwPopup .topArea { padding: 15px; }
    #pwPopup .certify p { font-size: 13px; }
}
#pwPopup .inputArea {margin:0;}
#pwPopup .inputArea p{display: flex; flex-direction:row;}
#pwPopup .inputArea.result p{display: flex; flex-direction:column !important;}
#pwPopup .inputArea label {width:100%; flex:1}
.inputStyle {width:100%; flex:3}

/* ±âº» ·¹ÀÌ¾Æ¿ô ÃÊ±âÈ­ ¹× ¹Ú½º ¸ðµ¨ ¼³Á¤ */
.inputArea * {
    box-sizing: border-box;
}

.inputArea fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9;
}

.inputArea legend {
    font-weight: bold;
    padding: 0 10px;
    color: #333;
}

/* °¢ ÀÔ·Â Ç×¸ñ(p ÅÂ±×) °£°Ý Á¶Àý */
.inputArea p {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column; /* ·¹ÀÌºí°ú ÀÔ·ÂÀ» ¼¼·Î·Î ¹èÄ¡ */
}

/* ·¹ÀÌºí ½ºÅ¸ÀÏ */
.inputArea label {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

/* °øÅë ÀÔ·ÂÃ¢ ½ºÅ¸ÀÏ */
.inputStyle {
    width: 100%; /* ÀüÃ¼ ³Êºñ »ç¿ë */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px; /* ¸ð¹ÙÀÏ¿¡¼­ input Å¬¸¯ ½Ã ÁÜ Çö»ó ¹æÁö */
    outline: none;
    transition: border-color 0.2s;
}

.inputStyle:focus {
    border-color: #007bff;
}

/* »ý³â¿ùÀÏ(class="date") Æ¯¼ö Ã³¸® */
.inputArea p.date {
    flex-direction: row; /* »ý³â¿ùÀÏÀº °¡·Î Á¤·Ä À¯Áö ½Ãµµ */
    flex-wrap: wrap;     /* Á¼¾ÆÁö¸é ¾Æ·¡·Î ¶³¾îÁö°Ô ¼³Á¤ */
    align-items: center;
    gap: 8px;
}

.inputArea p.date label {
    width: 100%; /* ·¹ÀÌºíÀº ÇÑ ÁÙ ÅëÂ°·Î Â÷ÁöÇÏ°Ô ÇÔ */
    margin-bottom: 8px;
}

/* »ý³â¿ùÀÏ °³º° input Å©±â Á¶Àý */
.inputArea p.date input[name="b_year"] { width: 80px; flex-grow: 1; }
.inputArea p.date input[name="b_month"] { width: 50px; flex-grow: 1; }
.inputArea p.date input[name="b_day"] { width: 50px; flex-grow: 1; }

/* ÅØ½ºÆ®(³â, ¿ù, ÀÏ) ½ºÅ¸ÀÏ */
.inputArea p.date {
    font-size: 14px;
    color: #777;
}
#pwPopup .boxWrap .comment {padding:0 0 20px; border-top:none;}
#pwPopup .inputArea p.date { width: 300px; margin: 0 auto;}
}