body {
    margin: 0;
    background: #eef2f7;
    font-family: 'Apple SD Gothic Neo', sans-serif;
}

* {
    box-sizing: border-box;
}

.wrapper {
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
}
.wrapper.home{
    padding:20px;
}

.modal-close{
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: 0;
    font-size: 30px;
}

.card {
    background: #fff;
    border-radius: 20px;
    padding: 10px 20px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #184a97;
    margin: 30px 0;
}

.logo img {
    width: 60%;
}

.title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
}

.label {
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

input,
select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    margin-bottom: 15px;
}

.birth-row {
    display: flex;
    gap: 10px;
}

.birth-row select {
    flex: 1;
}

.btn-search {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #184a97;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.info-card {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    color: #555;
    font-weight: 600;
    width: 120px;
    flex-shrink: 0;
}

.value {
    text-align: right;
    font-weight: 700;
    color: #222;
}

.map-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    color: #007BFF;
    text-decoration: none;
}

.map-link:hover {
    text-decoration: underline;
}

.exam-header{
    max-width:500px;
    margin:0 auto 20px;
    background:#f4f7fe;
    color:#013b9c;
    text-align:center;
    padding:20px;
    border-radius:14px;
    border:1px solid #bcc7dc;
}
.exam-year{
    font-size:28px;
    font-weight:800;
}
.exam-title{
    font-size:18px;
    margin-top:6px;
    font-weight:700;
}
.result-item{
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size:16px;
}
.result-item b{
    display:inline-block;
    width:100px;
    color:#555;
}
.result-item .cnt{
    flex: 1;
    text-align: right;
}
.kakao-big-btn{
    display: inline-block;
    background: #FEE500;
    color: #000;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    padding: 2px 5px;
}

.map-title{
    text-align: center;
}
.map-box{
    width:100%;
    height:200px;
    margin-top:5px;
}

.footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 30px;
}

.layout-btn{
    cursor:pointer;
}

/* 모달 */
.layout-modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:9999;
}

.layout-modal img{
max-width:90%;
max-height:80vh;
object-fit:contain;
}

/* 배경 */
.layout-overlay{
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
}

/* 내용 박스 */
.layout-content{
    position:absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    background:#fff;
    padding:0;
    border-radius:12px;
    overflow:auto;
    box-shadow:0 10px 30px rgba(0,0,0,0.3);
}

.layout-content img{width: 100%;}

/* 닫기 버튼 */
.layout-close{
    position:absolute;
    top:5px;
    right:5px;
    font-size:30px;
    border:none;
    background:none;
    cursor:pointer;
}

/* 이미지 */
#layoutImage{
    max-width:100%;
    height:auto;
}

.agree-row {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    font-size: 14px;
}

.agree-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* 모달 이미지 너무 크게 나오는 문제 해결 */
#imgModal .modal-content img,
#imgModal .layout-content img,
#modalImage{
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display:block;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .wrapper{
        padding: 20px;
    }
    .layout-content{
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 30%;
        max-height: 100%;
    }
}