body { font-family: 'Pretendard', sans-serif; background-color: #f8f9fa; margin: 0; display: flex; justify-content: center; align-items: center; height: 100vh; }
.container { width: 90%; max-width: 500px; background: white; padding: 40px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); text-align: center; }
h2 { color: #1a365d; margin-bottom: 30px; }
.page { display: none; }
.page.active { display: block; }
input { width: 100%; padding: 15px; margin: 10px 0; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 18px; box-sizing: border-box; }
button { width: 100%; padding: 18px; margin-top: 10px; border: none; border-radius: 10px; font-size: 18px; cursor: pointer; transition: 0.3s; }

/* 블루 계열 스타일 */
.btn-primary { background-color: #3182ce; color: white; font-weight: bold; }
.btn-primary:active { background-color: #2b6cb0; }
.btn-secondary { background-color: #edf2f7; color: #4a5568; margin-top: 20px; }

.icon { font-size: 48px; margin-bottom: 20px; color: #3182ce; }

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* [모달 전용 스타일] */
.alert-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px);
    justify-content: center; align-items: center; z-index: 1000;
}
.alert-modal-content {
    background: white; padding: 40px; border-radius: 20px; width: 85%; max-width: 400px;
    text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.alert-modal-icon { font-size: 50px; margin-bottom: 15px; }
.alert-modal-buttons { display: flex; gap: 10px; margin-top: 30px; }
.alert-modal-buttons button { flex: 1; padding: 15px; margin: 0; }

/* [입력 폼 개선] */
.phone-container { display: flex; gap: 10px; align-items: center; margin: 20px 0; }
.phone-container input { text-align: center; font-size: 24px; font-weight: bold; color: #1a365d; }
.phone-container span { font-weight: bold; color: #cbd5e0; } 

.hidden { display: none !important; }


/* 태블릿 가로 모드 전용 설정 */
@media (orientation: landscape) {
    body {
        /* 가로 모드에서는 화면 전체를 활용하도록 조정 */
        height: 100vh;
        justify-content: center;
    }

    .container {
        /* 가로 모드에서는 좀 더 넓게 사용 */
        max-width: 800px; 
        padding: 50px;
    }

    /* 만약 상품 목록이 그리드 형태라면 가로 모드에서 2~3열로 변경 */
    .grid-layout {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 가로일 땐 3열로 정렬 */
        gap: 20px;
    }
    
    /* 결제창 버튼을 가로 모드에서는 고정된 위치에 두거나 크게 설정 */
    .btn-primary {
        font-size: 24px;
        padding: 25px;
    }
}
